Java Doc for SComboBox.java in  » Swing-Library » wings3 » org » wings » 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 » Swing Library » wings3 » org.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.SComponent
      org.wings.SComboBox

SComboBox
public class SComboBox extends SComponent implements LowLevelEventListener,ListDataListener,ItemSelectable(Code)
Combobox widget to be used inside SForm elements.
author:
   Holger Engels
See Also:   javax.swing.ComboBoxModel
See Also:   SListCellRenderer


Field Summary
protected  StringactionCommand
    
protected  ComboBoxModeldataModel
     The model.
protected  intmaximumRowCount
    
protected  SListCellRendererrenderer
     The renderer used for cell rendering each cell.
protected  ObjectselectedItemReminder
     This protected field is implementation specific.

Constructor Summary
public  SComboBox(ComboBoxModel model)
     Creates a SComboBox that takes its items from an existing ComboBoxModel.
public  SComboBox(Object items)
     Creates a SComboBox that contains the elements in the specified array.
public  SComboBox(Vector items)
     Creates a SComboBox that contains the elements in the specified Vector.
public  SComboBox()
     Creates a SComboBox with a default data model.

Method Summary
public  voidaddActionListener(ActionListener listener)
     Adds an ActionListener.
public  voidaddItem(Object object)
     Adds an item to the item list.
public  voidaddItemListener(ItemListener listener)
     Adds an ItemListener.
 voidcheckMutableComboBoxModel()
    
public  voidcontentsChanged(ListDataEvent e)
     This method is public as an implementation side effect.
protected  voidfireActionEvent()
    
public  voidfireFinalEvents()
    
public  voidfireIntermediateEvents()
    
protected  voidfireItemStateChanged(ItemEvent e)
     Notify all listeners that have registered as ItemListeners.
public  StringgetActionCommand()
     Returns the action commnand that is included in the event sent to action listeners.
public  ActionListener[]getActionListeners()
    
final public  SCellRendererPanegetCellRendererPane()
    
public  ObjectgetItemAt(int index)
     Returns the list item at the specified index.
public  intgetItemCount()
     Returns the number of items in the list.
public  ItemListener[]getItemListeners()
    
public  intgetMaximumRowCount()
    
final public  ComboBoxModelgetModel()
     Returns the data model currently used by the SComboBox.
public  SListCellRenderergetRenderer()
    
public  intgetSelectedIndex()
     Returns the index of the currently selected item in the list.
public  ObjectgetSelectedItem()
     Returns the currently selected item.
public  Object[]getSelectedObjects()
     Returns an array containing the selected item.
public  StringgetSelectionParameter(int index)
    
public  voidinsertItemAt(Object object, int index)
     Inserts an item into the item list at a given index.
public  voidintervalAdded(ListDataEvent e)
     Invoked when items have been added to the internal data model.
public  voidintervalRemoved(ListDataEvent e)
     Invoked when values have been removed from the data model.
public  booleanisEpochCheckEnabled()
    
public  voidprocessLowLevelEvent(String action, String[] values)
    
public  voidremoveActionListener(ActionListener listener)
    
public  voidremoveAllItems()
     Removes all items from the item list.
public  voidremoveItem(Object object)
     Removes an item from the item list.
public  voidremoveItemAt(int index)
    
public  voidremoveItemListener(ItemListener listener)
    
protected  voidselectedItemChanged()
     This protected method is implementation specific.
public  voidsetActionCommand(String command)
     Sets the action commnand that should be included in the event sent to action listeners.
Parameters:
  command - a string containing the "command" that is sentto action listeners.
public  voidsetCG(ComboBoxCG cg)
    
public  voidsetEpochCheckEnabled(boolean epochCheckEnabled)
    
public  voidsetMaximumRowCount(int count)
     Sets the maximum number of rows the SComboBox displays.
public  voidsetModel(ComboBoxModel model)
     Sets the data model that the SComboBox uses to obtain the list of items.
public  voidsetParent(SContainer p)
    
protected  voidsetParentFrame(SFrame f)
    
public  voidsetRenderer(SListCellRenderer newRenderer)
    
public  voidsetSelectedIndex(int index)
     Selects the item at index index.
public  voidsetSelectedItem(Object object)
     Sets the selected item in the SComboBox.

Field Detail
actionCommand
protected String actionCommand(Code)
action command to fire



dataModel
protected ComboBoxModel dataModel(Code)
The model.
See Also:   javax.swing.ComboBoxModel



maximumRowCount
protected int maximumRowCount(Code)
how many rows are displayed in the popup window



renderer
protected SListCellRenderer renderer(Code)
The renderer used for cell rendering each cell.
See Also:   SListCellRenderer



selectedItemReminder
protected Object selectedItemReminder(Code)
This protected field is implementation specific. Do not access directly or override.




Constructor Detail
SComboBox
public SComboBox(ComboBoxModel model)(Code)
Creates a SComboBox that takes its items from an existing ComboBoxModel.
Parameters:
  model - the ComboBoxModel that provides the displayed list of items



SComboBox
public SComboBox(Object items)(Code)
Creates a SComboBox that contains the elements in the specified array.



