Class marimba.gui.DropDownListBoxWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.DropDownListBoxWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ChoiceWidget
|
+----marimba.gui.DropDownListBoxWidget
- public class DropDownListBoxWidget
- extends ChoiceWidget
A multiple choice widget.
- Version:
- 1.41, 01/14/97
- Author:
- Klaas Waslander
-
align
- The arrow button can be displayed at the left or the right.
-
alignOptions
- The possible options for the alignment.
-
fillButton
- If true, the dropdown button will be filled.
-
maxVisible
- The maximum number of visible items, if there are more
items a scrollbar is used.
-
style
- A dropdownlistbox can be plain, boxed, filled or underlined.
-
styleOptions
- The possible options for the style.
-
text
- The textbox used for this dropdownlistbox.
-
DropDownListBoxWidget()
- Constructor.
-
DropDownListBoxWidget(String, int, int, String)
- Constructor.
-
disable(boolean)
- Disable the textbox too, if there is one.
-
getAlign()
- Get align.
-
getAlignOptions()
- Get the possible options for the alignment.
-
getFillButton()
- Check whether the dropdown button is being filled.
-
getMaxVisible()
- Get the maximum number of visible items.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getStyle()
- Get style.
-
getStyleOptions()
- Get the possible options for the style.
-
getView(ScrollingContainerWidget)
- Get the current view, which are the items that are
currently visible in the dropdown menu, based on
the ScrollingContainer of the dropdown that is passed.
-
handleEvent(Event)
- Handle events.
-
layout()
- Layout the container.
-
newDropDown()
- Display and return a new dropdownmenu with the required settings
for letting it behave like the dropdownlistbox wants it to.
-
newTextBox()
- Returns a new textbox with the necessary properties set
to let it behave like the dropdownlist wants it to.
-
setAlign(int)
- Set align.
-
setFillButton(boolean)
- Fill the dropdown button or not.
-
setMaxVisible(int)
- Set the maximum number of visible items.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setStyle(int)
- Set style.
-
setValue(int)
- Set the current choice given the index.
-
stop()
- Get rid of the menu (just in case).
alignOptions
public static Options alignOptions
- The possible options for the alignment.
- See Also:
- getAlignOptions, align
styleOptions
public static Options styleOptions
- The possible options for the style.
- See Also:
- getStyleOptions, style
style
public int style
- A dropdownlistbox can be plain, boxed, filled or underlined.
- See Also:
- getStyle, setStyle, styleOptions
align
public int align
- The arrow button can be displayed at the left or the right.
- See Also:
- getAlign, setAlign, alignOptions
text
public DropDownTextBoxWidget text
- The textbox used for this dropdownlistbox.
- See Also:
- newTextBox
maxVisible
public int maxVisible
- The maximum number of visible items, if there are more
items a scrollbar is used. If this number is zero or
smaller the max number of visible items is determined
by the size of the menu.
- See Also:
- getMaxVisible, setMaxVisible
fillButton
public boolean fillButton
- If true, the dropdown button will be filled.
- See Also:
- getFillButton, setFillButton
DropDownListBoxWidget
public DropDownListBoxWidget()
- Constructor.
DropDownListBoxWidget
public DropDownListBoxWidget(String value,
int style,
int align,
String list)
- Constructor.
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
getAlignOptions
public Options getAlignOptions()
- Get the possible options for the alignment.
- See Also:
- alignOptions
getStyleOptions
public Options getStyleOptions()
- Get the possible options for the style.
- See Also:
- styleOptions
getAlign
public int getAlign()
- Get align.
- See Also:
- align
setAlign
public void setAlign(int align)
- Set align.
- See Also:
- align
getFillButton
public boolean getFillButton()
- Check whether the dropdown button is being filled.
- See Also:
- fillButton
setFillButton
public void setFillButton(boolean fillButton)
- Fill the dropdown button or not.
- See Also:
- fillButton
getMaxVisible
public int getMaxVisible()
- Get the maximum number of visible items.
- See Also:
- maxVisible
setMaxVisible
public void setMaxVisible(int maxVisible)
- Set the maximum number of visible items.
- See Also:
- maxVisible
getStyle
public int getStyle()
- Get style.
- See Also:
- style
setStyle
public void setStyle(int style)
- Set style.
- See Also:
- style
setValue
public void setValue(int value)
- Set the current choice given the index.
- Overrides:
- setValue in class ChoiceWidget
newTextBox
protected DropDownTextBoxWidget newTextBox()
- Returns a new textbox with the necessary properties set
to let it behave like the dropdownlist wants it to.
- See Also:
- text
disable
public void disable(boolean disabled)
- Disable the textbox too, if there is one.
- Overrides:
- disable in class Widget
stop
public void stop()
- Get rid of the menu (just in case).
- Overrides:
- stop in class Widget
layout
public void layout()
- Layout the container.
- Overrides:
- layout in class Widget
newDropDown
protected DropDownMenu newDropDown()
- Display and return a new dropdownmenu with the required settings
for letting it behave like the dropdownlistbox wants it to.
getView
protected int[] getView(ScrollingContainerWidget container)
- Get the current view, which are the items that are
currently visible in the dropdown menu, based on
the ScrollingContainer of the dropdown that is passed.
This method must be overridden if you want to let a subclass
have return your own data instead of the choices, for example
by getting data directly from a database.
- Returns:
- array of two elements: the index of the first and last item
handleEvent
public boolean handleEvent(Event evt)
- Handle events.
- Overrides:
- handleEvent in class Widget
All Packages Class Hierarchy This Package Previous Next Index