|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
com.elegantj.awt.tree.AWTTree
AWTTree provides the tree control in the AWT
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected boolean |
allowCheckboxTree
Allow checkbox tree |
protected boolean |
allowChildParentRelationship
Allow child parent relationship |
protected boolean |
allowSameNodeAtSameLevel
Allow same node at same level or not |
protected java.awt.Color |
backgroundColor
background for the AWTTree |
static int |
BOTTOM
The search panel location |
com.elegantj.editors.C1 |
c1
|
protected int |
clickCountToStartEditing
click count to start editing |
static java.lang.String |
CONTAINS
Search with |
static int |
DOTTED_LINE
line style -- dotted line for the AWTTree |
protected boolean |
editable
tree is editable or not |
static java.lang.String |
ENDS_WITH
Search with |
static java.lang.String |
EQUALS
Search with |
protected java.awt.Color |
foregroundColor
foreground for the AWTTree |
protected boolean |
isDragAndDrop
Wheather drag and drop allowed or not |
protected java.awt.Color |
lineColor
line for the AWTTree |
protected int |
lineStyle
line style for the AWTTree |
protected java.awt.Panel |
lowerPanel
The lower panel |
static int |
MULTIPLE_SELECTION
selection style -- multiple selection for the AWTTree |
protected boolean |
rootVisible
root visible or not |
protected int |
rowHeight
row height for the AWTTree |
static java.lang.String |
SEARCH_FROM_FIRST_NODE
The value to start search from |
static java.lang.String |
SEARCH_FROM_LAST_NODE
The value to start search from |
static java.lang.String |
SEARCH_FROM_SELECTED_NODE_TO_DOWN
The value to start search from |
static java.lang.String |
SEARCH_FROM_SELECTED_NODE_TO_UP
The value to start search from |
protected SearchPanel |
searchPanel
The search panel |
protected boolean |
selectionAllowed
selection allowed or not |
protected int |
selectionStyle
selection style for the AWTTree |
protected boolean |
showRootHandles
show root handles or not |
protected boolean |
showSearchPanel
Wheather allow to show header component or not |
static int |
SINGLE_SELECTION
selection style -- single selection for the AWTTree |
static java.lang.String |
STARTS_WITH
Search with |
static int |
STRAIGHT_LINE
straight style -- straight line for the AWTTree |
static int |
TOP
The search panel location |
protected AWTTreePanel |
treePanel
tree panel whole the tree which is drawn over the treePanel |
protected java.util.Vector |
visibleNodesVector
Vector contains the currently visible nodes |
| 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 | |
AWTTree()
Default constructor of the AWTTree it makes the root node by default |
|
AWTTree(AWTTreeNode root)
Constructs the AWTTree |
|
AWTTree(java.lang.Object rootUserObject,
AWTTreeNode[] nodes)
Constructs the AWTTree with specified root node and value |
|
AWTTree(java.lang.Object rootUserObject,
java.util.Vector nodes)
Constructs the AWTTree with specified root node and value |
|
| Method Summary | |
AWTTreeNode |
addChildToSelectionNode()
Adds new tree node as last child of the selected node |
boolean |
addChildToSelectionNode(AWTTreeNode insertNode)
Adds new tree node as last child of the selected node |
void |
addFocusListener(java.awt.event.FocusListener l)
Overriden the addFocusListener |
void |
addKeyListener(java.awt.event.KeyListener l)
Overriden the addKeyListener |
void |
addMouseListener(java.awt.event.MouseListener l)
Overriden the addMouseListener |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
Overriden the addMouseMotionListener |
boolean |
addNodeInto(AWTTreeNode newChild,
AWTTreeNode parent)
Method adds the new child at the end of the parent node |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener |
void |
addTreeCellEditListener(AWTTreeCellEditListener l)
Adds the AWTTreeCellEditListener |
void |
addTreeExpansionListener(AWTTreeExpansionListener l)
Adds the AWTTreeExpansionListener |
void |
addTreeListener(AWTTreeListener l)
Adds the AWTTreeListener |
AWTTreeNode |
addTreeNodeAboveSelection()
Adds default new tree node above first selected node Returns the AWTTreeNode which added to the |
boolean |
addTreeNodeAboveSelection(AWTTreeNode insertNode)
Adds new tree node above first selected node |
void |
addTreeSelectionListener(AWTTreeSelectionListener l)
Adds the AWTTreeSelectionListener |
void |
addTreeWillExpandListener(AWTTreeWillExpandListener l)
Adds the AWTTreeWillExpandListener |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Default implementation of the adjustmentValueChanged |
boolean |
areSameNodes(AWTTreeNode node1,
AWTTreeNode node2)
Checks for wheather the both nodes are same nodes |
void |
cancelEditing()
Cancels the editing of the tree if currently it is editing |
void |
clearBackgroundNonSelectionColors()
Clears the all the background non selection colors, if exists This method clears background non selection color for the whole tree and all the level wise background non selection colors after invoking this method, the background non selection color of the nodes, only depends on the cell renderer |
void |
clearBackgroundSelectionColors()
Clears the all the background selection colors, if exists This method clears background selection color for the whole tree and all the level wise background selection colors after invoking this method, the background selection color of the nodes, only depends on the cell renderer |
void |
clearBorderSelectionColors()
Clears the all the border selection colors, if exists This method clears border selection color for the whole tree and all the level wise border selection colors after invoking this method, the border selection color of the nodes, only depends on the cell renderer |
void |
clearCollapsedImageIcons()
Clears the all the collapsed image icons, if exists This method clears collapsed image icons for the whole tree and all the level wise collapsed image icons after invoking this method, the collapsed image icons of the nodes, only depends on the cell renderer |
void |
clearExpandedImageIcons()
Clears the all the expanded image icons, if exists This method clears expanded image icons for the whole tree and all the level wise expanded image icons after invoking this method, the expanded image icons of the nodes, only depends on the cell renderer |
void |
clearLeafImageIcons()
Clears the all the leaf image icons, if exists This method clears leaf image icons for the whole tree and all the level wise leaf image icons after invoking this method, the leaf image icons of the nodes, only depends on the cell renderer |
void |
clearLevelWiseCellEditors()
Clears the level wise cell editors, if exists This method clears all the level wise cell editors which have been set with setCellEditorAt method |
void |
clearLevelWiseCellRenderers()
Clears the level wise cell renderers, if exists This method clears all the level wise cell renderers which have been set with setCellRendererAt method |
void |
clearSelection()
Clears the selection of the tree |
void |
clearTextNonSelectionColors()
Clears the all the text non selection colors, if exists This method clears text non selection color for the whole tree and all the level wise text non selection colors after invoking this method, the text non selection color of the nodes, only depends on the cell renderer |
void |
clearTextSelectionColors()
Clears the all the text selection colors, if exists This method clears text selection color for the whole tree and all the level wise text selection colors after invoking this method, the text selection color of the nodes, only depends on the cell renderer |
void |
collapseAll()
Collapse all the nodes of the tree |
boolean |
contains(AWTTreeNode treeNode,
java.lang.String sNode)
Checks whether the node with text sNode is child of the treeNode or not |
static java.lang.String[] |
convertTreeDataToString(AWTTreeNode rootNode)
Converts a tree data to the string array |
AWTTreePopupMenu |
createAWTTreePopupMenu(AWTTree tree)
Creates the AWTTreePopupMenu |
AWTTreeNode |
createNode(java.lang.Object userObject)
Method which creates the node from specified userObject |
static AWTTreeNode |
createNode(java.lang.String[] str)
Creates the AWTTreeNode from the specified string array The array contains the data for the string with TAB for the specify level i.e. |
AWTTreeNode |
createUniqueChildNode(AWTTreeNode parentNode)
Returns the unique child node created for the given parent node |
void |
doLayout()
Overriden doLayout |
void |
expandAll()
Eexpands all the nodes of the tree |
protected void |
fireAfterCellEdit(AWTTreeNode editingNode,
java.lang.Object value)
Fires the after cell edit event |
protected void |
fireBeforeCellEdit(AWTTreeNode editingNode,
java.lang.Object value)
Fires the before cell edit event |
void |
firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires the property change |
protected void |
fireTreeCollapsed(AWTTreeNode[] path)
Fires the tree collapsed event Notify all listeners that have registered interest for notification on this event type |
protected void |
fireTreeExpanded(AWTTreeNode[] path)
Fires the tree expanded event Notify all listeners that have registered interest for notification on this event type |
protected void |
fireTreeNodesChanged(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
Call this method after the node of the tree was changed i.e. |
protected void |
fireTreeNodesInserted(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
Call this method after tree nodes were inserted |
protected void |
fireTreeNodesRemoved(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
Call this method after tree nodes were removed |
protected void |
fireTreeStructureChanged(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
Call this method after tree structure changed |
protected void |
fireTreeWillCollapse(AWTTreeNode[] path)
Fires the tree will collapse event Notify all listeners that have registered interest for notification on this event type |
protected void |
fireTreeWillExpand(AWTTreeNode[] path)
Fires the tree will expand event Notify all listeners that have registered interest for notification on this event type |
protected void |
fireValueChanged(java.util.Vector selectedNodes)
Fires the value changed event |
java.awt.Color |
getBackgroundNonSelectionColor()
Returns the background non selection color of the tree |
java.awt.Color |
getBackgroundNonSelectionColorAt(int level)
Returns the non selection background at the specified level |
java.awt.Color |
getBackgroundSelectionColor()
Returns the background selection color of the tree |
java.awt.Color |
getBackgroundSelectionColorAt(int level)
Returns the selection background at the specified level |
AWTBorder |
getBorder()
Method which returns the border of the AWTTable |
java.awt.Color |
getBorderSelectionColor()
Returns the border selection color of the tree |
java.awt.Color |
getBorderSelectionColorAt(int level)
Returns the border selection color at the specified level |
AWTTreeCellEditor |
getCellEditor()
Returns the cell editor of the tree |
AWTTreeCellEditor |
getCellEditorAt(int level)
Returns the editor at the specified level |
AWTTreeCellRenderer |
getCellRenderer()
Returns the cell renderer of the tree |
AWTTreeCellRenderer |
getCellRendererAt(int level)
Returns the renderer at the specified level |
AWTTreeCellRenderer |
getCheckboxCellRenderer()
Returns the checkbox cell renderer for the awt tree this cell renderer will be effected only if checkbox tree is true |
int |
getClickCountToStartEditing()
Returns the no of click count to start editing |
java.awt.Image |
getCollapsedImageIcon()
Returns the collapsed image icon of the tree |
java.awt.Image |
getCollapsedImageIconAt(int level)
Returns the collapsed image icon at the specified level |
java.awt.Image |
getExpandedImageIcon()
Returns the expanded image icon of the tree |
java.awt.Image |
getExpandedImageIconAt(int level)
Returns the expanded image icon at the specified level |
AWTTreeNode |
getFirstChild(AWTTreeNode node)
Returns node's first child. |
java.awt.Insets |
getInsets()
Method whichs returns the insets of the AWTTable |
AWTTreeNode |
getLastChild(AWTTreeNode node)
Returns node's last child. |
java.awt.Image |
getleafImageIcon()
Returns the leaf image icon of the tree |
java.awt.Image |
getLeafImageIconAt(int level)
Returns the leaf image icon at the specified level |
java.util.Vector |
getLevelWiseIDs()
Returns the strings vector of the level wise string ids |
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
java.awt.Color |
getLineColor()
Returns the line color of the tree |
int |
getLineStyle()
Returns the line style of the tree |
java.util.Locale |
getLocale()
Method which returns the locale of the AWTTree |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of the tree |
AWTTreeNode |
getNextNode(AWTTreeNode node)
Returns the node that follows node in a preorder traversal of this node's tree. |
AWTTreeNode |
getNodeForLocation(int x,
int y)
Returns the node at the specified x, y coordinates |
AWTTreeNode |
getNodeForLocation(java.awt.Point point)
Returns the node at the specified point |
AWTTreeNode |
getNodeForRow(int rowIndex)
Returns the node for the specified row |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the tree |
AWTTreeNode |
getPreviousNode(AWTTreeNode node)
Returns the node that precedes aNode in a preorder traversal of node's tree. |
AWTTreeNode |
getRoot()
Returns the root of the AWTTree |
int |
getRowForNode(AWTTreeNode node)
Returns the visible row index of the specified node if the specified node is currently visible then returns the visible row index else return -1 |
int |
getRowHeight()
Returns the row height of the tree |
java.awt.Color |
getSearchPanelBackground()
Returns the background color of the tree's search panel |
java.awt.Font |
getSearchPanelFont()
Returns the font of the tree's search panel |
java.awt.Color |
getSearchPanelForeground()
Returns the foreground color of the tree's search panel |
int |
getSearchPanelLocation()
Returns the search panel location |
protected java.lang.Object |
getSearchValue(AWTTreeNode node)
Returns the search value of the specified node |
int[] |
getSelectionInterval()
Returns the selection interval |
AWTTreeNode |
getSelectionNode()
Returns the selection node |
java.util.Vector |
getSelectionNodes()
Returns the selection nodes vector |
int |
getSelectionStyle()
Returns the selection style |
java.awt.Color |
getTextNonSelectionColor()
Returns the text non selection color of the tree |
java.awt.Color |
getTextNonSelectionColorAt(int level)
Returns the text non selection color at the specified level |
java.awt.Color |
getTextSelectionColor()
Returns the text selection color of the tree |
java.awt.Color |
getTextSelectionColorAt(int level)
Returns the text selection foreground at the specified level |
java.awt.Color |
getTreeBackground()
Method which Returns the background color of the tree |
java.util.Vector |
getTreeNodes()
Returns the tree nodes which are checked, if tree is checkbox tree |
java.util.Vector |
getTreeNodes(boolean bChecked)
Returns the tree nodes which are checked/unchecked, if tree is checkbox tree |
java.util.Vector |
getTreeNodes(boolean bChecked,
AWTTreeNode parentNode)
Returns the tree nodes which are checked/unchecked of given parent node, if tree is checkbox tree |
java.util.Vector |
getTreeNodes(boolean bChecked,
int nLevel)
Returns the tree nodes which are checked/unchecked at given level, if tree is checkbox tree |
java.util.Vector |
getTreeNodes(boolean bChecked,
int nLevel,
AWTTreeNode parentNode)
Returns the tree nodes which are checked/unchecked at given level of given parent node, if tree is checkbox tree |
AWTTreePanel |
getTreePanel()
Returns the tree panel |
int |
getVisibleRowCount()
Returns the count of the rows (currently visible nodes) |
boolean |
insertNodeInto(AWTTreeNode newChild,
AWTTreeNode parent)
Method inserts the new child at the end of the parent node |
boolean |
insertNodeInto(AWTTreeNode newChild,
AWTTreeNode parent,
int index)
Method inserts the new child at the specified index in the parent node |
boolean |
isAllowSameNodeAtSameLevel()
Returns whether same node can exist in the tree at the same level |
boolean |
isCheckboxTree()
Returns the this tree is checkbox tree or not |
boolean |
isChildParentRelationship()
Returns the wheather child parent relationship or not this property is used when the tree is checkbox and one can want to makes the all the child checked on checked the parent of those child and from all the checked childs if one child is unchecked the parent will also unchecked |
boolean |
isDeleteNodeOnDeleteKey()
Method which returns the value of isDeleteNodeOnInsertKey |
boolean |
isDragAndDrop()
Returns wheather the drag and drop allowed or not |
boolean |
isEditable()
Returns the editability of the tree |
boolean |
isEditing()
Returns the is the tree is currently editing |
boolean |
isInsertNodeOnInsertKey()
Method which returns the value of isInsertNodeOnInsertKey |
boolean |
isNodeCurrentlyDisplayed(AWTTreeNode node)
Returns wheather node currently displayed or not |
boolean |
isRootVisible()
Returns the visibility of the root |
boolean |
isSelectionAllowed()
Returns the value of the is selection allowed |
boolean |
isShowPopupMenu()
Method which returns the value of showPopupMenu |
boolean |
isShowRootHandles()
Returns the value of the show root handles |
boolean |
isShowSearchPanel()
Returns the wheather allow to show the searchPanel |
protected boolean |
isValidDrop(AWTTreeNode childNode,
AWTTreeNode parentNode)
Check for the validity of the drop for the specified childNode and parent node |
protected void |
makeChildParentRelationship(AWTTreeNode node)
Method which makes the child parent relationship when tree is checkbox tree |
void |
nodeChanged(AWTTreeNode node)
Invoke this method after you've changed how node is to be represented in the tree. |
void |
nodesChanged(AWTTreeNode node,
int[] childIndices)
Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree. |
void |
nodeStructureChanged(AWTTreeNode node)
Invoke this method if you've totally changed the children of node and its childrens children This will post a treeStructureChanged event. |
protected void |
nodesWereInserted(AWTTreeNode node,
int[] childIndices)
Method which you have to fire after the nodes were inserted |
protected void |
nodesWereRemoved(AWTTreeNode node,
int[] childIndices,
AWTTreeNode[] removedChildren)
Invoke this method after you've removed some TreeNodes from node. |
void |
paint(java.awt.Graphics g)
Overriden paint method |
void |
processTreeFocusEvent(java.awt.event.FocusEvent e)
Default implementation of the focus even |
void |
processTreeKeyEvent(java.awt.event.KeyEvent e)
Default implementation of the keyPressed |
void |
processTreeMouseEvent(java.awt.event.MouseEvent e)
Default implementation of the mouse event |
void |
processTreeMouseMotionEvent(java.awt.event.MouseEvent e)
Default implementation of the process mouse motion event |
void |
readExternal(java.io.ObjectInput in)
Implementation of the Externalizable |
void |
reload()
Invoke when you want to reload the tree and notify all of its listeners that the tree has changed |
void |
reload(AWTTreeNode node)
Invoke when you want to reload the tree and notify all of its listeners that the tree has changed below the node |
void |
removeFocusListener(java.awt.event.FocusListener l)
Overriden the removeFocusListener |
void |
removeKeyListener(java.awt.event.KeyListener l)
Overriden the removeKeyListener |
void |
removeMouseListener(java.awt.event.MouseListener l)
Overriden the removeMouseListener |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Overriden the removeMouseMotionListener |
void |
removeNodeFromParent(AWTTreeNode node)
Message this to remove node from its parent. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener |
void |
removeSelectedTreeNodes()
Removes the selected nodex |
void |
removeTreeCellEditListener(AWTTreeCellEditListener l)
Removes the AWTTreeCellEditListener |
void |
removeTreeExpansionListener(AWTTreeExpansionListener l)
Removes the AWTTreeExpansionListener |
void |
removeTreeListener(AWTTreeListener l)
Removes the AWTTreeListener |
void |
removeTreeSelectionListener(AWTTreeSelectionListener l)
Removes the AWTTreeSelectionListener |
void |
removeTreeWillExpandListener(AWTTreeWillExpandListener l)
Removes the AWTTreeWillExpandListener |
void |
scrollNodeToVisible(AWTTreeNode node)
Scrolls the node to the visible |
AWTTreeNode |
searchTreeNode(java.lang.String searchText,
java.lang.String searchFrom,
java.lang.String searchWith,
int searchOnLevel,
boolean isCaseSensitive)
Searches the tree for the specific text, level and search type |
void |
setAllowSameNodeAtSameLevel(boolean allowSameNodeAtSameLevel)
Sets whether same node can exist in the tree at the same level if the value of the property true this method doesn't allow to add/insert two same node at the same level for the particular parent. |
void |
setBackground(java.awt.Color background)
Overriden setBackground |
void |
setBackgroundNonSelectionColor(java.awt.Color color)
Sets the background non selection color for the whole tree |
void |
setBackgroundNonSelectionColorAt(int level,
java.awt.Color color)
Sets the non selection background at the specified level for the tree |
void |
setBackgroundSelectionColor(java.awt.Color color)
Sets the background selection color for the whole tree |
void |
setBackgroundSelectionColorAt(int level,
java.awt.Color color)
Sets the selection background at the specified level for the tree |
void |
setBorder(AWTBorder awtBorder)
Method which sets the border for the AWTTable |
void |
setBorderSelectionColor(java.awt.Color color)
Sets the border selection color for the whole tree |
void |
setBorderSelectionColorAt(int level,
java.awt.Color color)
Sets the border selection color at the specified level for the tree |
void |
setBounds(int x,
int y,
int width,
int height)
Method which sets the bounds of the AWTTree |
void |
setCellEditor(AWTTreeCellEditor cellEditor)
Sets the cell editor for the whole tree |
void |
setCellEditorAt(int level,
AWTTreeCellEditor cellEditor)
Sets the editor at the specified level for the tree |
void |
setCellRenderer(AWTTreeCellRenderer cellRenderer)
Sets the cell renderer for the whole tree |
void |
setCellRendererAt(int level,
AWTTreeCellRenderer cellRenderer)
Sets the renderer at the specified level for the tree |
void |
setCheckboxCellRenderer(AWTTreeCellRenderer cellRenderer)
Sets the checkbox cell renderer for the awt tree this cell renderer will be effected only if checkbox tree is true |
void |
setCheckboxTree(boolean bCheckboxTree)
Sets the tree to the check box tree |
void |
setChildParentRelationship(boolean bAllow)
Sets the child parent relationship to true or false this property is used when the tree is checkbox and one can want to makes the all the child checked on checked the parent of those child and from all the checked childs if one child is unchecked the parent will also unchecked |
void |
setClickCountToStartEditing(int clickCount)
Sets the no of click count to start editing |
void |
setCollapsedImageIcon(java.awt.Image imageIcon)
Sets the collapsed image icon for the whole tree |
void |
setCollapsedImageIcon(java.lang.String imagePath)
Sets the collapsed image icon for the whole tree based on specified imagePath |
void |
setCollapsedImageIconAt(int level,
java.awt.Image imageIcon)
Sets the collapsed image icon at the specified level for the tree |
void |
setCollapsedImageIconAt(int level,
java.lang.String imagePath)
Sets the collapsed image icon at the specified level for the tree |
void |
setCursor(java.awt.Cursor cursor)
Method which sets the cursor for the AWTTree |
void |
setDeleteNodeOnDeleteKey(boolean deleteNodeOnDeleteKey)
Method which sets the value of isDeleteNodeOnDeleteKey |
void |
setDragAndDrop(boolean bDragAndDrop)
Sets the drag and drop wheather true or false if true, then node is removed from its parent and added to the target node |
void |
setEditable(boolean bEditable)
Sets the editability of the tree |
void |
setEnabled(boolean bEnabled)
Method which sets the enability of the AWTTree |
void |
setExpanded(AWTTreeNode node,
boolean bExpanded)
Expands the particular node |
void |
setExpandedImageIcon(java.awt.Image imageIcon)
Sets the expanded image icon for the whole tree |
void |
setExpandedImageIcon(java.lang.String imagePath)
Sets the expanded image icon for the whole tree based on specified imagePath |
void |
setExpandedImageIconAt(int level,
java.awt.Image imageIcon)
Sets the expanded image icon at the specified level for the tree |
void |
setExpandedImageIconAt(int level,
java.lang.String imagePath)
Sets the expanded image icon at the specified level for the tree |
void |
setFont(java.awt.Font font)
Overriden setFont |
void |
setForeground(java.awt.Color foreground)
Overriden setForeground |
void |
setHorizontalScrollbarAttributes()
Sets the scrollbars horizontal attributes |
void |
setInsertNodeOnInsertKey(boolean insertNodeOnInsertKey)
Method which sets the value of isInsertNodeOnInsertKey |
void |
setInsets(java.awt.Insets insets)
Method which sets the insets for the AWTTable |
void |
setLeafImageIcon(java.awt.Image imageIcon)
Sets the leaf image icon for the whole tree |
void |
setLeafImageIcon(java.lang.String imagePath)
Sets the leaf image icon for the whole tree based on specified imagePath |
void |
setLeafImageIconAt(int level,
java.awt.Image imageIcon)
Sets the leaf image icon at the specified level for the tree |
void |
setLeafImageIconAt(int level,
java.lang.String imagePath)
Sets the leaf image icon at the specified level for the tree |
void |
setLevelWiseIDs(java.util.Vector levelWiseIDs)
Sets the vector containing string data i.e. |
void |
setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key |
void |
setLineColor(java.awt.Color lineColor)
Sets the line color for the tree |
void |
setLineStyle(int lineStyle)
Sets the line style for the tree |
void |
setLocale(java.util.Locale locale)
Method which sets the locale for the AWTTree |
void |
setRoot(AWTTreeNode root)
Sets the root for the AWTTree |
void |
setRootVisible(boolean bRootVisible)
Sets the visibility of the root i.e. |
void |
setRowHeight(int height)
Sets the row height for the tree |
void |
setSearchPanelBackground(java.awt.Color background)
Method which sets the background color for the tree's search panel |
void |
setSearchPanelFont(java.awt.Font font)
Method which sets the font for the tree's search panel |
void |
setSearchPanelForeground(java.awt.Color foreground)
Method which sets the foreground color for the tree's search panel |
void |
setSearchPanelLocation(int searchPanelLocation)
Sets the search panel location |
void |
setSelectionAllowed(boolean bSelectionAllowed)
Sets the value of is selection allowed or not |
void |
setSelectionInterval(int startRowIndex,
int endRowIndex)
Selects the nodes exists at the specified startRowIndex to endRowIndex inclusive |
void |
setSelectionNode(AWTTreeNode node)
Selects the specified node |
void |
setSelectionRow(int rowIndex)
Selects the node exists at the specified row index |
void |
setSelectionStyle(int selectionStyle)
Sets the selection style |
void |
setShowPopupMenu(boolean showPopupMenu)
Method which sets the value of showPopupMenu |
void |
setShowRootHandles(boolean bShowRootHandles)
Sets the value of the show root handles |
void |
setShowSearchPanel(boolean bShowSearchPanel)
Sets the wheather allow to show the search panel or not |
void |
setTextNonSelectionColor(java.awt.Color color)
Sets the text non selection color for the whole tree |
void |
setTextNonSelectionColorAt(int level,
java.awt.Color color)
Sets the non selection foreground at the specified level for the tree |
void |
setTextSelectionColor(java.awt.Color color)
Sets the text selection color for the whole tree |
void |
setTextSelectionColorAt(int level,
java.awt.Color color)
Sets the text selection color at the specified level for the tree |
void |
setTreeBackground(java.awt.Color background)
Method which sets the background color for the AWTTree |
void |
setUserObject(AWTTreeNode node,
java.lang.Object userObject)
Sets the user object of the specified node to the specified userObject |
void |
setVerticalScrollbarAttributes()
Sets the scrollbars vertical attributes |
void |
setVisible(boolean bVisible)
Method which sets the visibility for the AWTTree |
void |
startEditing(AWTTreeNode node)
Start the editing of the node, programatically |
void |
stopEditing()
Stops the editing of the tree if currently it is editing |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the Externalizable |
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SINGLE_SELECTION
public static final int MULTIPLE_SELECTION
public static final int DOTTED_LINE
public static final int STRAIGHT_LINE
public static java.lang.String STARTS_WITH
public static java.lang.String ENDS_WITH
public static java.lang.String CONTAINS
public static java.lang.String EQUALS
public static java.lang.String SEARCH_FROM_FIRST_NODE
public static java.lang.String SEARCH_FROM_LAST_NODE
public static java.lang.String SEARCH_FROM_SELECTED_NODE_TO_UP
public static java.lang.String SEARCH_FROM_SELECTED_NODE_TO_DOWN
public static int TOP
public static int BOTTOM
protected SearchPanel searchPanel
protected java.awt.Panel lowerPanel
protected AWTTreePanel treePanel
protected int rowHeight
protected int clickCountToStartEditing
protected java.awt.Color backgroundColor
protected java.awt.Color foregroundColor
protected java.awt.Color lineColor
protected int lineStyle
protected boolean selectionAllowed
protected int selectionStyle
protected boolean rootVisible
protected boolean showRootHandles
protected boolean editable
protected boolean showSearchPanel
protected boolean allowCheckboxTree
protected boolean allowChildParentRelationship
protected boolean allowSameNodeAtSameLevel
protected boolean isDragAndDrop
protected java.util.Vector visibleNodesVector
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public AWTTree()
public AWTTree(AWTTreeNode root)
root - The AWTTreeNode
takes this node as the root node
public AWTTree(java.lang.Object rootUserObject,
AWTTreeNode[] nodes)
rootUserObject - The user object for the root from which root node is creatednodes - The array containing the AWTTreeNode(s)
public AWTTree(java.lang.Object rootUserObject,
java.util.Vector nodes)
rootUserObject - The user object for the root from which root node is creatednodes - The vector containing AWTTreeNode(s)| Method Detail |
public AWTTreePopupMenu createAWTTreePopupMenu(AWTTree tree)
public void paint(java.awt.Graphics g)
g - The graphicspublic AWTTreeNode getFirstChild(AWTTreeNode node)
node - the tree node
public AWTTreeNode getNextNode(AWTTreeNode node)
node - the tree node
public AWTTreeNode getPreviousNode(AWTTreeNode node)
node - the tree node
public AWTTreeNode getLastChild(AWTTreeNode node)
node - the tree node
public AWTTreeNode addTreeNodeAboveSelection()
public boolean addTreeNodeAboveSelection(AWTTreeNode insertNode)
insertNode - the node which is inserted
public AWTTreeNode addChildToSelectionNode()
public boolean addChildToSelectionNode(AWTTreeNode insertNode)
insertNode - the node which is inserted
public void removeSelectedTreeNodes()
public void setUserObject(AWTTreeNode node,
java.lang.Object userObject)
node - The specified nodeuserObject - The specified user objectpublic AWTTreeNode createNode(java.lang.Object userObject)
userObject - The specified user object
public AWTTreeNode createUniqueChildNode(AWTTreeNode parentNode)
parentNode - the parent node of the unique child node to be created
public boolean addNodeInto(AWTTreeNode newChild,
AWTTreeNode parent)
newChild - The AWTTreeNode to be addedparent - The AWTTreeNode in to which new child is added
public boolean insertNodeInto(AWTTreeNode newChild,
AWTTreeNode parent)
newChild - The AWTTreeNode to be addedparent - The AWTTreeNode in to which new child is added
public boolean insertNodeInto(AWTTreeNode newChild,
AWTTreeNode parent,
int index)
newChild - The AWTTreeNode to be addedparent - The AWTTreeNode in to which new child is addedindex - The index at which the new child is added
public void removeNodeFromParent(AWTTreeNode node)
protected void nodesWereInserted(AWTTreeNode node,
int[] childIndices)
node - The AWTTreeNode where the node/nodes were inserted as it's childchildIndices - The int array of the indexs of the child of the node
if your are using insertNodeInto method of the tree
then no need to call this method, bcoz of it called internally.
protected void nodesWereRemoved(AWTTreeNode node,
int[] childIndices,
AWTTreeNode[] removedChildren)
public void nodeChanged(AWTTreeNode node)
public void nodesChanged(AWTTreeNode node,
int[] childIndices)
public void nodeStructureChanged(AWTTreeNode node)
public void addTreeListener(AWTTreeListener l)
l - The AWTTreeListenerpublic void removeTreeListener(AWTTreeListener l)
l - The AWTTreeListenerpublic void addTreeExpansionListener(AWTTreeExpansionListener l)
l - The AWTTreeExpansionListenerpublic void removeTreeExpansionListener(AWTTreeExpansionListener l)
l - The AWTTreeExpansionListenerpublic void addTreeWillExpandListener(AWTTreeWillExpandListener l)
l - The AWTTreeWillExpandListenerpublic void removeTreeWillExpandListener(AWTTreeWillExpandListener l)
l - The AWTTreeWillExpandListenerpublic void addTreeSelectionListener(AWTTreeSelectionListener l)
l - The AWTTreeSelectionListenerpublic void removeTreeSelectionListener(AWTTreeSelectionListener l)
l - The AWTTreeSelectionListenerpublic void addTreeCellEditListener(AWTTreeCellEditListener l)
l - The AWTTreeCellEditListenerpublic void removeTreeCellEditListener(AWTTreeCellEditListener l)
l - The AWTTreeCellEditListener
protected void fireTreeNodesChanged(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
source - The source objectpath - The path of the nodechildIndices -
protected void fireTreeNodesInserted(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
source - path - childIndices - children -
protected void fireTreeNodesRemoved(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
source - path - childIndices - The childIndices must in descending orderchildren - must in descending order
protected void fireTreeStructureChanged(java.lang.Object source,
AWTTreeNode[] path,
int[] childIndices,
AWTTreeNode[] children)
source - path - childIndices - children - protected void fireTreeExpanded(AWTTreeNode[] path)
path - The array of the AWTTreeNode
i.e. the path from the node to the rootprotected void fireTreeCollapsed(AWTTreeNode[] path)
path - The array of the AWTTreeNode
i.e. the path from the node to the rootprotected void fireTreeWillExpand(AWTTreeNode[] path)
path - The array of the AWTTreeNode
i.e. the path from the node to the rootprotected void fireTreeWillCollapse(AWTTreeNode[] path)
path - The array of the AWTTreeNode
i.e. the path from the node to the rootprotected void fireValueChanged(java.util.Vector selectedNodes)
selectedNodes - the vector containing the selected nodes
protected void fireBeforeCellEdit(AWTTreeNode editingNode,
java.lang.Object value)
protected void fireAfterCellEdit(AWTTreeNode editingNode,
java.lang.Object value)
public void setRoot(AWTTreeNode root)
root - The root for the AWTTreepublic AWTTreeNode getRoot()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic void processTreeFocusEvent(java.awt.event.FocusEvent e)
public void processTreeMouseEvent(java.awt.event.MouseEvent e)
public void processTreeMouseMotionEvent(java.awt.event.MouseEvent e)
protected boolean isValidDrop(AWTTreeNode childNode,
AWTTreeNode parentNode)
public void processTreeKeyEvent(java.awt.event.KeyEvent e)
public void setSelectionInterval(int startRowIndex,
int endRowIndex)
startRowIndex - The start row indexendRowIndex - The end row index
if the rowIndex0 or rowIndex1 are out of range
i.e. less than or greater than no of visible nodes
The closest value of the startRowIndex and endRowIndex is takenpublic void setSelectionRow(int rowIndex)
rowIndex - The specified row index
if the rowIndex is out of range
first row is selectedpublic int[] getSelectionInterval()
public void setSelectionNode(AWTTreeNode node)
node - The specified nodepublic java.util.Vector getSelectionNodes()
public AWTTreeNode getSelectionNode()
public void clearSelection()
public void doLayout()
public void setHorizontalScrollbarAttributes()
public void setVerticalScrollbarAttributes()
public void scrollNodeToVisible(AWTTreeNode node)
node - The AWTTreeNodepublic boolean isNodeCurrentlyDisplayed(AWTTreeNode node)
node - The AWTTreeNodepublic void expandAll()
public void collapseAll()
public void setExpanded(AWTTreeNode node,
boolean bExpanded)
node - The AWTTreeNodebExpanded - The boolean value for expand or collapsedpublic void setCellEditor(AWTTreeCellEditor cellEditor)
cellEditor - The AWTTreeCellEditorpublic AWTTreeCellEditor getCellEditor()
public void setCellEditorAt(int level,
AWTTreeCellEditor cellEditor)
level - The specified level on to which cell editor to be setcellEditor - The specified cell editorpublic AWTTreeCellEditor getCellEditorAt(int level)
public void clearLevelWiseCellEditors()
public void setCheckboxCellRenderer(AWTTreeCellRenderer cellRenderer)
cellRenderer - The checkbox cell rendererpublic AWTTreeCellRenderer getCheckboxCellRenderer()
public void setCellRenderer(AWTTreeCellRenderer cellRenderer)
cellRenderer - The AWTTreeCellRendererpublic AWTTreeCellRenderer getCellRenderer()
public void setCellRendererAt(int level,
AWTTreeCellRenderer cellRenderer)
level - The specified level on to which cell renderer to be setcellRenderer - The specified cell rendererpublic AWTTreeCellRenderer getCellRendererAt(int level)
public void clearLevelWiseCellRenderers()
public void setBackgroundNonSelectionColor(java.awt.Color color)
color - The background non selection colorpublic java.awt.Color getBackgroundNonSelectionColor()
public void setBackgroundNonSelectionColorAt(int level,
java.awt.Color color)
level - The specified level on to which non selection background to be setcolor - The specified non selection backgroundpublic java.awt.Color getBackgroundNonSelectionColorAt(int level)
public void clearBackgroundNonSelectionColors()
public void setTextNonSelectionColor(java.awt.Color color)
color - The text non selection color for the whole treepublic java.awt.Color getTextNonSelectionColor()
public void setTextNonSelectionColorAt(int level,
java.awt.Color color)
level - The specified level on to which text non selection color to be setcolor - The specified text non selection colorpublic java.awt.Color getTextNonSelectionColorAt(int level)
public void clearTextNonSelectionColors()
public void setBackgroundSelectionColor(java.awt.Color color)
color - The background selection color for the whole treepublic java.awt.Color getBackgroundSelectionColor()
public void setBackgroundSelectionColorAt(int level,
java.awt.Color color)
level - The specified level on to which selection background to be setcolor - The specified selection backgroundpublic java.awt.Color getBackgroundSelectionColorAt(int level)
public void clearBackgroundSelectionColors()
public void setTextSelectionColor(java.awt.Color color)
color - The text selection color for the whole treepublic java.awt.Color getTextSelectionColor()
public void setTextSelectionColorAt(int level,
java.awt.Color color)
level - The specified level on to which text selection color to be setcolor - The specified text selection colorpublic java.awt.Color getTextSelectionColorAt(int level)
public void clearTextSelectionColors()
public void setBorderSelectionColor(java.awt.Color color)
color - The border selection color for the whole treepublic java.awt.Color getBorderSelectionColor()
public void setBorderSelectionColorAt(int level,
java.awt.Color color)
level - The specified level on to which border selection color to be setcolor - The specified border selection colorpublic java.awt.Color getBorderSelectionColorAt(int level)
public void clearBorderSelectionColors()
public void setExpandedImageIcon(java.lang.String imagePath)
imagePath - The specified image path for the expanded image iconpublic void setExpandedImageIcon(java.awt.Image imageIcon)
imageIcon - The expanded image icon for the whole treepublic java.awt.Image getExpandedImageIcon()
public void setExpandedImageIconAt(int level,
java.lang.String imagePath)
level - The specified level on to which expanded image icon to be setimagePath - The specified expanded image path for the expanded image icon
public void setExpandedImageIconAt(int level,
java.awt.Image imageIcon)
imageIcon - The specified expanded image iconlevel - The specified level on to which expanded image icon to be setpublic java.awt.Image getExpandedImageIconAt(int level)
public void clearExpandedImageIcons()
public void setCollapsedImageIcon(java.lang.String imagePath)
imagePath - The specified image path for the collapsed image iconpublic void setCollapsedImageIcon(java.awt.Image imageIcon)
imageIcon - The collapsed image icon for the whole treepublic java.awt.Image getCollapsedImageIcon()
public void setCollapsedImageIconAt(int level,
java.lang.String imagePath)
level - The specified level on to which collapsed image icon to be setimagePath - The specified collapsed image path
public void setCollapsedImageIconAt(int level,
java.awt.Image imageIcon)
level - The specified level on to which collapsed image icon to be setimageIcon - The specified collapsed image iconpublic java.awt.Image getCollapsedImageIconAt(int level)
public void clearCollapsedImageIcons()
public void setLeafImageIcon(java.lang.String imagePath)
imagePath - The specified image path for the leaf image iconpublic void setLeafImageIcon(java.awt.Image imageIcon)
imageIcon - The leaf image icon for the whole treepublic java.awt.Image getleafImageIcon()
public void setLeafImageIconAt(int level,
java.lang.String imagePath)
level - The specified level on to which leaf image icon to be setimagePath - The specified leaf image icon
public void setLeafImageIconAt(int level,
java.awt.Image imageIcon)
level - The specified level on to which leaf image icon to be setimageIcon - The specified leaf image iconpublic java.awt.Image getLeafImageIconAt(int level)
public void clearLeafImageIcons()
public void startEditing(AWTTreeNode node)
node - The node on to which editing will satrtpublic void cancelEditing()
public void stopEditing()
protected void makeChildParentRelationship(AWTTreeNode node)
public boolean isEditing()
public void reload()
public void reload(AWTTreeNode node)
public void setCheckboxTree(boolean bCheckboxTree)
bCheckboxTree - The wheather checkbox tree or notpublic boolean isCheckboxTree()
public void setChildParentRelationship(boolean bAllow)
bAllow - The boolean valuepublic boolean isChildParentRelationship()
public void setAllowSameNodeAtSameLevel(boolean allowSameNodeAtSameLevel)
allowSameNodeAtSameLevel - the enability to exist same node at the same level
if set its to true then if the duplicate node exist in the tree
on the same level of the particular parent, will be removedpublic boolean isAllowSameNodeAtSameLevel()
public boolean contains(AWTTreeNode treeNode,
java.lang.String sNode)
treeNode - the tree node from which the sNode will be searchedsNode - the node text to be searched
public boolean areSameNodes(AWTTreeNode node1,
AWTTreeNode node2)
node1 - The AWTTreeNodenode2 - The AWTTreeNode
public java.util.Vector getTreeNodes()
public java.util.Vector getTreeNodes(boolean bChecked)
bChecked - the state of the tree node (checked or unchecked)
public java.util.Vector getTreeNodes(boolean bChecked,
int nLevel)
bChecked - the state of the tree node (checked or unchecked)nLevel - the node level
public java.util.Vector getTreeNodes(boolean bChecked,
AWTTreeNode parentNode)
bChecked - the state of the tree node (checked or unchecked)parentNode - the parent node
public java.util.Vector getTreeNodes(boolean bChecked,
int nLevel,
AWTTreeNode parentNode)
bChecked - the state of the tree node (checked or unchecked)nLevel - the node levelparentNode - the parent node
public void setSelectionAllowed(boolean bSelectionAllowed)
bSelectionAllowed - The value of is selection allowed or notpublic boolean isSelectionAllowed()
public void setSelectionStyle(int selectionStyle)
selectionStyle - the selectionStyleSINGLE_SELECTION, MULTIPLE_SELECTIONpublic int getSelectionStyle()
SINGLE_SELECTION, MULTIPLE_SELECTIONpublic void setLineStyle(int lineStyle)
lineStyle - the line styleDOTTED_LINE, STRAIGHT_LINEpublic int getLineStyle()
DOTTED_LINE, STRAIGHT_LINEpublic void setLineColor(java.awt.Color lineColor)
lineColor - The line color for the treepublic java.awt.Color getLineColor()
public void setRowHeight(int height)
public int getRowHeight()
public void setClickCountToStartEditing(int clickCount)
clickCount - The int value for the no of click count to start editingpublic int getClickCountToStartEditing()
public void setRootVisible(boolean bRootVisible)
bRootVisible - The value for the visibility of the rootpublic boolean isRootVisible()
public void setShowRootHandles(boolean bShowRootHandles)
bShowRootHandles - The value of the show root handlespublic boolean isShowRootHandles()
public void setEditable(boolean bEditable)
bEditable - The editability of the treepublic boolean isEditable()
public void setShowSearchPanel(boolean bShowSearchPanel)
bShowSearchPanel - The wheather allow to show the search panel or notpublic boolean isShowSearchPanel()
public void setSearchPanelLocation(int searchPanelLocation)
searchPanelLocation - the search panel location
The possible values are TOP, BOTTOMpublic int getSearchPanelLocation()
public AWTTreeNode getNodeForLocation(int x,
int y)
public AWTTreeNode getNodeForLocation(java.awt.Point point)
point - The specified point
public int getRowForNode(AWTTreeNode node)
node - The specified nodepublic AWTTreeNode getNodeForRow(int rowIndex)
public int getVisibleRowCount()
public void setLevelWiseIDs(java.util.Vector levelWiseIDs)
public java.util.Vector getLevelWiseIDs()
public AWTTreeNode searchTreeNode(java.lang.String searchText,
java.lang.String searchFrom,
java.lang.String searchWith,
int searchOnLevel,
boolean isCaseSensitive)
searchText - The search for the specified textsearchWith - The specific type for the search with
The possible values for the search with are
STARTS_WITH, ENDS_WITH, CONTAINS, EQUALSsearchOnLevel - specified search level on to which search will be perfomed
if the searchOnLevel is 0 (zero) it searches for whole the tree
otherwise searches the given level on the tree.isCaseSensitive - Wheather case sensitive or not
protected java.lang.Object getSearchValue(AWTTreeNode node)
public void setDragAndDrop(boolean bDragAndDrop)
public boolean isDragAndDrop()
public final void setBackground(java.awt.Color background)
public final void setForeground(java.awt.Color foreground)
public final void setFont(java.awt.Font font)
public void setSearchPanelBackground(java.awt.Color background)
background - The background color for the tree's search panelpublic java.awt.Color getSearchPanelBackground()
public void setSearchPanelForeground(java.awt.Color foreground)
public java.awt.Color getSearchPanelForeground()
public void setSearchPanelFont(java.awt.Font font)
font - The font for the tree's search panelpublic java.awt.Font getSearchPanelFont()
public void setTreeBackground(java.awt.Color background)
background - The background color for the AWTTreepublic java.awt.Color getTreeBackground()
public void setBorder(AWTBorder awtBorder)
awtBorder - the border for the AWTTablepublic AWTBorder getBorder()
public final void setInsets(java.awt.Insets insets)
insets - the insets for the AWTTablepublic java.awt.Insets getInsets()
public void setVisible(boolean bVisible)
bVisible - the visibility for the AWTTreepublic void setEnabled(boolean bEnabled)
bEnabled - the enability of the AWTTreepublic void setLocale(java.util.Locale locale)
locale - The locale for the AWTTreepublic java.util.Locale getLocale()
public void setCursor(java.awt.Cursor cursor)
cursor - The cursor for the AWTTree
public void setBounds(int x,
int y,
int width,
int height)
x - The x coordinate of the AWTTreey - The y coordinate of the AWTTreewidth - The width of the of the AWTTreeheight - The height of the AWTTreepublic void setShowPopupMenu(boolean showPopupMenu)
showPopupMenu - The value of showPopupMenu
if it's value is true one can open the popup menu
on sright click of mousepublic boolean isShowPopupMenu()
public void setInsertNodeOnInsertKey(boolean insertNodeOnInsertKey)
insertNodeOnInsertKey - The value of isInsertNodeOnInsertKeypublic boolean isInsertNodeOnInsertKey()
public void setDeleteNodeOnDeleteKey(boolean deleteNodeOnDeleteKey)
deleteNodeOnDeleteKey - The value of isDeleteNodeOnDeleteKey
if it's value is true one can delete node on insert keypublic boolean isDeleteNodeOnDeleteKey()
public void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public static AWTTreeNode createNode(java.lang.String[] str)
str - The string array contains the data for the string with TAB
for the specify levelpublic static java.lang.String[] convertTreeDataToString(AWTTreeNode rootNode)
public AWTTreePanel getTreePanel()
public void addMouseListener(java.awt.event.MouseListener l)
public void removeMouseListener(java.awt.event.MouseListener l)
public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
public void addKeyListener(java.awt.event.KeyListener l)
public void removeKeyListener(java.awt.event.KeyListener l)
public void addFocusListener(java.awt.event.FocusListener l)
public void removeFocusListener(java.awt.event.FocusListener l)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listener
public void firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
property - The name of the propertyoldValue - The old valuenewValue - The new value
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||