com.sysord.mad.widget
Interface ListWidget<T>

Type Parameters:
T - The type of the value represented by this widget.
All Superinterfaces:
java.lang.Cloneable, InputWidget<T>, OutputWidget<T>, Widget<T>
All Known Subinterfaces:
MultiSelectWidget<T>, SelectWidget<T>, SingleSelectWidget<T>

public interface ListWidget<T>
extends InputWidget<T>

A ListWidget is an InputWidget where the value is a list of editable elements.

Author:
Fabien Vignal
See Also:
SingleSelectWidget, MultiSelectWidget, Candidate

Method Summary
 void addCandidatesListener(CandidateListener listener)
          Add the given CandidateListener to this ListWidget.
 java.util.List<Candidate> getCandidates()
          Returns the candidates of this ListWidget.
 void removeCandidatesListener(CandidateListener listener)
          Remove the given CandidateListener from this ListWidget.
 void setCandidates(java.util.List<Candidate> candidates)
          Sets the cadidates of this ListWidget.
 
Methods inherited from interface com.sysord.mad.widget.InputWidget
addEditableStateListener, isEditable, removeEditableStateListener, setEditable, setValue
 
Methods inherited from interface com.sysord.mad.widget.OutputWidget
addValueListener, getValue, removeValueListener
 
Methods inherited from interface com.sysord.mad.widget.Widget
accept, addCommand, addDisposeListener, addElementListener, addVisibilityListener, clone, dispose, executeCommand, getAdapter, getAdapter, getCommand, getConfig, getContextElement, getId, getLabel, getOwnerViewModel, getOwnerWidget, getType, getValuedSemanticElement, isVisible, removeCommand, removeDisposeListener, removeElementListener, removeVisibilityListener, setConfig, setLabel, setOwnerViewModel, setOwnerWidget, setValuedSemanticElement, setVisible
 

Method Detail

setCandidates

void setCandidates(java.util.List<Candidate> candidates)
Sets the cadidates of this ListWidget.
A candidate is a possible value for this widget.

Parameters:
candidates - The list of candidates to set.

getCandidates

java.util.List<Candidate> getCandidates()
Returns the candidates of this ListWidget.
A candidate is a possible value for this widget.

Returns:
the candidates of this ListWidget.

addCandidatesListener

void addCandidatesListener(CandidateListener listener)
Add the given CandidateListener to this ListWidget.

Parameters:
listener - The CandidateListener to add.

removeCandidatesListener

void removeCandidatesListener(CandidateListener listener)
Remove the given CandidateListener from this ListWidget.

Parameters:
listener - The CandidateListener to add.