Class JDPValueList
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JDPValueComponent
|
+----JDPValueList
- public class JDPValueList
- extends JDPValueComponent
Class JDPValueList represents a set of textfields that display a list.
-
list
-
-
popupComponent
-
-
regularComponent
-
-
JDPValueList(JDPUser, JDPTextGrid, String)
-
-
JDPValueList(JDPUser, String)
-
-
addItem(String)
-
-
addItem(String, String)
-
-
clear()
- Clear the component
-
getEditable()
- Get the editable setting of the component
-
getEnabled()
- Get the enabled setting of the component
-
getItemCount()
- Get the number of items in the Choice pulldown.
-
getMinimumHeight()
- Get the minimum height of the grid
-
getMinimumWidth()
- Get the minimum width of the grid
-
getText()
- Get the value of the component
-
handleEvent(Event)
-
-
setBackground(Color)
-
-
setEditable(boolean)
- Set the editable setting of the component
-
setEnabled(boolean)
- Set the enabled setting of the component
-
setFont(Font)
-
-
setForeground(Color)
-
-
setMinimumHeight(int)
- Set the minimum height of the grid
-
setMinimumWidth(int)
- Set the minimum width of the grid
-
setText(String)
- Set the value of the component
list
public JDPTextGrid list
popupComponent
public JDPValueComponent popupComponent
regularComponent
public Component regularComponent
JDPValueList
public JDPValueList(JDPUser user,
String listComponentType)
JDPValueList
public JDPValueList(JDPUser user,
JDPTextGrid thisGrid,
String listComponentType)
addItem
public void addItem(String item,
String item1)
addItem
public void addItem(String item)
setFont
public void setFont(Font thisFont)
- Overrides:
- setFont in class Component
setBackground
public void setBackground(Color thisColor)
- Overrides:
- setBackground in class JDPValueComponent
setForeground
public void setForeground(Color thisColor)
- Overrides:
- setForeground in class JDPValueComponent
clear
public void clear()
- Clear the component
- Overrides:
- clear in class JDPValueComponent
setText
public void setText(String newValue)
- Set the value of the component
- Parameters:
- newValue - the new value for the component
- Overrides:
- setText in class JDPValueComponent
getItemCount
public int getItemCount()
- Get the number of items in the Choice pulldown.
- Returns:
- the number of items.
getText
public String getText()
- Get the value of the component
- Returns:
- newValue the new value for the component
- Overrides:
- getText in class JDPValueComponent
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 JDPValueComponent
getEditable
public boolean getEditable()
- Get the editable setting of the component
- Returns:
- the editable setting for the component
- Overrides:
- getEditable in class JDPValueComponent
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 JDPValueComponent
getEnabled
public boolean getEnabled()
- Get the enabled setting of the component
- Returns:
- the enabled setting for the component
- Overrides:
- getEnabled in class JDPValueComponent
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class JDPValueComponent
setMinimumWidth
public void setMinimumWidth(int width)
- Set the minimum width of the grid
- Parameters:
- the - width in pixels.
getMinimumWidth
public int getMinimumWidth()
- Get the minimum width of the grid
- Returns:
- the width in pixels.
setMinimumHeight
public void setMinimumHeight(int height)
- Set the minimum height of the grid
- Parameters:
- the - height in pixels.
getMinimumHeight
public int getMinimumHeight()
- Get the minimum height of the grid
- Returns:
- the height in pixels.