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.
-
JDPTreePopup(JDPUser)
-
-
JDPTreePopup(JDPUser, int)
-
-
JDPTreePopup(JDPUser, String, int)
-
-
addEntry(String[], int[])
- Create a new branch using the specified path of names.
-
disable()
- Disable the combo box
-
enable()
- Enable the combo box
-
getBackground()
-
-
getEditable()
- Get the editable setting of the combo box
-
getEnabled()
- Get the enabled setting of the combo box
-
getFont()
-
-
getForeground()
-
-
getMaximumHeight()
- Get the maximum height of the combo
-
getMaximumWidth()
- Get the maximum width of the combo
-
getMinimumHeight()
- Get the minimum height of the grid
-
getMinimumWidth()
- Get the minimum width of the grid
-
getSeparator()
- Get the separator for entries in the tree
-
getText()
- Get the value of the combo box
-
handleEvent(Event)
-
-
loadNDSTree(boolean)
- Load the NDS Tree with the tree names from NDS along with the
contexts of the default trees
-
minimumSize()
-
-
preferredSize()
-
-
setBackground(Color)
-
-
setEditable(boolean)
- Set the editable setting of the combo box
-
setEnabled(boolean)
- Set the enabled setting of the combo box
-
setFont(Font)
-
-
setForeground(Color)
-
-
setMaximumHeight(int)
- Set the maximum height of the combo
-
setMaximumWidth(int)
- Set the maximum width of the combo
-
setMinimumHeight(int)
- Set the minimum height of the grid
-
setMinimumWidth(int)
- Set the minimum width of the grid
-
setRoot(String, boolean, int)
- Remove all the entries from the Tree and set the root name.
-
setSeparator(String)
- Set the separator for entries in the tree
-
setText(String)
- Set the value of the combo box
JDPTreePopup
public JDPTreePopup(JDPUser user)
JDPTreePopup
public JDPTreePopup(JDPUser user,
int width)
JDPTreePopup
public JDPTreePopup(JDPUser user,
String initValue,
int width)
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.
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.
setText
public void setText(String newText)
- Set the value of the combo box
- Parameters:
- newValue - the new value for the combo box
getText
public String getText()
- Get the value of the combo box
- Returns:
- the current value for the combo box
setBackground
public void setBackground(Color thisColor)
- Overrides:
- setBackground in class Component
getBackground
public Color getBackground()
- Overrides:
- getBackground in class Component
setForeground
public void setForeground(Color thisColor)
- Overrides:
- setForeground in class Component
getForeground
public Color getForeground()
- Overrides:
- getForeground in class Component
setFont
public void setFont(Font thisFont)
- Overrides:
- setFont in class Component
getFont
public Font getFont()
- Overrides:
- getFont in class Component
setEditable
public void setEditable(boolean editable)
- Set the editable setting of the combo box
- Parameters:
- editable - the editable setting for the combo box
getEditable
public boolean getEditable()
- Get the editable setting of the combo box
- Returns:
- the editable setting for the combo box
enable
public void enable()
- Enable the combo box
- Overrides:
- enable in class Component
disable
public void disable()
- Disable the combo box
- Overrides:
- disable in class Component
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
getEnabled
public boolean getEnabled()
- Get the enabled setting of the combo box
- Returns:
- the enabled setting for the combo box
setSeparator
public void setSeparator(String sep)
- Set the separator for entries in the tree
- Parameters:
- sep - the separator for entries in the tree
getSeparator
public String getSeparator()
- Get the separator for entries in the tree
- Returns:
- the separator for entries in the tree
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
setMinimumWidth
public void setMinimumWidth(int width)
- Set the minimum width of the grid
- Parameters:
- the - width in pixels.
getMinimumWidth
public int getMinimumWidth()
- Get the minimum width of the grid
- Returns:
- the width in pixels.
setMinimumHeight
public void setMinimumHeight(int height)
- Set the minimum height of the grid
- Parameters:
- the - height in pixels.
getMinimumHeight
public int getMinimumHeight()
- Get the minimum height of the grid
- Returns:
- the height in pixels.
setMaximumWidth
public void setMaximumWidth(int width)
- Set the maximum width of the combo
- Parameters:
- the - width in pixels.
getMaximumWidth
public int getMaximumWidth()
- Get the maximum width of the combo
- Returns:
- the width in pixels.
setMaximumHeight
public void setMaximumHeight(int height)
- Set the maximum height of the combo
- Parameters:
- the - height in pixels.
getMaximumHeight
public int getMaximumHeight()
- Get the maximum height of the combo
- Returns:
- the height in pixels.
loadNDSTree
public boolean loadNDSTree(boolean rootOnly)
- Load the NDS Tree with the tree names from NDS along with the
contexts of the default trees