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