org.olat.core.gui.components.form.flexible.elements
Interface SelectionElement

All Superinterfaces:
FormBaseComponentIdProvider, FormItem
All Known Subinterfaces:
MultipleSelectionElement, SingleSelection
All Known Implementing Classes:
MultipleSelectionElementImpl, MultiSelectionTree, SingleSelectionImpl

public interface SelectionElement
extends FormItem, FormBaseComponentIdProvider

Author:
patrickb

Field Summary
 
Fields inherited from interface org.olat.core.gui.components.form.flexible.FormItem
ERRORC, EXAMPLEC, LABELC
 
Fields inherited from interface org.olat.core.gui.components.form.flexible.FormBaseComponentIdProvider
DISPPREFIX
 
Method Summary
 java.lang.String getKey(int which)
           
 int getSize()
           
 java.lang.String getValue(int which)
           
 boolean isMultiselect()
          whether multiple selection is allowed
 boolean isSelected(int which)
           
 void select(java.lang.String key, boolean select)
           
 
Methods inherited from interface org.olat.core.gui.components.form.flexible.FormItem
addActionListener, clearError, doDispatchFormRequest, evalFormRequest, getAction, getActionListenersFor, getComponent, getErrorC, getErrorText, getExampleC, getExampleText, getLabelC, getLabelText, getName, getRootForm, getTranslator, getUserObject, hasError, hasExample, hasFocus, hasLabel, isEnabled, isMandatory, isVisible, reset, setEnabled, setErrorComponent, setErrorKey, setExampleKey, setFocus, setLabel, setLabelComponent, setMandatory, setRootForm, setTranslator, setUserObject, setVisible, showError, showExample, showLabel, validate
 
Methods inherited from interface org.olat.core.gui.components.form.flexible.FormBaseComponentIdProvider
getFormDispatchId
 

Method Detail

getKey

java.lang.String getKey(int which)
Parameters:
which -
Returns:
String

getValue

java.lang.String getValue(int which)
Parameters:
which -
Returns:
String

getSize

int getSize()
Returns:
integer

isSelected

boolean isSelected(int which)
Parameters:
which -
Returns:
boolean

select

void select(java.lang.String key,
            boolean select)
Parameters:
key -
select -

isMultiselect

boolean isMultiselect()
whether multiple selection is allowed

Returns: