| |
|
| java.lang.Object org.wings.SComponent org.wings.SComboBox
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. |
actionCommand | protected String actionCommand(Code) | | action command to fire
|
maximumRowCount | protected int maximumRowCount(Code) | | how many rows are displayed in the popup window
|
selectedItemReminder | protected Object selectedItemReminder(Code) | | This protected field is implementation specific. Do not access directly
or override.
|
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.
|
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) | | |
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 |
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 |
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 |
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. |
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 |
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 |
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)
|
|
|
|