Java Doc for EditableListBase.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

All known Subclasses:   com.sun.rave.web.ui.component.EditableList,
EditableListBase
abstract public class EditableListBase extends javax.faces.component.UIInput (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 ui:editableList 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. The component is rendered on the same row as the text field and the "Add" button, after the "Add" 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

Example

 <ui:editableList id="compid"
 list="#{ListBean.list}" 
 fieldLabel="#{msgs.textfield_label}"
 listLabel="#{msgs.list_label}"
 sorted="true" 
 searchButton="true"
 fieldValidator="#{ListBean.validateNewItem}"
 listValidator="#{ListBean.validateList}"/>
 

Auto-generated component class. Do NOT modify; all changes will be lost!




Constructor Summary
public  EditableListBase()
    

Method Summary
public  StringgetFamily()
    

Return the identifier of the component family to which this component belongs.

public  StringgetFieldLabel()
    
public  javax.faces.el.MethodBindinggetFieldValidator()
    

A validator which will be applied to entries made into the textfield.

public  intgetLabelLevel()
    

Sets the style level for the generated labels.

public  ObjectgetList()
    

The object that represents the list.

public  StringgetListLabel()
    
public  javax.faces.el.MethodBindinggetListValidator()
    

A validator which will be applied to the contents of the list (e.g.

public  intgetMaxLength()
    
public  intgetRows()
    

The number of items to display.

public  StringgetStyle()
    
public  StringgetStyleClass()
    
public  intgetTabIndex()
    
public  StringgetToolTip()
    
public  ValueBindinggetValueBinding(String name)
    
public  booleanisDisabled()
    
public  booleanisListOnTop()
    

Flag indicating whether the list should be on top of the textfield or vice versa.

public  booleanisMultiple()
    
public  booleanisReadOnly()
    
public  booleanisSorted()
    

Set this attribute to true if the list items should be sorted.

public  booleanisVisible()
    

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page.

public  voidrestoreState(FacesContext _context, Object _state)
    
public  ObjectsaveState(FacesContext _context)
    
public  voidsetDisabled(boolean disabled)
    
public  voidsetFieldLabel(String fieldLabel)
    
public  voidsetFieldValidator(javax.faces.el.MethodBinding fieldValidator)
    

A validator which will be applied to entries made into the textfield.

public  voidsetLabelLevel(int labelLevel)
    

Sets the style level for the generated labels.

public  voidsetList(Object list)
    

The object that represents the list.

public  voidsetListLabel(String listLabel)
    
public  voidsetListOnTop(boolean listOnTop)
    

Flag indicating whether the list should be on top of the textfield or vice versa.

public  voidsetListValidator(javax.faces.el.MethodBinding listValidator)
    

A validator which will be applied to the contents of the list (e.g.

public  voidsetMaxLength(int maxLength)
    
public  voidsetMultiple(boolean multiple)
    
public  voidsetReadOnly(boolean readOnly)
    
public  voidsetRows(int rows)
    

The number of items to display.

public  voidsetSorted(boolean sorted)
    

Set this attribute to true if the list items should be sorted.

public  voidsetStyle(String style)
    
public  voidsetStyleClass(String styleClass)
    
public  voidsetTabIndex(int tabIndex)
    
public  voidsetToolTip(String toolTip)
    
public  voidsetValueBinding(String name, ValueBinding binding)
    
public  voidsetVisible(boolean visible)
    

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page.



Constructor Detail
EditableListBase
public EditableListBase()(Code)

Construct a new EditableListBase.





Method Detail
getFamily
public String getFamily()(Code)

Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance.




getFieldLabel
public String getFieldLabel()(Code)

The label of the text field




getFieldValidator
public javax.faces.el.MethodBinding getFieldValidator()(Code)

A validator which will be applied to entries made into the textfield. Specify this to be the validate() method of a javax.faces.validator.Validator, or to another method with the same argument structure and exceptions.




getLabelLevel
public int getLabelLevel()(Code)

Sets the style level for the generated labels. Valid values are 1 (largest), 2 and 3 (smallest). The default value is 2.




getList
public Object getList()(Code)

The object that represents the list. It must be a JavaServer Faces EL expression that evaluates to an array of Objects or to a java.util.List.




getListLabel
public String getListLabel()(Code)

The label of the list




getListValidator
public javax.faces.el.MethodBinding getListValidator()(Code)

A validator which will be applied to the contents of the list (e.g. to verify that the list has a minimum number of entries). Specify this to be the validate() method of a javax.faces.validator.Validator, or to another method with the same argument structure and exceptions.




getMaxLength
public int getMaxLength()(Code)

The maximum number of characters allowed for each string in the list.




getRows
public int getRows()(Code)

The number of items to display. The default value is 6.




getStyle
public String getStyle()(Code)

CSS style(s) to be applied when this component is rendered.




getStyleClass
public String getStyleClass()(Code)

CSS style class(es) to be applied when this component is rendered.




getTabIndex
public int getTabIndex()(Code)

The position of this component in the tabbing order sequence




getToolTip
public String getToolTip()(Code)

Display the text as a tooltip for this component




getValueBinding
public ValueBinding getValueBinding(String name)(Code)

Return the ValueBinding stored for the specified name (if any), respecting any property aliases.


Parameters:
  name - Name of value binding to retrieve



isDisabled
public boolean isDisabled()(Code)

Flag indicating that the user is not permitted to activate this component, and that the component's value will not be submitted with the form.




isListOnTop
public boolean isListOnTop()(Code)

Flag indicating whether the list should be on top of the textfield or vice versa. By default, the textfield is on top.




isMultiple
public boolean isMultiple()(Code)

Flag indicating that the application user may make select more than one option from the listbox .




isReadOnly
public boolean isReadOnly()(Code)

If this attribute is set to true, the value of the component is rendered as text, preceded by the label if one was defined.




isSorted
public boolean isSorted()(Code)

Set this attribute to true if the list items should be sorted. The sorting is performed using a Collator configured with the locale from the FacesContext.




isVisible
public boolean isVisible()(Code)

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.




restoreState
public void restoreState(FacesContext _context, Object _state)(Code)

Restore the state of this component.




saveState
public Object saveState(FacesContext _context)(Code)

Save the state of this component.




setDisabled
public void setDisabled(boolean disabled)(Code)

Flag indicating that the user is not permitted to activate this component, and that the component's value will not be submitted with the form.


See Also:   EditableListBase.isDisabled()



setFieldLabel
public void setFieldLabel(String fieldLabel)(Code)

The label of the text field


See Also:   EditableListBase.getFieldLabel()



setFieldValidator
public void setFieldValidator(javax.faces.el.MethodBinding fieldValidator)(Code)

A validator which will be applied to entries made into the textfield. Specify this to be the validate() method of a javax.faces.validator.Validator, or to another method with the same argument structure and exceptions.


See Also:   EditableListBase.getFieldValidator()



setLabelLevel
public void setLabelLevel(int labelLevel)(Code)

Sets the style level for the generated labels. Valid values are 1 (largest), 2 and 3 (smallest). The default value is 2.


See Also:   EditableListBase.getLabelLevel()



setList
public void setList(Object list)(Code)

The object that represents the list. It must be a JavaServer Faces EL expression that evaluates to an array of Objects or to a java.util.List.


See Also:   EditableListBase.getList()



setListLabel
public void setListLabel(String listLabel)(Code)

The label of the list


See Also:   EditableListBase.getListLabel()



setListOnTop
public void setListOnTop(boolean listOnTop)(Code)

Flag indicating whether the list should be on top of the textfield or vice versa. By default, the textfield is on top.


See Also:   EditableListBase.isListOnTop()



setListValidator
public void setListValidator(javax.faces.el.MethodBinding listValidator)(Code)

A validator which will be applied to the contents of the list (e.g. to verify that the list has a minimum number of entries). Specify this to be the validate() method of a javax.faces.validator.Validator, or to another method with the same argument structure and exceptions.


See Also:   EditableListBase.getListValidator()



setMaxLength
public void setMaxLength(int maxLength)(Code)

The maximum number of characters allowed for each string in the list.


See Also:   EditableListBase.getMaxLength()



setMultiple
public void setMultiple(boolean multiple)(Code)

Flag indicating that the application user may make select more than one option from the listbox .


See Also:   EditableListBase.isMultiple()



setReadOnly
public void setReadOnly(boolean readOnly)(Code)

If this attribute is set to true, the value of the component is rendered as text, preceded by the label if one was defined.


See Also:   EditableListBase.isReadOnly()



setRows
public void setRows(int rows)(Code)

The number of items to display. The default value is 6.


See Also:   EditableListBase.getRows()



setSorted
public void setSorted(boolean sorted)(Code)

Set this attribute to true if the list items should be sorted. The sorting is performed using a Collator configured with the locale from the FacesContext.


See Also:   EditableListBase.isSorted()



setStyle
public void setStyle(String style)(Code)

CSS style(s) to be applied when this component is rendered.


See Also:   EditableListBase.getStyle()



setStyleClass
public void setStyleClass(String styleClass)(Code)

CSS style class(es) to be applied when this component is rendered.


See Also:   EditableListBase.getStyleClass()



setTabIndex
public void setTabIndex(int tabIndex)(Code)

The position of this component in the tabbing order sequence


See Also:   EditableListBase.getTabIndex()



setToolTip
public void setToolTip(String toolTip)(Code)

Display the text as a tooltip for this component


See Also:   EditableListBase.getToolTip()



setValueBinding
public void setValueBinding(String name, ValueBinding binding)(Code)

Set the ValueBinding stored for the specified name (if any), respecting any property aliases.


Parameters:
  name - Name of value binding to set
Parameters:
  binding - ValueBinding to set, or null to remove



setVisible
public void setVisible(boolean visible)(Code)

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.


See Also:   EditableListBase.isVisible()



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