net.codescore.ui.components.list.renderers
Class AbstractRenderer<T>

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.codescore.ui.components.list.renderers.FullRenderer
FullRenderer.Direction
 
Field Summary
private  boolean doAction
           
protected  Listhead header
           
protected  ZKObjectList<T> list
           
 
Constructor Summary
AbstractRenderer(ZKObjectList<T> l)
          Creates a new Renderer
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.codescore.ui.components.list.renderers.FullRenderer
doAction, getComparator, getHeader
 
Methods inherited from interface org.zkoss.zul.ListitemRenderer
render
 

Field Detail

doAction

private boolean doAction

header

protected Listhead header

list

protected final ZKObjectList<T> list
Constructor Detail

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.
Method Detail

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.