com.sysord.mad.widget
Interface ActionWidget

All Superinterfaces:
java.lang.Cloneable, Widget<java.lang.Void>
All Known Subinterfaces:
NavigationWidget

public interface ActionWidget
extends Widget<java.lang.Void>

An ActionWidget represents a not editable widget used for specific actions on this Widget's elements.

Author:
Fabien Vignal
See Also:
NavigationWidget, Candidate, CandidateListener

Method Summary
 void addCandidatesListener(CandidateListener listener)
          Adds the given CandidateListener to this ActionWidget.
 java.util.List<Candidate> getCandidates()
          Returns the possible candidates for this ActionWidget.
 void removeCandidatesListener(CandidateListener listener)
          Removes the given CandidateListener from this ActionWidget.
 void setCandidates(java.util.List<Candidate> candidates)
          Sets the possible candidates for the action.
 
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 possible candidates for the action.

Parameters:
candidates -

getCandidates

java.util.List<Candidate> getCandidates()
Returns the possible candidates for this ActionWidget.

Returns:
the possible candidates for this ActionWidget.

addCandidatesListener

void addCandidatesListener(CandidateListener listener)
Adds the given CandidateListener to this ActionWidget.

Parameters:
listener - The CandidateListener to add.

removeCandidatesListener

void removeCandidatesListener(CandidateListener listener)
Removes the given CandidateListener from this ActionWidget.

Parameters:
listener - The CandidateListener to add.