OpenAPI 1.0

com.aquafold.openapi.form
Interface AQFormSelector


public interface AQFormSelector

This interface corresponds to the HTML <SELECT> element.


Method Summary
 void addOption(String value, String text)
          Adds an option with the specified value and text.
 void addOption(String value, String text, boolean isSelected)
          Adds a selected option with the specified value and text.
 int getOptionCount()
          Returns the number of items in this selector.
 boolean isSelectedAt(int index)
          Returns true if an option with the specified index is selected.
 void setMultiple(boolean multiple)
          Sets MULTIPLE option.
 void setSelectedAt(int index, boolean selected)
          Sets selection status of an option at the specified index.
 void setSelectedIndex(int index)
          Sets (overwrites) currently selected index.
 void setSize(int size)
          Sets SIZE attribute value.
 

Method Detail

setMultiple

void setMultiple(boolean multiple)
Sets MULTIPLE option.

Parameters:
multiple -

setSize

void setSize(int size)
Sets SIZE attribute value.

Parameters:
size -

addOption

void addOption(String value,
               String text)
Adds an option with the specified value and text.

Parameters:
value - Selector value.
text - Visible text.

addOption

void addOption(String value,
               String text,
               boolean isSelected)
Adds a selected option with the specified value and text.

Parameters:
value - Selector value.
text - Visible text.
isSelected - Specifies whether this element is selected.

getOptionCount

int getOptionCount()
Returns the number of items in this selector.


setSelectedAt

void setSelectedAt(int index,
                   boolean selected)
Sets selection status of an option at the specified index.

Parameters:
index - Option index.
selected -

isSelectedAt

boolean isSelectedAt(int index)
Returns true if an option with the specified index is selected.

Parameters:
index - Index value.

setSelectedIndex

void setSelectedIndex(int index)
Sets (overwrites) currently selected index. Setting to a negative value or a value beyond the selector size is equivalent to clearing all selected items.

Parameters:
index - Index value.

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.