Java Doc for EditableList.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » component » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.web.ui.component.EditableListBase
   com.sun.rave.web.ui.component.EditableList

EditableList
public class EditableList extends EditableListBase implements ListManager(Code)

About this tag.

This tag renders an EditableList component. Use this component when web application users need to create and modify a list of strings. The application user can add new strings by typing them into the textfield and clicking the "Add" button, and remove them by selecting one or more items from the list and clicking the "Remove" button.

Configuring the listbox tag

Use the list attribute to bind the component to a model. The value must be an EL expression that corresponds to a managed bean or a property of a managed bean, and it must evaluate to an array of java.lang.String.

To set the label of the textfield, use the fieldLabel attribute. To set the label of the textfield, use the listLabel attribute. To validate new items, use the fieldValidator attribute; to validate the contents of the list once the user has finished adding and removing items, specify a labelValidator.

Facets

  • fieldLabel: use this facet to specify a custom component for the textfield label.
  • listLabel: use this facet to specify a custom component for the textfield label.
  • field: use this facet to specify a custom component for the textfield.
  • addButton: use this facet to specify a custom component for the add button.
  • removeButton: use this facet to specify a custom component for the remove button.
  • search: use this facet to specify a custom component for the search button.
  • readOnly: use this facet to specify a custom component for display a readonly version of the component.
  • header: use this facet to specify a header, rendered in a table row above the component.
  • footer: use this facet to specify a header, rendered in a table row below the component.

Client-side JavaScript functions

  • NONE yet

author:
   avk


Field Summary
final public static  StringADD_BUTTON_FACET
    
final public static  StringADD_BUTTON_ID
    
final public static  StringADD_FUNCTION
    
final public static  StringENABLE_ADD_FUNCTION
    
final public static  StringENABLE_REMOVE_FUNCTION
    
final public static  StringFIELD_FACET
    
final public static  StringFIELD_ID
    
final public static  StringFIELD_LABEL_FACET
    
final public static  StringFIELD_LABEL_ID
    
final public static  StringFOOTER_FACET
    
final public static  StringHEADER_FACET
    
final public static  StringJSOBJECT
    
final public static  StringLIST_LABEL_FACET
    
final public static  StringLIST_LABEL_ID
    
final public static  StringREAD_ONLY_FACET
    
final public static  StringREAD_ONLY_ID
    
final public static  StringREMOVE_BUTTON_FACET
    
final public static  StringREMOVE_BUTTON_ID
    
final public static  StringSEARCH_FACET
    
final public static  StringSET_ADD_DISABLED_FUNCTION
    
final public static  StringSPACER_STRING
    
final public static  StringUPDATE_BUTTONS_FUNCTION
    


Method Summary
protected  booleancompareValues(Object previous, Object value)
    

Return true if the new value is different from the previous value.

This only implements a compareValues for value if it is an Array.
public  UIComponentgetAddButtonComponent()
     Get or create the ADD button.
public  ObjectgetConvertedValue(FacesContext context, Object submittedValue)
     Retrieve the value of this component (the "selected" property) as an object.
public  UIComponentgetFieldComponent()
     Gets or creates a component for the textfield.
public  UIComponentgetFieldLabelComponent()
     Gets or creates a component for the textfield label.
public  StringgetJavaScriptObjectName()
    
public  IteratorgetListItems(FacesContext context, boolean rulerAtEnd)
     Retrieve an Iterator of ListSelector.ListItem, to be used by the renderer.
public  UIComponentgetListLabelComponent()
     Gets or creates a component for the list label.
public  intgetMaxlLength()
    
public  StringgetOnChange()
    
public  StringgetPrimaryElementID(FacesContext context)
    
public  UIComponentgetReadOnlyValueComponent()
     Creates a component for the EditableList in case the component is read-only.
public  UIComponentgetRemoveButtonComponent()
     Get or create the REMOVE button.
protected  StringgetValueAsReadOnly(FacesContext context)
     Return a string suitable for displaying the value in read only mode.
public  String[]getValueAsStringArray(FacesContext context)
    
public  String[]getValuesToRemove()
     Getter for property valuesToRemove.
public  booleanisImmediate()
    
public  booleanmainListSubmits()
    
public  voidprocessAddAction()
    
public  voidprocessRemoveAction()
    
public  voidprocessValidators(FacesContext context)
    
public  voidsetConverter(javax.faces.convert.Converter converter)
    
