Java Doc for DropDownBase.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.SelectorBase
   com.sun.rave.web.ui.component.Selector
      com.sun.rave.web.ui.component.ListSelectorBase
         com.sun.rave.web.ui.component.ListSelector
            com.sun.rave.web.ui.component.DropDownBase

All known Subclasses:   com.sun.rave.web.ui.component.DropDown,
DropDownBase
abstract public class DropDownBase extends com.sun.rave.web.ui.component.ListSelector (Code)

About this tag

This tag renders a drop-down menu. Use the selected attribute to associate the component with a model object that represents the current choice, by setting the value to an EL expression that corresponds to a property of a managed bean.

Configuring the dropdown tag

Use the items attribute to specify the options from which the web application user can choose. The value must be an EL expression that identifies an array, a java.util.Collection or a java.util.Map of com.sun.rave.web.ui.model.Option.

The first time the component is rendered, the option which corresponds to the value of the selected model object property is marked as selected, using the equals method on the model object.

To optionally specify a label for the component, use the label attribute, or specify a label facet.

Facets

  • label: use this facet to specify a custom component for the label.

Client-side JavaScript functions

  • dropDown_setDisabled(<id>, <disabled>): use this function to enable/disable the drop-down menu. <id> must be the generated id of the component. Set <disabled> to true to disable the component, false to enable it.
  • dropDown_changed(<id>): this function is automatically invoked by the drop-down menu's onchange handler. <id> must be the generated id of the component.

Examples

 <ui:dropDown selected="#{flightSearch.leaveAirport}" 
 items="#{dataBean.airports}" 
 id="leaveAirport" 
 tooltip="#{msgs.chooseAirport}"            label="#{msgs.chooseDepartureAirport}" />
 <ui:dropDown selected="#{flightSearch.leaveAirport}" 
 items="#{dataBean.airports}" 
 id="leaveAirport" 
 tooltip="#{msgs.chooseAirport}"
 label="#{msgs.chooseDepartureAirport}" >
 <f:facet name="label">
 <facet component goes here>
 </f:facet>
 </ui:dropDown>
 

The dataBean backing bean would include the following definition for the "airports" items:

 private Option[] airports = null;
 // Creates a new instance of backing bean //
 public DataBean() {
 airports = new Option[11];
 airports[0] = new Option("SFO", "San Francisco");
 airports[1] = new Option("OAK", "Oakland");
 airports[2] = new Option("SAN", "San Diego");
 airports[3] = new Option("BOS", "Boston");
 airports[4] = new Option("ARN", "Stockholm");
 airports[5] = new Option("MNL", "Manila");
 airports[6] = new Option("CDG", "Paris");
 airports[7] = new Option("PDX", "Portland");
 airports[8] = new Option("LAX", "Los Angeles");
 airports[9] = new Option("NRT", "Tokyo");
 airports[10] = new Option("TBD", "Future Airport");
 airports[10].setDisabled(true);
 }
 public Option[] getAirports() {
 return airports;
 }
 

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




Constructor Summary
public  DropDownBase()
    

Method Summary
public  javax.faces.el.MethodBindinggetAction()
    

Method binding representing a method that processes application actions from this component.

public  javax.faces.el.MethodBindinggetActionListener()
    

Method binding representing a method that receives action from this, and possibly other, components.

public  StringgetFamily()
    

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

public  booleanisForgetValue()
    
public  booleanisNavigateToValue()
    

If this flag is set to true, then selecting an item from this component will cause the application to navigate using the DropDown's value as the action.

public  booleanisSubmitForm()
    
public  voidrestoreState(FacesContext _context, Object _state)
    
public  ObjectsaveState(FacesContext _context)
    
public  voidsetAction(javax.faces.el.MethodBinding action)
    

Method binding representing a method that processes application actions from this component.

public  voidsetActionListener(javax.faces.el.MethodBinding actionListener)
    

Method binding representing a method that receives action from this, and possibly other, components.

public  voidsetForgetValue(boolean forgetValue)
    
public  voidsetNavigateToValue(boolean navigateToValue)
    

If this flag is set to true, then selecting an item from this component will cause the application to navigate using the DropDown's value as the action.

public  voidsetSubmitForm(boolean submitForm)
    


Constructor Detail
DropDownBase
public DropDownBase()(Code)

Construct a new DropDownBase.





Method Detail
getAction
public javax.faces.el.MethodBinding getAction()(Code)

Method binding representing a method that processes application actions from this component. This attribute is only referenced when submitForm is true.




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

Method binding representing a method that receives action from this, and possibly other, components. The Action Listener is invoked only when submitForm is true.




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.




isForgetValue
public boolean isForgetValue()(Code)

If this flag is set to true, then the component is always rendered with no initial selection.




isNavigateToValue
public boolean isNavigateToValue()(Code)

If this flag is set to true, then selecting an item from this component will cause the application to navigate using the DropDown's value as the action. Use this in place of defining the navigation outcome using the action MethodBinding. This applies only if submitForm is true.




isSubmitForm
public boolean isSubmitForm()(Code)

Flag indicating that the form should be submitted when the value of the component changes.




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.




setAction
public void setAction(javax.faces.el.MethodBinding action)(Code)

Method binding representing a method that processes application actions from this component. This attribute is only referenced when submitForm is true.


See Also:   DropDownBase.getAction()



setActionListener
public void setActionListener(javax.faces.el.MethodBinding actionListener)(Code)

