net.codescore.ui.components.list.renderers
Class AbstractRenderer<T>
java.lang.Object
net.codescore.ui.components.list.renderers.AbstractRenderer<T>
- Type Parameters:
T - The type of object this renderer will show.
- All Implemented Interfaces:
- FullRenderer<T>, ListitemRenderer
- Direct Known Subclasses:
- ProbBrowseRenderer, ScoreboardRenderer, SimpleCompetitionRenderer, SimplePersonRenderer, SimpleSchoolRenderer, SimpleTeamRenderer, TestCaseRenderer
public abstract class AbstractRenderer<T>
- extends Object
- implements FullRenderer<T>
Represents a List Renderer that can be used for an ZKObjectList
A good example implementation of a simple renderer is the
SimpleTeamRenderer.
- Author:
- Adam Cornett
|
Method Summary |
boolean |
doAction()
This method lets the list know if it should perform the specificed action
when an item is clicked. |
void |
setDoAction(boolean noAction)
|
String |
toString()
|
doAction
private boolean doAction
header
protected Listhead header
list
protected final ZKObjectList<T> list
AbstractRenderer
public AbstractRenderer(ZKObjectList<T> l)
- Creates a new Renderer
- Parameters:
l - The renderer keeps a reference to the list its rendering, this
is used to update the list when an item is removed or edited.
doAction
public boolean doAction()
- This method lets the list know if it should perform the specificed action
when an item is clicked.
- Returns:
setDoAction
public void setDoAction(boolean noAction)
- Parameters:
noAction - True if the list should perform the action handler method of
this renderer when an item in the list is clicked.
toString
public String toString()
- Overrides:
toString in class Object
Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.