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
-
ENTRYSEP
-
-
ITEMSEP
-
-
ValueComponent()
-
-
ValueComponent(String)
-
-
ValueComponent(TextGrid)
-
-
ValueComponent(TextGrid, String)
-
-
clear()
- Clear the component
-
getBorder()
- Determine where the border has been selected to be displayed.
-
getEditable()
- Get the editable setting of the component
-
getText()
- Get the value of the component
-
isValid()
- Check whether the component value is valid
-
layout()
-
-
paint(Graphics)
-
Paints the container.
-
processFocusEvent(FocusEvent)
- Get the enabled setting of the component
-
processKeyEvent(KeyEvent)
-
Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
-
setBorder(boolean)
- Set the border to be displayed.
-
setEditable(boolean)
- Set the editable setting of the component
-
setText(String)
- Set the value of the component
ITEMSEP
public static char ITEMSEP
ENTRYSEP
public static char ENTRYSEP
ValueComponent
public ValueComponent()
ValueComponent
public ValueComponent(TextGrid thisGrid)
ValueComponent
public ValueComponent(String listComponentType)
ValueComponent
public ValueComponent(TextGrid thisGrid,
String listComponentType)
setBorder
public void setBorder(boolean border)
- Set the border to be displayed.
- Parameters:
- the - border setting.
getBorder
public boolean getBorder()
- Determine where the border has been selected to be displayed.
- Returns:
- the border setting.
layout
public void layout()
paint
public void paint(Graphics g)
- Paints the container.
- Overrides:
- paint in class Container
clear
public void clear()
- Clear the component
setText
public void setText(String newValue)
- Set the value of the component
- Parameters:
- newValue - the new value for the component
getText
public String getText()
- Get the value of the component
- Returns:
- newValue the new value for the component
isValid
public boolean isValid()
- Check whether the component value is valid
- Returns:
- whether the component value is valid
setEditable
public void setEditable(boolean editable)
- Set the editable setting of the component
- Parameters:
- editable - the editable setting for the component
getEditable
public boolean getEditable()
- Get the editable setting of the component
- Returns:
- the editable setting for the component
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
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