All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.TreePopup
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.TreePopup
- public class TreePopup
- extends Component
- implements ActionListener, ItemListener
TreePopup is a component that implements a tree popup.
-
TreePopup()
- Constructs a new TreePopup.
-
TreePopup(String)
- Constructs a new TreePopup initialized with the specified text value.
-
TreePopup(String, int)
- Constructs a new ComboBox initialized with the specified text date.
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
-
-
displayPopup()
-
-
getCaretPosition()
- Returns the position of the text insertion caret for the
ComboBox component.
-
getMinimumSize()
- Gets the minimum size of this component.
-
getSelectedText()
- Returns the current selected text value this ComboBox
-
getSelectionEnd()
- Returns the selected ComboBox's end position.
-
getSelectionStart()
- Returns the selected ComboBox's end position.
-
getSeparator()
- Returns the current text value this TextField
-
getText()
- Returns the current text value this TextField
-
getTreeHandle()
- Get the handle to the tree so operations can be performed on it.
-
isEditable()
- Returns the boolean indicating whether this ComboBox is
editable or not.
-
itemStateChanged(ItemEvent)
-
-
paint(Graphics)
-
Paints the component.
-
processFocusEvent(FocusEvent)
-
Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
-
processKeyEvent(KeyEvent)
-
Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
removeActionListener(ActionListener)
-
-
select(int, int)
- Sets the new selected text value this ComboBox
-
setCaretPosition(int)
- Sets the position of the text insertion caret for the ComboBox
-
setEditable(boolean)
- Sets the specified boolean to indicate whether or not this
TextComponent should be editable.
-
setSeparator(String)
- Sets the new text value of the element separator
-
setText(String)
- Sets the new text value this TextField
-
setTextNoRepaint(String)
- Sets the new text value this TextField
-
validate()
-
Ensures that a component has a valid layout.
TreePopup
public TreePopup()
- Constructs a new TreePopup.
TreePopup
public TreePopup(String text)
- Constructs a new TreePopup initialized with the specified text value.
- Parameters:
- text - the text to be displayed
TreePopup
public TreePopup(String text,
int minWidth)
- Constructs a new ComboBox initialized with the specified text date.
- Parameters:
- text - the text to be displayed
- minWidth - the minimum width in pixels of this ComboBox
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
getText
public String getText()
- Returns the current text value this TextField
- Returns:
- the current text value this TextField
setText
public void setText(String s)
- Sets the new text value this TextField
- Parameters:
- the - new text value this TextField
setTextNoRepaint
public void setTextNoRepaint(String s)
- Sets the new text value this TextField
- Parameters:
- the - new text value this TextField
getSeparator
public String getSeparator()
- Returns the current text value this TextField
- Returns:
- the current text value this TextField
setSeparator
public void setSeparator(String sep)
- Sets the new text value of the element separator
- Parameters:
- the - new text value of the element separator
getSelectedText
public String getSelectedText()
- Returns the current selected text value this ComboBox
- Returns:
- the current selected text value this ComboBox
getSelectionStart
public int getSelectionStart()
- Returns the selected ComboBox's end position.
getSelectionEnd
public int getSelectionEnd()
- Returns the selected ComboBox's end position.
setCaretPosition
public void setCaretPosition(int position)
- Sets the position of the text insertion caret for the ComboBox
- Parameters:
- position - the position
getCaretPosition
public int getCaretPosition()
- Returns the position of the text insertion caret for the
ComboBox component.
- Returns:
- the position of the text insertion caret for the text component.
select
public void select(int s0,
int s1)
- Sets the new selected text value this ComboBox
- Parameters:
- the - new selected text from value this ComboBox
- the - new selected text to value this ComboBox
isEditable
public boolean isEditable()
- Returns the boolean indicating whether this ComboBox is
editable or not.
- See Also:
- setEditable
setEditable
public synchronized void setEditable(boolean b)
- Sets the specified boolean to indicate whether or not this
TextComponent should be editable.
- Parameters:
- b - the boolean to be set
- See Also:
- isEditable
getTreeHandle
public Tree getTreeHandle()
- Get the handle to the tree so operations can be performed on it.
- Returns:
- the handle to the tree.
validate
public void validate()
- Ensures that a component has a valid layout.
- Overrides:
- validate in class Component
paint
public synchronized void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class Component
processKeyEvent
public synchronized void processKeyEvent(KeyEvent ke)
- Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
- Overrides:
- processKeyEvent in class Component
processMouseEvent
public synchronized void processMouseEvent(MouseEvent me)
- Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
- Overrides:
- processMouseEvent in class Component
processFocusEvent
public synchronized void processFocusEvent(FocusEvent fe)
- Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
- Overrides:
- processFocusEvent in class Component
itemStateChanged
public void itemStateChanged(ItemEvent e)
actionPerformed
public void actionPerformed(ActionEvent e)
displayPopup
public void displayPopup()
getMinimumSize
public Dimension getMinimumSize()
- Gets the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index