SComboBox
public SComboBox(Vector items)(Code)
Creates a SComboBox that contains the elements in the specified Vector.



SComboBox
public SComboBox()(Code)
Creates a SComboBox with a default data model. The default data model is an empty list of objects. Use addItem to add items.




Method Detail
addActionListener
public void addActionListener(ActionListener listener)(Code)
Adds an ActionListener. The listener will receive an action event when the user changed the selection.
Parameters:
  listener - the ActionListener that is to be notified



addItem
public void addItem(Object object)(Code)
Adds an item to the item list.
Parameters:
  object - the Object to add to the list



addItemListener
public void addItemListener(ItemListener listener)(Code)
Adds an ItemListener. The listener will receive an action event when the user changed the selection.
Parameters:
  listener - the ItemListener that is to be notified



checkMutableComboBoxModel
void checkMutableComboBoxModel()(Code)



contentsChanged
public void contentsChanged(ListDataEvent e)(Code)
This method is public as an implementation side effect. do not call or override.
See Also:   javax.swing.event.ListDataListener



fireActionEvent
protected void fireActionEvent()(Code)
Notify all listeners that have registered as ActionListeners if the selected item has changed
See Also:   EventListenerList



fireFinalEvents
public void fireFinalEvents()(Code)



fireIntermediateEvents
public void fireIntermediateEvents()(Code)



fireItemStateChanged
protected void fireItemStateChanged(ItemEvent e)(Code)
Notify all listeners that have registered as ItemListeners.
See Also:   EventListenerList



getActionCommand
public String getActionCommand()(Code)
Returns the action commnand that is included in the event sent to action listeners. the string containing the "command" that is sentto action listeners.



getActionListeners
public ActionListener[] getActionListeners()(Code)
Returns an array of all the ActionListeners added to this SComboBox all ActionListeners added or an empty array if there are no such listeners



getCellRendererPane
final public SCellRendererPane getCellRendererPane()(Code)



getItemAt
public Object getItemAt(int index)(Code)
Returns the list item at the specified index.
Parameters:
  index - an int indicating the list position the Object at that list position



getItemCount
public int getItemCount()(Code)
Returns the number of items in the list. an int equal to the number of items in the list



getItemListeners
public ItemListener[] getItemListeners()(Code)
Returns an array of all the ItemListeners added to this SComboBox all ItemListeners added or an empty array if there are no such listeners



getMaximumRowCount
public int getMaximumRowCount()(Code)
Returns the size-attribute the value used for the size-attribute



getModel
final public ComboBoxModel getModel()(Code)
Returns the data model currently used by the SComboBox. the ComboBoxModel that provides the displayed list of items



getRenderer
public SListCellRenderer getRenderer()(Code)
the ListCellRenderer that displays the selected item.



getSelectedIndex
public int getSelectedIndex()(Code)
Returns the index of the currently selected item in the list. the selected item in the list or -1 if no item is selected or ifthe currently selected item (text field) is not in the list



getSelectedItem
public Object getSelectedItem()(Code)
Returns the currently selected item. the currently selected list object from the data model



getSelectedObjects
public Object[] getSelectedObjects()(Code)
Returns an array containing the selected item. an array of Objects containing the selected item



getSelectionParameter
public String getSelectionParameter(int index)(Code)



insertItemAt
public void insertItemAt(Object object, int index)(Code)
Inserts an item into the item list at a given index.
Parameters:
  object - the Object to add to the list
Parameters:
  index - an int specifying the position at which to add the item



intervalAdded
public void intervalAdded(ListDataEvent e)(Code)
Invoked when items have been added to the internal data model. The "interval" includes the first and last values added.
See Also:   javax.swing.event.ListDataListener



intervalRemoved
public void intervalRemoved(ListDataEvent e)(Code)
Invoked when values have been removed from the data model. The"interval" includes the first and last values removed.
See Also:   javax.swing.event.ListDataListener



