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.


Constructor Index

 o TreePopup()
Constructs a new TreePopup.
 o TreePopup(String)
Constructs a new TreePopup initialized with the specified text value.
 o TreePopup(String, int)
Constructs a new ComboBox initialized with the specified text date.

Method Index

 o actionPerformed(ActionEvent)
 o addActionListener(ActionListener)
 o displayPopup()
 o getCaretPosition()
Returns the position of the text insertion caret for the ComboBox component.
 o getMinimumSize()
Gets the minimum size of this component.
 o getSelectedText()
Returns the current selected text value this ComboBox
 o getSelectionEnd()
Returns the selected ComboBox's end position.
 o getSelectionStart()
Returns the selected ComboBox's end position.
 o getSeparator()
Returns the current text value this TextField
 o getText()
Returns the current text value this TextField
 o getTreeHandle()
Get the handle to the tree so operations can be performed on it.
 o isEditable()
Returns the boolean indicating whether this ComboBox is editable or not.
 o itemStateChanged(ItemEvent)
 o paint(Graphics)
Paints the component.
 o processFocusEvent(FocusEvent)
Processes focus events occurring on this component by dispatching them to any registered FocusListener objects.
 o processKeyEvent(KeyEvent)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o removeActionListener(ActionListener)
 o select(int, int)
Sets the new selected text value this ComboBox
 o setCaretPosition(int)
Sets the position of the text insertion caret for the ComboBox
 o setEditable(boolean)
Sets the specified boolean to indicate whether or not this TextComponent should be editable.
 o setSeparator(String)
Sets the new text value of the element separator
 o setText(String)
Sets the new text value this TextField
 o setTextNoRepaint(String)
Sets the new text value this TextField
 o validate()
Ensures that a component has a valid layout.

Constructors

 o TreePopup
 public TreePopup()
Constructs a new TreePopup.

 o TreePopup
 public TreePopup(String text)
Constructs a new TreePopup initialized with the specified text value.

Parameters:
text - the text to be displayed
 o 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

Methods

 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o getText
 public String getText()
Returns the current text value this TextField

Returns:
the current text value this TextField
 o setText
 public void setText(String s)
Sets the new text value this TextField

Parameters:
the - new text value this TextField
 o setTextNoRepaint
 public void setTextNoRepaint(String s)
Sets the new text value this TextField

Parameters:
the - new text value this TextField
 o getSeparator
 public String getSeparator()
Returns the current text value this TextField

Returns:
the current text value this TextField
 o setSeparator
 public void setSeparator(String sep)
Sets the new text value of the element separator

Parameters:
the - new text value of the element separator
 o getSelectedText
 public String getSelectedText()
Returns the current selected text value this ComboBox

Returns:
the current selected text value this ComboBox
 o getSelectionStart
 public int getSelectionStart()
Returns the selected ComboBox's end position.

 o getSelectionEnd
 public int getSelectionEnd()
Returns the selected ComboBox's end position.

 o setCaretPosition
 public void setCaretPosition(int position)
Sets the position of the text insertion caret for the ComboBox

Parameters:
position - the position
 o 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.
 o 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
 o isEditable
 public boolean isEditable()
Returns the boolean indicating whether this ComboBox is editable or not.

See Also:
setEditable
 o 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
 o getTreeHandle
 public Tree getTreeHandle()
Get the handle to the tree so operations can be performed on it.

Returns:
the handle to the tree.
 o validate
 public void validate()
Ensures that a component has a valid layout.

Overrides:
validate in class Component
 o paint
 public synchronized void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component
 o 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
 o 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
 o 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
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o displayPopup
 public void displayPopup()
 o 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