public class JTreeHpr<T extends javax.swing.JTree> extends JComponentHpr<T>
Constructor and Description |
---|
JTreeHpr() |
Modifier and Type | Method and Description |
---|---|
static void |
expandAll(javax.swing.JTree aTree,
boolean expand)
If expand is true, expands all nodes in the tree.
|
protected static java.util.List |
findTreeObjectPath(javax.swing.tree.TreeModel aModel,
java.lang.Object aNode,
java.lang.Object aValue)
Finds a tree object.
|
int |
getChildCount(T anObj)
Override to suppress children.
|
RJTreeModel |
getRibsModel(javax.swing.JTree aTree)
Returns a Ribs tree model for a given tree, if available.
|
int |
getSelectedIndex(T aTree)
Returns the selected index property of given object.
|
java.lang.Object |
getSelectedItem(T aTree)
Returns the selected object property of given object.
|
protected static java.lang.Object |
getTreeNodeObject(java.lang.Object aNode)
Returns a value for a tree node.
|
java.lang.Object |
getValue(T aTree,
java.lang.String aPropertyName)
Returns a component's value as a string.
|
void |
initUI(T aTree,
UIOwner anOwner)
Override to install TreeSelectionListener.
|
static void |
reloadTree(javax.swing.JTree aTree,
boolean doPreserveSelection,
boolean doPreserveExpanded)
Reloads tree.
|
void |
setSelectedIndex(T aTree,
int aValue)
Sets the selected index property of given object to given value.
|
void |
setSelectedItem(T aTree,
java.lang.Object aValue)
Sets the selected object property of given object to given value.
|
addBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getPropertyNamesImpl, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLost
getHelper, getSwingHelper, getSwingHelper
enableEvents, getAction, getBinding, getChild, getItemDisplayKey, getItems, getKeyValue, getPropertyNameMapped, getPropertyNames, getSelectedIndexes, getSelectedIndexs, getText, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndexes, setText, setValue
public int getChildCount(T anObj)
getChildCount
in class JComponentHpr<T extends javax.swing.JTree>
public void initUI(T aTree, UIOwner anOwner)
initUI
in class JComponentHpr<T extends javax.swing.JTree>
public java.lang.Object getValue(T aTree, java.lang.String aPropertyName)
public RJTreeModel getRibsModel(javax.swing.JTree aTree)
public static void reloadTree(javax.swing.JTree aTree, boolean doPreserveSelection, boolean doPreserveExpanded)
public static void expandAll(javax.swing.JTree aTree, boolean expand)
public int getSelectedIndex(T aTree)
getSelectedIndex
in class UIHelper<T extends javax.swing.JTree>
public void setSelectedIndex(T aTree, int aValue)
setSelectedIndex
in class UIHelper<T extends javax.swing.JTree>
public java.lang.Object getSelectedItem(T aTree)
getSelectedItem
in class UIHelper<T extends javax.swing.JTree>
public void setSelectedItem(T aTree, java.lang.Object aValue)
setSelectedItem
in class UIHelper<T extends javax.swing.JTree>
protected static java.util.List findTreeObjectPath(javax.swing.tree.TreeModel aModel, java.lang.Object aNode, java.lang.Object aValue)
protected static java.lang.Object getTreeNodeObject(java.lang.Object aNode)