public  voidsetValuesToRemove(String[] valuesToRemove)
     Setter for property valuesToRemove.

Field Detail
ADD_BUTTON_FACET
final public static String ADD_BUTTON_FACET(Code)



ADD_BUTTON_ID
final public static String ADD_BUTTON_ID(Code)
The component id for the ADD button



ADD_FUNCTION
final public static String ADD_FUNCTION(Code)
Name of the JavaScript function which is responsible for adding elements from the availble list to the selected list



ENABLE_ADD_FUNCTION
final public static String ENABLE_ADD_FUNCTION(Code)
Name of the JavaScript function which is responsible for enabling/disabling the add button



ENABLE_REMOVE_FUNCTION
final public static String ENABLE_REMOVE_FUNCTION(Code)
Name of the JavaScript function which is responsible for enabling/disabling the remove button



FIELD_FACET
final public static String FIELD_FACET(Code)



FIELD_ID
final public static String FIELD_ID(Code)
The component ID for the textfield



FIELD_LABEL_FACET
final public static String FIELD_LABEL_FACET(Code)



FIELD_LABEL_ID
final public static String FIELD_LABEL_ID(Code)
The component ID for the textfield



FOOTER_FACET
final public static String FOOTER_FACET(Code)
Facet name for the footer facet



HEADER_FACET
final public static String HEADER_FACET(Code)
Facet name for the header facet



JSOBJECT
final public static String JSOBJECT(Code)
The name of the component attribute that stores the name of the JavaScript object that organizes the JavsSCript functions for the component



LIST_LABEL_FACET
final public static String LIST_LABEL_FACET(Code)



LIST_LABEL_ID
final public static String LIST_LABEL_ID(Code)
The component ID for the textfield



READ_ONLY_FACET
final public static String READ_ONLY_FACET(Code)



READ_ONLY_ID
final public static String READ_ONLY_ID(Code)
The component ID for the textfield



REMOVE_BUTTON_FACET
final public static String REMOVE_BUTTON_FACET(Code)



REMOVE_BUTTON_ID
final public static String REMOVE_BUTTON_ID(Code)
The component ID for the remove button



SEARCH_FACET
final public static String SEARCH_FACET(Code)
Facet name for the search facet



SET_ADD_DISABLED_FUNCTION
final public static String SET_ADD_DISABLED_FUNCTION(Code)
Name of the JavaScript function which is responsible for enabling/disabling the add button



SPACER_STRING
final public static String SPACER_STRING(Code)



UPDATE_BUTTONS_FUNCTION
final public static String UPDATE_BUTTONS_FUNCTION(Code)
Name of the JavaScript function that updates the buttons





Method Detail
compareValues
protected boolean compareValues(Object previous, Object value)(Code)

Return true if the new value is different from the previous value.

This only implements a compareValues for value if it is an Array. If value is not an Array, defer to super.compareValues. The assumption is that the ordering of the elements between the previous value and the new value is determined in the same manner. Another assumption is that the two object arguments are of the same type, both arrays of both not arrays.
Parameters:
  previous - old value of this component (if any)
Parameters:
  value - new value of this component (if any)



getAddButtonComponent
public UIComponent getAddButtonComponent()(Code)
Get or create the ADD button. Retrieves the component specified by the addButton facet (if there is one) or creates a new Button component. A UI Component for the Add button



getConvertedValue
public Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException(Code)
Retrieve the value of this component (the "selected" property) as an object. This method is invoked by the JSF engine during the validation phase. The JSF default behaviour is for components to defer the conversion and validation to the renderer, but for the Selector based components, the renderers do not share as much functionality as the components do, so it is more efficient to do it here.
Parameters:
  context - The FacesContext of the request
Parameters:
  submittedValue - The submitted value of the component



getFieldComponent
public UIComponent getFieldComponent()(Code)
Gets or creates a component for the textfield. Retrieves the field facet if one was specified, or creates a new TextField component. A UIComponent for the textfield



getFieldLabelComponent
public UIComponent getFieldLabelComponent()(Code)
Gets or creates a component for the textfield label. Retrieves the fieldLabel facet if one was specified, or creates a new label component. A UIComponent for the field label



getJavaScriptObjectName
public String getJavaScriptObjectName()(Code)



