Class marimba.gui.ListBoxWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.ListBoxWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ChoiceWidget
                   |
                   +----marimba.gui.ListBoxWidget

public class ListBoxWidget
extends ChoiceWidget
A ListBoxWidget; a generic scrolling list of strings.
Version:
1.28, 01/11/97
Author:
Klaas Waslander

Variable Index

 o corner
This widget can leave the bottom-right corner open.
 o fillMode
The fillmode of the ListBox: none, content, scrollbar or filled.
 o fillOptions
The possible options for the fillmode.
 o horzmode
The mode for the horizontal scrollbar: never, optional or always.
 o list
The ListWidget used to display the list of choices.
 o vertmode
The mode for the vertical scrollbar: never, optional or always.

Constructor Index

 o ListBoxWidget()
Constructor.
 o ListBoxWidget(int, String[])
Constructor for a ListBox with given choices.

Method Index

 o disable(boolean)
Disable the list, when disabling/enabling.
 o focusInterest()
Supports input focus.
 o getFillMode()
Check what the ListBoxWidget fills.
 o getFillOptions()
Get the possible options for the fillMode.
 o getHorzmode()
Get the mode for the horizontal scrollbar.
 o getList()
The list that is used for this ListBoxWidget.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getVertmode()
Get the mode for the vertical scrollbar.
 o handleEvent(Event)
Handle the keyboard events for setting the current choice and some other things.
 o hasCorner()
Check if this widget leaves the bottom-right corner open.
 o insertChoiceAt(String, int)
When inserting a choice also update the list.
 o layout()
Reshape the list that is used for this choice widget.
 o makeItems()
Create the items using the current choices.
 o newList()
Create a new List.
 o removeAllChoices()
When removing all choices also clear the list.
 o removeChoiceAt(int)
When removing a choice also update the list.
 o setChoices(String[], String[])
Set choices and update the list.
 o setCorner(boolean)
Let this widget have a corner or not.
 o setFillMode(int)
Let the ListBoxWidget fill something.
 o setHorzmode(int)
Set the mode for the horizontal scrollbar.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setValue(int)
Set the current choice given the index.
 o setVertmode(int)
Set the mode for the vertical scrollbar.
 o updateList()
Update the properties of the list, to let them match those of this ListBox.

Variables

 o fillOptions
  public static Options fillOptions
The possible options for the fillmode.
See Also:
getFillOptions, fillMode
 o fillMode
  public int fillMode
The fillmode of the ListBox: none, content, scrollbar or filled. This means it can fill the content, the scrollbar or both.
See Also:
getFillMode, setFillMode, fillOptions, WidgetConstants
 o list
  public ListWidget list
The ListWidget used to display the list of choices.
See Also:
getList, newList
 o horzmode
  public int horzmode
The mode for the horizontal scrollbar: never, optional or always.
See Also:
getHorzmode, setHorzmode
 o vertmode
  public int vertmode
The mode for the vertical scrollbar: never, optional or always.
See Also:
getVertmode, setVertmode
 o corner
  public boolean corner
This widget can leave the bottom-right corner open. That means that the vertical scrollbar becomes smaller.
See Also:
hasCorner, setCorner

Constructors

 o ListBoxWidget
  public ListBoxWidget()
Constructor.
 o ListBoxWidget
  public ListBoxWidget(int nchoices,
                       String choices[])
Constructor for a ListBox with given choices.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ChoiceWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ChoiceWidget
 o getFillOptions
  public Options getFillOptions()
Get the possible options for the fillMode.
See Also:
fillOptions
 o getHorzmode
  public int getHorzmode()
Get the mode for the horizontal scrollbar.
See Also:
horzmode
 o setHorzmode
  public void setHorzmode(int horzmode)
Set the mode for the horizontal scrollbar.
See Also:
horzmode
 o getVertmode
  public int getVertmode()
Get the mode for the vertical scrollbar.
See Also:
vertmode
 o setVertmode
  public void setVertmode(int vertmode)
Set the mode for the vertical scrollbar.
See Also:
vertmode
 o hasCorner
  public boolean hasCorner()
Check if this widget leaves the bottom-right corner open.
See Also:
corner
 o setCorner
  public void setCorner(boolean corner)
Let this widget have a corner or not.
See Also:
corner
 o setChoices
  public void setChoices(String choices[],
                         String names[])
Set choices and update the list.
Overrides:
setChoices in class ChoiceWidget
 o getFillMode
  public int getFillMode()
Check what the ListBoxWidget fills.
See Also:
fillMode
 o setFillMode
  public void setFillMode(int fillMode)
Let the ListBoxWidget fill something.
See Also:
fillMode
 o getList
  public ListWidget getList()
The list that is used for this ListBoxWidget.
See Also:
list
 o newList
  protected void newList()
Create a new List.
See Also:
list
 o updateList
  public void updateList()
Update the properties of the list, to let them match those of this ListBox.
 o makeItems
  public void makeItems()
Create the items using the current choices. The list is being cleared first.
 o disable
  public void disable(boolean disabled)
Disable the list, when disabling/enabling.
Overrides:
disable in class Widget
 o setValue
  public void setValue(int value)
Set the current choice given the index.
Overrides:
setValue in class ChoiceWidget
 o insertChoiceAt
  public void insertChoiceAt(String newChoice,
                             int index)
When inserting a choice also update the list.
Overrides:
insertChoiceAt in class ChoiceWidget
 o removeChoiceAt
  public void removeChoiceAt(int index)
When removing a choice also update the list.
Overrides:
removeChoiceAt in class ChoiceWidget
 o removeAllChoices
  public void removeAllChoices()
When removing all choices also clear the list.
Overrides:
removeAllChoices in class ChoiceWidget
 o layout
  public void layout()
Reshape the list that is used for this choice widget.
Overrides:
layout in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle the keyboard events for setting the current choice and some other things.
Overrides:
handleEvent in class Widget
 o focusInterest
  public boolean focusInterest()
Supports input focus.
Overrides:
focusInterest in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index