Class JDPTreePopup

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPTreePopup

public class JDPTreePopup
extends Panel
Class JDPTreePopup represents a textfield with pulldown ability.


Constructor Index

 o JDPTreePopup(JDPUser)
 o JDPTreePopup(JDPUser, int)
 o JDPTreePopup(JDPUser, String, int)

Method Index

 o addEntry(String[], int[])
Create a new branch using the specified path of names.
 o disable()
Disable the combo box
 o enable()
Enable the combo box
 o getBackground()
 o getEditable()
Get the editable setting of the combo box
 o getEnabled()
Get the enabled setting of the combo box
 o getFont()
 o getForeground()
 o getMaximumHeight()
Get the maximum height of the combo
 o getMaximumWidth()
Get the maximum width of the combo
 o getMinimumHeight()
Get the minimum height of the grid
 o getMinimumWidth()
Get the minimum width of the grid
 o getSeparator()
Get the separator for entries in the tree
 o getText()
Get the value of the combo box
 o handleEvent(Event)
 o loadNDSTree(boolean)
Load the NDS Tree with the tree names from NDS along with the contexts of the default trees
 o minimumSize()
 o preferredSize()
 o setBackground(Color)
 o setEditable(boolean)
Set the editable setting of the combo box
 o setEnabled(boolean)
Set the enabled setting of the combo box
 o setFont(Font)
 o setForeground(Color)
 o setMaximumHeight(int)
Set the maximum height of the combo
 o setMaximumWidth(int)
Set the maximum width of the combo
 o setMinimumHeight(int)
Set the minimum height of the grid
 o setMinimumWidth(int)
Set the minimum width of the grid
 o setRoot(String, boolean, int)
Remove all the entries from the Tree and set the root name.
 o setSeparator(String)
Set the separator for entries in the tree
 o setText(String)
Set the value of the combo box

Constructors

 o JDPTreePopup
 public JDPTreePopup(JDPUser user)
 o JDPTreePopup
 public JDPTreePopup(JDPUser user,
                     int width)
 o JDPTreePopup
 public JDPTreePopup(JDPUser user,
                     String initValue,
                     int width)

Methods

 o addEntry
 public boolean addEntry(String name[],
                         int icons[])
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
icons - the icons of the branches that make the levels to this new leaf.
Returns:
true is branch already exists.
 o setRoot
 public JDPTreeBranch setRoot(String name,
                              boolean expanded,
                              int rootIcon)
Remove all the entries from the Tree and set the root name.

Parameters:
rootName - the text for the tree root.
expanded - show branches (should be set to true initially).
rootIcon - the icon of the root node of the tree.
Returns:
handle to the root node of the tree.
 o setText
 public void setText(String newText)
Set the value of the combo box

Parameters:
newValue - the new value for the combo box
 o getText
 public String getText()
Get the value of the combo box

Returns:
the current value for the combo box
 o setBackground
 public void setBackground(Color thisColor)
Overrides:
setBackground in class Component
 o getBackground
 public Color getBackground()
Overrides:
getBackground in class Component
 o setForeground
 public void setForeground(Color thisColor)
Overrides:
setForeground in class Component
 o getForeground
 public Color getForeground()
Overrides:
getForeground in class Component
 o setFont
 public void setFont(Font thisFont)
Overrides:
setFont in class Component
 o getFont
 public Font getFont()
Overrides:
getFont in class Component
 o setEditable
 public void setEditable(boolean editable)
Set the editable setting of the combo box

Parameters:
editable - the editable setting for the combo box
 o getEditable
 public boolean getEditable()
Get the editable setting of the combo box

Returns:
the editable setting for the combo box
 o enable
 public void enable()
Enable the combo box

Overrides:
enable in class Component
 o disable
 public void disable()
Disable the combo box

Overrides:
disable in class Component
 o setEnabled
 public void setEnabled(boolean enabled)
Set the enabled setting of the combo box

Parameters:
enabled - the enabled setting for the combo box
Overrides:
setEnabled in class Component
 o getEnabled
 public boolean getEnabled()
Get the enabled setting of the combo box

Returns:
the enabled setting for the combo box
 o setSeparator
 public void setSeparator(String sep)
Set the separator for entries in the tree

Parameters:
sep - the separator for entries in the tree
 o getSeparator
 public String getSeparator()
Get the separator for entries in the tree

Returns:
the separator for entries in the tree
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o setMinimumWidth
 public void setMinimumWidth(int width)
Set the minimum width of the grid

Parameters:
the - width in pixels.
 o getMinimumWidth
 public int getMinimumWidth()
Get the minimum width of the grid

Returns:
the width in pixels.
 o setMinimumHeight
 public void setMinimumHeight(int height)
Set the minimum height of the grid

Parameters:
the - height in pixels.
 o getMinimumHeight
 public int getMinimumHeight()
Get the minimum height of the grid

Returns:
the height in pixels.
 o setMaximumWidth
 public void setMaximumWidth(int width)
Set the maximum width of the combo

Parameters:
the - width in pixels.
 o getMaximumWidth
 public int getMaximumWidth()
Get the maximum width of the combo

Returns:
the width in pixels.
 o setMaximumHeight
 public void setMaximumHeight(int height)
Set the maximum height of the combo

Parameters:
the - height in pixels.
 o getMaximumHeight
 public int getMaximumHeight()
Get the maximum height of the combo

Returns:
the height in pixels.
 o loadNDSTree
 public boolean loadNDSTree(boolean rootOnly)
Load the NDS Tree with the tree names from NDS along with the contexts of the default trees