|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.grid.renderers.ComplexRenderer<java.lang.Boolean>
com.vaadin.client.ui.grid.selection.MultiSelectionRenderer<T>
public class MultiSelectionRenderer<T>
| Constructor Summary | |
|---|---|
MultiSelectionRenderer(Grid<T> grid)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called when the renderer is deemed to be destroyed and no longer used by the Grid. |
java.util.Collection<java.lang.String> |
getConsumedEvents()
Returns the events that the renderer should consume. |
void |
init(FlyweightCell cell)
Called at initialization stage. |
protected boolean |
isSelected(int logicalRow)
|
boolean |
onBrowserEvent(Cell cell,
NativeEvent event)
Called whenever a registered event is triggered in the column the renderer renders. |
void |
render(FlyweightCell cell,
java.lang.Boolean data)
Called whenever the Grid updates a cell |
protected void |
setSelected(int logicalRow,
boolean select)
|
| Methods inherited from class com.vaadin.client.ui.grid.renderers.ComplexRenderer |
|---|
destroy, onActivate, setContentVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiSelectionRenderer(Grid<T> grid)
| Method Detail |
|---|
public void destroy()
ComplexRenderer
destroy in class ComplexRenderer<java.lang.Boolean>public void init(FlyweightCell cell)
ComplexRenderer
init in class ComplexRenderer<java.lang.Boolean>cell - The cell. Note that the cell is not to be stored outside of
the method as the cell install will change. See
FlyweightCell
public void render(FlyweightCell cell,
java.lang.Boolean data)
RendererGrid updates a cell
cell - The cell. Note that the cell is a flyweight and should not be
stored outside of the method as it will change.data - The column data objectpublic java.util.Collection<java.lang.String> getConsumedEvents()
ComplexRendererComplexRenderer.onBrowserEvent(Cell, NativeEvent) when they occur.
getConsumedEvents in class ComplexRenderer<java.lang.Boolean>com.google.gwt.dom.client.BrowserEvents
public boolean onBrowserEvent(Cell cell,
NativeEvent event)
ComplexRenderer
The events that triggers this needs to be returned by the
ComplexRenderer.getConsumedEvents() method.
Returns boolean telling if the event has been completely handled and should not cause any other actions.
onBrowserEvent in class ComplexRenderer<java.lang.Boolean>cell - Object containing information about the cell the event was
triggered on.event - The original DOM event
protected boolean isSelected(int logicalRow)
protected void setSelected(int logicalRow,
boolean select)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||