|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JComboBox com.jidesoft.combobox.ExComboBox com.jidesoft.combobox.TreeExComboBox com.jidesoft.combobox.CheckBoxTreeExComboBox
public class CheckBoxTreeExComboBox
CheckBoxTreeExComboBox
is ComboBox which you can choose values from a check box tree.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.combobox.ExComboBox |
---|
ExComboBox.LazyDelegateAction |
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.jidesoft.combobox.TreeExComboBox |
---|
_object, _treeModel, maximumRowCount, renderer, TREE_MODEL_PROPERTY |
Fields inherited from class com.jidesoft.combobox.ExComboBox |
---|
CLIENT_PROPERTY_HIDE_POPUP_ON_LIST_DATA_CHANGED, CLIENT_PROPERTY_POPUP_PANEL, CLIENT_PROPERTY_TABLE_CELL_EDITOR, CLIENT_PROPERTY_TABLE_CELL_RENDERER, COMMIT, COMMIT_OR_RESET, COMMIT_OR_REVERT, DIALOG, DOWN_KEY_BEHAVIOR_SELECT_NEXT, DOWN_KEY_BEHAVIOR_SHOW_POPUP, DROPDOWN, PERSIST, PROPERTY_BUTTON_VISIBLE, PROPERTY_SELECTED_ITEM, RESET, REVERT |
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CheckBoxTreeExComboBox()
|
|
CheckBoxTreeExComboBox(Hashtable<?,?> objects)
Creates a new CheckBoxTreeExComboBox . |
|
CheckBoxTreeExComboBox(Object[] objects)
Creates a new CheckBoxTreeExComboBox . |
|
CheckBoxTreeExComboBox(TreeModel model)
Creates a new CheckBoxTreeExComboBox . |
|
CheckBoxTreeExComboBox(TreeNode root)
Creates a new CheckBoxTreeExComboBox . |
|
CheckBoxTreeExComboBox(TreeNode root,
boolean asksAllowsChildren)
Creates a new CheckBoxTreeExComboBox . |
|
CheckBoxTreeExComboBox(Vector<?> objects)
Creates a new CheckBoxTreeExComboBox . |
Method Summary | |
---|---|
String |
convertElementToString(Object object)
Converts the element from object to string so that i can display in the text field of CheckBoxTreeExComboBox. |
protected TreeChooserPanel |
createTreeChooserPanel(TreeModel model)
Creates the TreeChooserPanel. |
void |
setSelectedItem(Object anObject,
boolean fireEvent)
Same as ExComboBox.setSelectedItem(Object) except you can choose to fire the ItemEvent or not. |
Methods inherited from class com.jidesoft.combobox.TreeExComboBox |
---|
createPopupComponent, createTree, getCellRenderer, getDelegateTarget, getMaximumRowCount, getTree, getTreeModel, initComboBox, isDoubleClickExpand, isSearchUserObjectToSelect, isValidSelection, populateTreePaths, setCellRenderer, setDoubleClickExpand, setMaximumRowCount, setPopupVisible, setSearchUserObjectToSelect, setTreeModel, setupTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckBoxTreeExComboBox()
public CheckBoxTreeExComboBox(Object[] objects)
CheckBoxTreeExComboBox
.
objects
- the objectspublic CheckBoxTreeExComboBox(Vector<?> objects)
CheckBoxTreeExComboBox
.
objects
- the objectspublic CheckBoxTreeExComboBox(Hashtable<?,?> objects)
CheckBoxTreeExComboBox
.
objects
- the objectspublic CheckBoxTreeExComboBox(TreeNode root)
CheckBoxTreeExComboBox
.
root
- the root nodepublic CheckBoxTreeExComboBox(TreeNode root, boolean asksAllowsChildren)
CheckBoxTreeExComboBox
.
root
- the root nodeasksAllowsChildren
- the flag indicating if allows childrenpublic CheckBoxTreeExComboBox(TreeModel model)
CheckBoxTreeExComboBox
.
model
- the tree modelMethod Detail |
---|
protected TreeChooserPanel createTreeChooserPanel(TreeModel model)
TreeExComboBox
TreeChooserPanel panel = new TreeChooserPanel(object) {
protected void setupTree(final JTree tree) {
super.setupTree(tree);
tree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
if (e.getPath() != null && !Boolean.TRUE.equals(tree.getClientProperty(PopupPanel.SELECTED_BY_MOUSE_ROLLOVER)))
{
if (isValidSelection(e.getPath())) {
setSelectedObject(item, false);
getEditor().setItem(e.getPath());
getEditor().selectAll();
}
}
}
});
TreeComboBox.this.setupTree(tree);
}
protected boolean isValidSelection(TreePath path) {
return TreeComboBox.this.isValidSelection(path);
}
};
createTreeChooserPanel
in class TreeExComboBox
model
- the tree model
public void setSelectedItem(Object anObject, boolean fireEvent)
ExComboBox.setSelectedItem(Object)
except you can choose to fire the ItemEvent or not.
setSelectedItem
in class ExComboBox
anObject
- the new valuefireEvent
- true to fire event which is the same as ExComboBox.setSelectedItem(Object)
. False if you don't want
to fire event.public String convertElementToString(Object object)
convertElementToString
in class TreeExComboBox
object
- the object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |