com.sencha.gxt.widget.core.client
Interface CheckProvider<M>

Type Parameters:
M - the model type
All Superinterfaces:
CheckChangedEvent.HasCheckChangedHandlers<M>
All Known Implementing Classes:
Tree

public interface CheckProvider<M>
extends CheckChangedEvent.HasCheckChangedHandlers<M>

Interface for objects that provide check state.


Method Summary
 java.util.List<M> getCheckedSelection()
          Returns the current checked selection.
 boolean isChecked(M model)
          Returns true if the model is checked.
 void setCheckedSelection(java.util.List<M> selection)
          Sets the current checked selection.
 
Methods inherited from interface com.sencha.gxt.widget.core.client.event.CheckChangedEvent.HasCheckChangedHandlers
addCheckChangedHandler
 

Method Detail

getCheckedSelection

java.util.List<M> getCheckedSelection()
Returns the current checked selection.

Returns:
the checked selection

isChecked

boolean isChecked(M model)
Returns true if the model is checked.

Parameters:
model - the model
Returns:
the check state

setCheckedSelection

void setCheckedSelection(java.util.List<M> selection)
Sets the current checked selection.

Parameters:
selection - the checked selection


Copyright © 2012. All Rights Reserved.