getListItems
public Iterator getListItems(FacesContext context, boolean rulerAtEnd) throws FacesException(Code)
Retrieve an Iterator of ListSelector.ListItem, to be used by the renderer. an Iterator over ListItem.
throws:
  javax.faces.FacesException -



getListLabelComponent
public UIComponent getListLabelComponent()(Code)
Gets or creates a component for the list label. Retrieves the listLabel facet if one was specified, or creates a new label component. A UIComponent for the list label



getMaxlLength
public int getMaxlLength()(Code)
Get the maximum length of the strings on the list An integer value for the maximum number of characters on the list



getOnChange
public String getOnChange()(Code)



getPrimaryElementID
public String getPrimaryElementID(FacesContext context)(Code)



getReadOnlyValueComponent
public UIComponent getReadOnlyValueComponent()(Code)
Creates a component for the EditableList in case the component is read-only. A UIComponent that displays the read-only value



getRemoveButtonComponent
public UIComponent getRemoveButtonComponent()(Code)
Get or create the REMOVE button. Retrieves the component specified by the removeButton facet (if there is one) or creates a new Button component. A UI Component for the REMOVE button



getValueAsReadOnly
protected String getValueAsReadOnly(FacesContext context) throws FacesException(Code)
Return a string suitable for displaying the value in read only mode. The default is to separate the list values with a comma.
Parameters:
  context - The FacesContext
throws:
  javax.faces.FacesException - If the list items cannot be processed



getValueAsStringArray
public String[] getValueAsStringArray(FacesContext context)(Code)



getValuesToRemove
public String[] getValuesToRemove()(Code)
Getter for property valuesToRemove. Value of property valuesToRemove.



isImmediate
public boolean isImmediate()(Code)
Always returns false for EditableList *



mainListSubmits
public boolean mainListSubmits()(Code)



processAddAction
public void processAddAction()(Code)



processRemoveAction
public void processRemoveAction()(Code)



processValidators
public void processValidators(FacesContext context)(Code)

exception:
  NullPointerException -



setConverter
public void setConverter(javax.faces.convert.Converter converter)(Code)

Parameters:
  converter -



setValuesToRemove
public void setValuesToRemove(String[] valuesToRemove)(Code)
Setter for property valuesToRemove.
Parameters:
  valuesToRemove - New value of property valuesToRemove.



Methods inherited from com.sun.rave.web.ui.component.EditableListBase
public String getFamily()(Code)(Java Doc)
public String getFieldLabel()(Code)(Java Doc)
public javax.faces.el.MethodBinding getFieldValidator()(Code)(Java Doc)
public int getLabelLevel()(Code)(Java Doc)
public Object getList()(Code)(Java Doc)
public String getListLabel()(Code)(Java Doc)
public javax.faces.el.MethodBinding getListValidator()(Code)(Java Doc)
public int getMaxLength()(Code)(Java Doc)
public int getRows()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getStyleClass()(Code)(Java Doc)
public int getTabIndex()(Code)(Java Doc)
public String getToolTip()(Code)(Java Doc)
public ValueBinding getValueBinding(String name)(Code)(Java Doc)
public boolean isDisabled()(Code)(Java Doc)
public boolean isListOnTop()(Code)(Java Doc)
public boolean isMultiple()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public boolean isSorted()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void restoreState(FacesContext _context, Object _state)(Code)(Java Doc)
public Object saveState(FacesContext _context)(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setFieldLabel(String fieldLabel)(Code)(Java Doc)
public void setFieldValidator(javax.faces.el.MethodBinding fieldValidator)(Code)(Java Doc)
public void setLabelLevel(int labelLevel)(Code)(Java Doc)
public void setList(Object list)(Code)(Java Doc)
public void setListLabel(String listLabel)(Code)(Java Doc)
public void setListOnTop(boolean listOnTop)(Code)(Java Doc)
public void setListValidator(javax.faces.el.MethodBinding listValidator)(Code)(Java Doc)
public void setMaxLength(int maxLength)(Code)(Java Doc)
public void setMultiple(boolean multiple)(Code)(Java Doc)
public void setReadOnly(boolean readOnly)(Code)(Java Doc)
public void setRows(int rows)(Code)(Java Doc)
public void setSorted(boolean sorted)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setStyleClass(String styleClass)(Code)(Java Doc)
public void setTabIndex(int tabIndex)(Code)(Java Doc)
public void setToolTip(String toolTip)(Code)(Java Doc)
public void setValueBinding(String name, ValueBinding binding)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.