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

Variable Index

 o align
The arrow button can be displayed at the left or the right.
 o alignOptions
The possible options for the alignment.
 o fillButton
If true, the dropdown button will be filled.
 o maxVisible
The maximum number of visible items, if there are more items a scrollbar is used.
 o style
A dropdownlistbox can be plain, boxed, filled or underlined.
 o styleOptions
The possible options for the style.
 o text
The textbox used for this dropdownlistbox.

Constructor Index

 o DropDownListBoxWidget()
Constructor.
 o DropDownListBoxWidget(String, int, int, String)
Constructor.

Method Index

 o disable(boolean)
Disable the textbox too, if there is one.
 o getAlign()
Get align.
 o getAlignOptions()
Get the possible options for the alignment.
 o getFillButton()
Check whether the dropdown button is being filled.
 o getMaxVisible()
Get the maximum number of visible items.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getStyle()
Get style.
 o getStyleOptions()
Get the possible options for the style.
 o 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.
 o handleEvent(Event)
Handle events.
 o layout()
Layout the container.
 o newDropDown()
Display and return a new dropdownmenu with the required settings for letting it behave like the dropdownlistbox wants it to.
 o newTextBox()
Returns a new textbox with the necessary properties set to let it behave like the dropdownlist wants it to.
 o setAlign(int)
Set align.
 o setFillButton(boolean)
Fill the dropdown button or not.
 o setMaxVisible(int)
Set the maximum number of visible items.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setStyle(int)
Set style.
 o setValue(int)
Set the current choice given the index.
 o stop()
Get rid of the menu (just in case).

Variables

 o alignOptions
  public static Options alignOptions
The possible options for the alignment.
See Also:
getAlignOptions, align
 o styleOptions
  public static Options styleOptions
The possible options for the style.
See Also:
getStyleOptions, style
 o style
  public int style
A dropdownlistbox can be plain, boxed, filled or underlined.
See Also:
getStyle, setStyle, styleOptions
 o align
  public int align
The arrow button can be displayed at the left or the right.
See Also:
getAlign, setAlign, alignOptions
 o text
  public DropDownTextBoxWidget text
The textbox used for this dropdownlistbox.
See Also:
newTextBox
 o 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
 o fillButton
  public boolean fillButton
If true, the dropdown button will be filled.
See Also:
getFillButton, setFillButton

Constructors

 o DropDownListBoxWidget
  public DropDownListBoxWidget()
Constructor.
 o DropDownListBoxWidget
  public DropDownListBoxWidget(String value,
                               int style,
                               int align,
                               String list)
Constructor.

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 getAlignOptions
  public Options getAlignOptions()
Get the possible options for the alignment.
See Also:
alignOptions
 o getStyleOptions
  public Options getStyleOptions()
Get the possible options for the style.
See Also:
styleOptions
 o getAlign
  public int getAlign()
Get align.
See Also:
align
 o setAlign
  public void setAlign(int align)
Set align.
See Also:
align
 o getFillButton
  public boolean getFillButton()
Check whether the dropdown button is being filled.
See Also:
fillButton
 o setFillButton
  public void setFillButton(boolean fillButton)
Fill the dropdown button or not.
See Also:
fillButton
 o getMaxVisible
  public int getMaxVisible()
Get the maximum number of visible items.
See Also:
maxVisible
 o setMaxVisible
  public void setMaxVisible(int maxVisible)
Set the maximum number of visible items.
See Also:
maxVisible
 o getStyle
  public int getStyle()
Get style.
See Also:
style
 o setStyle
  public void setStyle(int style)
Set style.
See Also:
style
 o setValue
  public void setValue(int value)
Set the current choice given the index.
Overrides:
setValue in class ChoiceWidget
 o 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
 o disable
  public void disable(boolean disabled)
Disable the textbox too, if there is one.
Overrides:
disable in class Widget
 o stop
  public void stop()
Get rid of the menu (just in case).
Overrides:
stop in class Widget
 o layout
  public void layout()
Layout the container.
Overrides:
layout in class Widget
 o newDropDown
  protected DropDownMenu newDropDown()
Display and return a new dropdownmenu with the required settings for letting it behave like the dropdownlistbox wants it to.
 o 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
 o handleEvent
  public boolean handleEvent(Event evt)
Handle events.
Overrides:
handleEvent in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index