All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.ValueComponent

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.Container
                   |
                   +----com.bulletproof.gui.Panel
                           |
                           +----com.bulletproof.gui.ValueComponent

public class ValueComponent
extends Panel
Class ValueComponent represents a specialized component


Variable Index

 o ENTRYSEP
 o ITEMSEP

Constructor Index

 o ValueComponent()
 o ValueComponent(String)
 o ValueComponent(TextGrid)
 o ValueComponent(TextGrid, String)

Method Index

 o clear()
Clear the component
 o getBorder()
Determine where the border has been selected to be displayed.
 o getEditable()
Get the editable setting of the component
 o getText()
Get the value of the component
 o isValid()
Check whether the component value is valid
 o layout()
 o paint(Graphics)
Paints the container.
 o processFocusEvent(FocusEvent)
Get the enabled setting of the component
 o processKeyEvent(KeyEvent)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
 o setBorder(boolean)
Set the border to be displayed.
 o setEditable(boolean)
Set the editable setting of the component
 o setText(String)
Set the value of the component

Variables

 o ITEMSEP
 public static char ITEMSEP
 o ENTRYSEP
 public static char ENTRYSEP

Constructors

 o ValueComponent
 public ValueComponent()
 o ValueComponent
 public ValueComponent(TextGrid thisGrid)
 o ValueComponent
 public ValueComponent(String listComponentType)
 o ValueComponent
 public ValueComponent(TextGrid thisGrid,
                       String listComponentType)

Methods

 o setBorder
 public void setBorder(boolean border)
Set the border to be displayed.

Parameters:
the - border setting.
 o getBorder
 public boolean getBorder()
Determine where the border has been selected to be displayed.

Returns:
the border setting.
 o layout
 public void layout()
 o paint
 public void paint(Graphics g)
Paints the container.

Overrides:
paint in class Container
 o clear
 public void clear()
Clear the component

 o setText
 public void setText(String newValue)
Set the value of the component

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

Returns:
newValue the new value for the component
 o isValid
 public boolean isValid()
Check whether the component value is valid

Returns:
whether the component value is valid
 o setEditable
 public void setEditable(boolean editable)
Set the editable setting of the component

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

Returns:
the editable setting for the component
 o processFocusEvent
 public synchronized void processFocusEvent(FocusEvent fe)
Get the enabled setting of the component

Returns:
the enabled setting for the component
Overrides:
processFocusEvent 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index