public class TreeFixListComboModel
extends java.lang.Object
implements javax.swing.ComboBoxModel
Constructor and Description |
---|
TreeFixListComboModel(javax.swing.JTree tree,
javax.swing.JList fixList,
boolean fixListBelow) |
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing
|
java.lang.Object |
getElementAt(int index)
Returns the item at the given index.
|
boolean |
getFixListBelow()
get the position of the fix list in the popup.
|
java.lang.Object |
getSelectedItem() |
int |
getSize() |
javax.swing.tree.TreePath |
getTreePath(java.lang.Object obj) |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing
|
void |
setFixListBelow(boolean fixListBelow)
Set the position of the fix list in the popup
|
void |
setSelectedItem(java.lang.Object anItem)
set the given item as selected.
|
public TreeFixListComboModel(javax.swing.JTree tree, javax.swing.JList fixList, boolean fixListBelow)
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem
in interface javax.swing.ComboBoxModel
anItem
- public javax.swing.tree.TreePath getTreePath(java.lang.Object obj)
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
index
- public boolean getFixListBelow()
public void setFixListBelow(boolean fixListBelow)
fixListBelow
- - true = place fix list at bottom, false = at top.public void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener
in interface javax.swing.ListModel
l
- public void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener
in interface javax.swing.ListModel
l
-