com.tensegrity.palowebviewer.modules.widgets.client.treecombobox
Class DefaultTreeComboboxModel
java.lang.Object
com.tensegrity.palowebviewer.modules.widgets.client.combobox.AbstractComboboxModel
com.tensegrity.palowebviewer.modules.widgets.client.treecombobox.DefaultTreeComboboxModel
- All Implemented Interfaces:
- IComboboxModel, ITreeComboboxModel
- Direct Known Subclasses:
- SelectedElementComboboxModel
public class DefaultTreeComboboxModel
- extends AbstractComboboxModel
- implements ITreeComboboxModel
Default implementation for ITreeComboboxModel
with tree instead of plain list.
As the base ITreeModel
may be partially loaded, the model have IValidator
that is asked if the selected item is OK. The validator is given setter because it has not
does not know which method to call to set the value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selectedItem
protected java.lang.Object selectedItem
DefaultTreeComboboxModel
public DefaultTreeComboboxModel(ITreeModel treeModel,
java.lang.Object selected)
DefaultTreeComboboxModel
public DefaultTreeComboboxModel(ITreeModel treeModel,
java.lang.Object selected,
IValidator validator)
resetSelected
protected void resetSelected()
isItemValid
protected boolean isItemValid(java.lang.Object item)
getTreeModel
public ITreeModel getTreeModel()
- Specified by:
getTreeModel
in interface ITreeComboboxModel
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interface IComboboxModel
setSelectedItem
public void setSelectedItem(java.lang.Object node)
- Specified by:
setSelectedItem
in interface IComboboxModel
setInitialSelection
protected void setInitialSelection()