| com.xoetrope.swing.XCheckCombo
XCheckCombo | public class XCheckCombo extends XComboBox implements XAttributedComponent(Code) | | A Combo box that contains a Combo of check boxes
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.5 $
|
XCheckCombo | public XCheckCombo()(Code) | | Create a new checked Combo
|
XCheckCombo | public XCheckCombo(Object[] items)(Code) | | Create a new checked Combo
Parameters: items - an array of items to add to the Combo |
addItem | public void addItem(String s)(Code) | | Add an item to the listmodel
Parameters: s - the item to be added |
clearSelection | public void clearSelection()(Code) | | Clear the list selections
|
configureEditor | public void configureEditor(ComboBoxEditor anEditor, Object anItem)(Code) | | Initializes the editor with the specified item.
Parameters: anEditor - the ComboBoxEditor that displaysthe list item in thecombo box field and allows it to be edited Parameters: anItem - the object to display and edit in the field |
getSelectedIndex | public int getSelectedIndex()(Code) | | Returns the first item in the list that matches the given item.
The result is not always defined if the JComboBox
allows selected items that are not in the list.
Returns -1 if there is no selected item or if the user specified
an item which is not in the list.
an integer specifying the currently selected list item,where 0 specifiesthe first item in the list;or -1 if no item is selected or ifthe currently selected item is not in the list |
getSelectedItems | public String[] getSelectedItems()(Code) | | Get a Combo of the checked items in the Combo
the checked items |
selectItem | public void selectItem(int idx, boolean selected)(Code) | | Force the selection of an item in the Combo
Parameters: idx - the index of the item Parameters: selected - true to force selection of the item |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- separator, value=the text used to separate item once selected
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero for failure or to require some further action |
setSelectedItem | public void setSelectedItem(Object selObj)(Code) | | |
setSeparator | public void setSeparator(String s)(Code) | | Set the separator text
Parameters: s - the separator text |
|
|