Method binding representing a method that receives action from this, and possibly other, components. The Action Listener is invoked only when submitForm is true.


See Also:   DropDownBase.getActionListener()



setForgetValue
public void setForgetValue(boolean forgetValue)(Code)

If this flag is set to true, then the component is always rendered with no initial selection.


See Also:   DropDownBase.isForgetValue()



setNavigateToValue
public void setNavigateToValue(boolean navigateToValue)(Code)

If this flag is set to true, then selecting an item from this component will cause the application to navigate using the DropDown's value as the action. Use this in place of defining the navigation outcome using the action MethodBinding. This applies only if submitForm is true.


See Also:   DropDownBase.isNavigateToValue()



setSubmitForm
public void setSubmitForm(boolean submitForm)(Code)

Flag indicating that the form should be submitted when the value of the component changes.


See Also:   DropDownBase.isSubmitForm()



Fields inherited from com.sun.rave.web.ui.component.ListSelector
final public static String LIST_ID(Code)(Java Doc)
final public static String VALUE_ID(Code)(Java Doc)
protected ArrayList listItems(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.ListSelector
public void checkSelectionModel(FacesContext context)(Code)(Java Doc)
protected ListItem createListItem(Option si)(Code)(Java Doc)
public UIComponent getLabelComponent()(Code)(Java Doc)
public Iterator getListItems(FacesContext context, boolean rulerAtEnd) throws FacesException(Code)(Java Doc)
public Iterator getListItems() throws FacesException(Code)(Java Doc)
protected Option[] getOptions()(Code)(Java Doc)
public String getPrimaryElementID(FacesContext context)(Code)(Java Doc)
public UIComponent getReadOnlyValueComponent()(Code)(Java Doc)
public int getSeparatorLength()(Code)(Java Doc)
public String getValueAsReadOnly(FacesContext context, String separator)(Code)(Java Doc)
public String[] getValueAsStringArray(FacesContext context)(Code)(Java Doc)
public boolean mainListSubmits()(Code)(Java Doc)
protected void markSelectedListItems(java.util.List list, boolean processed)(Code)(Java Doc)
protected void processOptions(Option[] options)(Code)(Java Doc)
protected void processSelections()(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.ListSelectorBase
public String getFamily()(Code)(Java Doc)
public int getRows()(Code)(Java Doc)
public boolean isLabelOnTop()(Code)(Java Doc)
public boolean isSeparators()(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 setLabelOnTop(boolean labelOnTop)(Code)(Java Doc)
public void setRows(int rows)(Code)(Java Doc)
public void setSeparators(boolean separators)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)

Fields inherited from com.sun.rave.web.ui.component.Selector
protected ValueTypeEvaluator valueTypeEvaluator(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.Selector
protected boolean compareValues(Object previous, Object value)(Code)(Java Doc)
public Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException(Code)(Java Doc)
public int getLabelLevel()(Code)(Java Doc)
public boolean getRendersChildren()(Code)(Java Doc)
protected String getValueAsReadOnly(FacesContext context)(Code)(Java Doc)
public boolean isMultiple()(Code)(Java Doc)
static void log(String s, Object o)(Code)(Java Doc)
void log(String s)(Code)(Java Doc)
public void setMultiple(boolean multiple)(Code)(Java Doc)
public void setSelected(Object selected)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.SelectorBase
public String getFamily()(Code)(Java Doc)
public Object getItems()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public int getLabelLevel()(Code)(Java Doc)
public String getOnBlur()(Code)(Java Doc)
public String getOnChange()(Code)(Java Doc)
public String getOnClick()(Code)(Java Doc)
public String getOnDblClick()(Code)(Java Doc)
public String getOnFocus()(Code)(Java Doc)
public String getOnKeyDown()(Code)(Java Doc)
public String getOnKeyPress()(Code)(Java Doc)
public String getOnKeyUp()(Code)(Java Doc)
public String getOnMouseDown()(Code)(Java Doc)
public String getOnMouseMove()(Code)(Java Doc)
public String getOnMouseOut()(Code)(Java Doc)
public String getOnMouseOver()(Code)(Java Doc)
public String getOnMouseUp()(Code)(Java Doc)
public String getOnSelect()(Code)(Java Doc)
public Object getSelected()(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 isReadOnly()(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 setItems(Object items)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
public void setLabelLevel(int labelLevel)(Code)(Java Doc)
public void setOnBlur(String onBlur)(Code)(Java Doc)
public void setOnChange(String onChange)(Code)(Java Doc)
public void setOnClick(String onClick)(Code)(Java Doc)
public void setOnDblClick(String onDblClick)(Code)(Java Doc)
public void setOnFocus(String onFocus)(Code)(Java Doc)
public void setOnKeyDown(String onKeyDown)(Code)(Java Doc)
public void setOnKeyPress(String onKeyPress)(Code)(Java Doc)
public void setOnKeyUp(String onKeyUp)(Code)(Java Doc)
public void setOnMouseDown(String onMouseDown)(Code)(Java Doc)
public void setOnMouseMove(String onMouseMove)(Code)(Java Doc)
public void setOnMouseOut(String onMouseOut)(Code)(Java Doc)
public void setOnMouseOver(String onMouseOver)(Code)(Java Doc)
public void setOnMouseUp(String onMouseUp)(Code)(Java Doc)
public void setOnSelect(String onSelect)(Code)(Java Doc)
public void setReadOnly(boolean readOnly)(Code)(Java Doc)
public void setSelected(Object selected)(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.