All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.ValueList

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

public class ValueList
extends ValueComponent
implements ActionListener
Class ValueList represents a set of textfields that display a list.


Variable Index

 o list
 o popupComponent
 o regularComponent

Constructor Index

 o ValueList(String)
 o ValueList(TextGrid, String)

Method Index

 o actionPerformed(ActionEvent)
 o addItem(String)
 o addItem(String, String)
 o clear()
Clear the component
 o getEditable()
Get the editable setting of the component
 o getEnabled()
Get the enabled setting of the component
 o getItemCount()
Get the number of items in the Choice pulldown.
 o getMinHeight()
Get the minimum height of the grid
 o getMinWidth()
Get the minimum width of the grid
 o getPreferredSize()
Gets the preferred size of this component.
 o getText()
Get the value of the component
 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 requestFocus()
Requests the input focus.
 o setEditable(boolean)
Set the editable setting of the component
 o setEnabled(boolean)
Set the enabled setting of the component
 o setMinHeight(int)
Set the minimum height of the grid
 o setMinWidth(int)
Set the minimum width of the grid
 o setText(String)
Set the value of the component

Variables

 o list
 public TextGrid list
 o popupComponent
 public ValueComponent popupComponent
 o regularComponent
 public Component regularComponent

Constructors

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

Methods

 o requestFocus
 public void requestFocus()
Requests the input focus.

Overrides:
requestFocus in class Component
 o addItem
 public void addItem(String item,
                     String item1)
 o addItem
 public void addItem(String item)
 o clear
 public void clear()
Clear the component

Overrides:
clear in class ValueComponent
 o setText
 public void setText(String newValue)
Set the value of the component

Parameters:
newValue - the new value for the component
Overrides:
setText in class ValueComponent
 o getItemCount
 public int getItemCount()
Get the number of items in the Choice pulldown.

Returns:
the number of items.
 o getText
 public String getText()
Get the value of the component

Returns:
newValue the new value for the component
Overrides:
getText in class ValueComponent
 o setEditable
 public void setEditable(boolean editable)
Set the editable setting of the component

Parameters:
editable - the editable setting for the component
Overrides:
setEditable in class ValueComponent
 o getEditable
 public boolean getEditable()
Get the editable setting of the component

Returns:
the editable setting for the component
Overrides:
getEditable in class ValueComponent
 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 actionPerformed
 public void actionPerformed(ActionEvent e)
 o processFocusEvent
 public synchronized void processFocusEvent(FocusEvent fe)
Get the enabled setting of the component

Overrides:
processFocusEvent in class ValueComponent
 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 ValueComponent
 o setMinWidth
 public void setMinWidth(int width)
Set the minimum width of the grid

Parameters:
the - width in pixels.
Overrides:
setMinWidth in class Component
 o getMinWidth
 public int getMinWidth()
Get the minimum width of the grid

Returns:
the width in pixels.
Overrides:
getMinWidth in class Component
 o setMinHeight
 public void setMinHeight(int height)
Set the minimum height of the grid

Parameters:
the - height in pixels.
Overrides:
setMinHeight in class Component
 o getMinHeight
 public int getMinHeight()
Get the minimum height of the grid

Returns:
the height in pixels.
Overrides:
getMinHeight in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Gets the preferred size of this component.

Overrides:
getPreferredSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index