isEpochCheckEnabled
public boolean isEpochCheckEnabled()(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



processLowLevelEvent
public void processLowLevelEvent(String action, String[] values)(Code)



removeActionListener
public void removeActionListener(ActionListener listener)(Code)
Removes an ActionListener
Parameters:
  listener - the ActionListener to remove



removeAllItems
public void removeAllItems()(Code)
Removes all items from the item list.



removeItem
public void removeItem(Object object)(Code)
Removes an item from the item list. This method works only if the SComboBox uses the default data model. SComboBox uses the default data model when created with the empty constructor and no other model has been set.
Parameters:
  object - the object to remove from the item list



removeItemAt
public void removeItemAt(int index)(Code)
Removes the item at index
Parameters:
  index - an int specifying the idex of the item to remove, where 0indicates the first item in the list



removeItemListener
public void removeItemListener(ItemListener listener)(Code)
Removes an ItemListener
Parameters:
  listener - the ItemListener to remove



selectedItemChanged
protected void selectedItemChanged()(Code)
This protected method is implementation specific. Do not access directly or override.



setActionCommand
public void setActionCommand(String command)(Code)
Sets the action commnand that should be included in the event sent to action listeners.
Parameters:
  command - a string containing the "command" that is sentto action listeners. The same listener can thendo different things depending on the command itreceives.



setCG
public void setCG(ComboBoxCG cg)(Code)



setEpochCheckEnabled
public void setEpochCheckEnabled(boolean epochCheckEnabled)(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



setMaximumRowCount
public void setMaximumRowCount(int count)(Code)
Sets the maximum number of rows the SComboBox displays. If shown as a formComponent, this value is used for the size-attribute.
Parameters:
  count - size-attribute



setModel
public void setModel(ComboBoxModel model)(Code)
Sets the data model that the SComboBox uses to obtain the list of items.
Parameters:
  model - the ComboBoxModel that provides the displayed list of items



setParent
public void setParent(SContainer p)(Code)



setParentFrame
protected void setParentFrame(SFrame f)(Code)



setRenderer
public void setRenderer(SListCellRenderer newRenderer)(Code)

Parameters:
  newRenderer - the SListCellRenderer that displays the selected item.



setSelectedIndex
public void setSelectedIndex(int index)(Code)
Selects the item at index index.
Parameters:
  index - the item to be selected



setSelectedItem
public void setSelectedItem(Object object)(Code)
Sets the selected item in the SComboBox.
Parameters:
  object - the list object to select



Fields inherited from org.wings.SComponent
final public static int DONE_RENDERING(Code)(Java Doc)
final public static Selector SELECTOR_ALL(Code)(Java Doc)
final public static int START_RENDERING(Code)(Java Doc)
final public static int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_FRAME(Code)(Java Doc)
protected Map<Selector, Style> dynamicStyles(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from org.wings.SComponent
final public void addComponentListener(SComponentListener l)(Code)(Java Doc)
public void addDynamicStyle(Style style)(Code)(Java Doc)
final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void addScriptListener(ScriptListener listener)(Code)(Java Doc)
public void addStyle(String additionalCssClassName)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
protected void fireKeyEvents()(Code)(Java Doc)
final public void fireRenderEvent(int type)(Code)(Java Doc)
public ActionMap getActionMap()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public SBorder getBorder()(Code)(Java Doc)
public ComponentCG getCG()(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
public SPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public Style getDynamicStyle(Selector selector)(Code)(Java Doc)
public Collection getDynamicStyles()(Code)(Java Doc)
public int getFocusTraversalIndex()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public InputMap getInputMap()(Code)(Java Doc)
public InputMap getInputMap(int condition)(Code)(Java Doc)
final protected int getListenerCount(Class type)(Code)(Java Doc)
final protected Object[] getListenerList()(Code)(Java Doc)
final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc)
public String getLowLevelEventId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public SContainer getParent()(Code)(Java Doc)
public SFrame getParentFrame()(Code)(Java Doc)
public SDimension getPreferredSize()(Code)(Java Doc)
public RequestURL getRequestURL()(Code)(Java Doc)
public boolean getResidesInForm()(Code)(Java Doc)
public List<ScriptListener> getScriptListenerList()(Code)(Java Doc)
public ScriptListener[] getScriptListeners()(Code)(Java Doc)
final public Session getSession()(Code)(Java Doc)
public boolean getShowAsFormComponent()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public int getVerticalAlignment()(Code)(Java Doc)
public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc)
protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isRecursivelyVisible()(Code)(Java Doc)
public boolean isReloadForced()(Code)(Java Doc)
protected boolean isUpdatePossible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc)
protected boolean processKeyEvents(String[] values)(Code)(Java Doc)
protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
final void register()(Code)(Java Doc)
public void reload()(Code)(Java Doc)
final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc)
final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc)
final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc)
final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc)
final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc)
final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc)
final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc)
final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc)
final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc)
final public void removeComponentListener(SComponentListener l)(Code)(Java Doc)
public void removeDynamicStyle(Selector selector)(Code)(Java Doc)
final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc)
public void removeStyle(String cssStyleClassName)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
public void setActionMap(ActionMap actionMap)(Code)(Java Doc)
public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc)
public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc)
public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc)
public void setBackground(Color color)(Code)(Java Doc)
public void setBorder(SBorder border)(Code)(Java Doc)
public void setCG(ComponentCG newCG)(Code)(Java Doc)
public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc)
public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalIndex(int index)(Code)(Java Doc)
public void setFont(SFont font)(Code)(Java Doc)
public void setForeground(Color color)(Code)(Java Doc)
public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
public void setInputMap(InputMap inputMap)(Code)(Java Doc)
public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc)
public void setName(String uniqueName)(Code)(Java Doc)
public void setNameRaw(String uncheckedName)(Code)(Java Doc)
public void setParent(SContainer parent)(Code)(Java Doc)
protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc)
public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc)
public void setReloadForced(boolean forced)(Code)(Java Doc)
public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc)
public void setStyle(String cssClassName)(Code)(Java Doc)
public void setToolTipText(String t)(Code)(Java Doc)
public void setVerticalAlignment(int alignment)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final void unregister()(Code)(Java Doc)
public void update(Update update)(Code)(Java Doc)
public void updateCG()(Code)(Java Doc)
public void write(Device s) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.