Class JDPValueComponent

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPValueComponent

public class JDPValueComponent
extends Panel
Class JDPValueComponent represents a specialized component


Variable Index

 o ENTRYSEP
 o ITEMSEP

Constructor Index

 o JDPValueComponent()
 o JDPValueComponent(JDPTextGrid)
 o JDPValueComponent(JDPUser)
 o JDPValueComponent(JDPUser, JDPTextGrid)
 o JDPValueComponent(JDPUser, JDPTextGrid, String)
 o JDPValueComponent(JDPUser, String)

Method Index

 o clear()
Clear the component
 o disable()
Enabled the component
 o enable()
Enabled the component
 o getBackground()
 o getBorder()
Determine where the border has been selected to be displayed.
 o getEditable()
Get the editable setting of the component
 o getEnabled()
Get the enabled setting of the component
 o getFont()
 o getForeground()
 o getText()
Get the value of the component
 o handleEvent(Event)
 o insets()
 o isValid()
Check whether the component value is valid
 o layout()
 o paint(Graphics)
 o setBackground(Color)
 o setBorder(boolean)
Set the border to be displayed.
 o setEditable(boolean)
Set the editable setting of the component
 o setEnabled(boolean)
Set the enabled setting of the component
 o setForeground(Color)
 o setText(String)
Set the value of the component
 o update(Graphics)

Variables

 o ITEMSEP
 public static String ITEMSEP
 o ENTRYSEP
 public static String ENTRYSEP

Constructors

 o JDPValueComponent
 public JDPValueComponent()
 o JDPValueComponent
 public JDPValueComponent(JDPTextGrid thisGrid)
 o JDPValueComponent
 public JDPValueComponent(JDPUser user)
 o JDPValueComponent
 public JDPValueComponent(JDPUser user,
                          JDPTextGrid thisGrid)
 o JDPValueComponent
 public JDPValueComponent(JDPUser user,
                          String listComponentType)
 o JDPValueComponent
 public JDPValueComponent(JDPUser user,
                          JDPTextGrid thisGrid,
                          String listComponentType)

Methods

 o insets
 public Insets insets()
Overrides:
insets in class Container
 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()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Container
 o getFont
 public Font getFont()
Overrides:
getFont in class Component
 o setBackground
 public void setBackground(Color thisColor)
Overrides:
setBackground in class Component
 o getBackground
 public Color getBackground()
Overrides:
getBackground in class Component
 o setForeground
 public void setForeground(Color thisColor)
Overrides:
setForeground in class Component
 o getForeground
 public Color getForeground()
Overrides:
getForeground in class Component
 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
Overrides:
isValid in class Component
 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 setEnabled
 public void setEnabled(boolean enabled)
Set the enabled setting of the component

Parameters:
enabled - the enabled setting for the component
Overrides:
setEnabled in class Component
 o getEnabled
 public boolean getEnabled()
Get the enabled setting of the component

Returns:
the enabled setting for the component
 o enable
 public void enable()
Enabled the component

Overrides:
enable in class Component
 o disable
 public void disable()
Enabled the component

Overrides:
disable in class Component
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component