net.codescore.ui.components.list.renderers
Class ScoreboardRenderer

java.lang.Object
  extended by net.codescore.ui.components.list.renderers.AbstractRenderer<Team>
      extended by net.codescore.ui.components.list.renderers.ScoreboardRenderer
All Implemented Interfaces:
FullRenderer<Team>, ListitemRenderer

public class ScoreboardRenderer
extends AbstractRenderer<Team>


Nested Class Summary
private  class ScoreboardRenderer.ScoreboardSorter
           
 
Nested classes/interfaces inherited from interface net.codescore.ui.components.list.renderers.FullRenderer
FullRenderer.Direction
 
Field Summary
private  Competition comp
           
private  Listhead header
           
 
Fields inherited from class net.codescore.ui.components.list.renderers.AbstractRenderer
list
 
Constructor Summary
ScoreboardRenderer(ZKObjectList<Team> list, Competition c)
           
 
Method Summary
 void doAction(Window callBackWin, Team obj)
          Called when an item is clicked.
 Comparator<Team> getComparator(int col, FullRenderer.Direction dir)
           
 Listhead getHeader()
          The header for this list
 void render(Listitem arg0, Object arg1)
           
 
Methods inherited from class net.codescore.ui.components.list.renderers.AbstractRenderer
doAction, setDoAction, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

comp

private final Competition comp

header

private Listhead header
Constructor Detail

ScoreboardRenderer

public ScoreboardRenderer(ZKObjectList<Team> list,
                          Competition c)
Method Detail

doAction

public void doAction(Window callBackWin,
                     Team obj)
Description copied from interface: FullRenderer
Called when an item is clicked.

Parameters:
callBackWin - The window that is being used as the parent of the action, for parenting any popups or for obtaining a context.
obj - The value of the row that was clicked.

getComparator

public Comparator<Team> getComparator(int col,
                                      FullRenderer.Direction dir)
Parameters:
col - the column being sorted
dir - the direction( Ascending or Descending)
Returns:
the comparator used for the list

getHeader

public Listhead getHeader()
Description copied from interface: FullRenderer
The header for this list

Returns:

render

public void render(Listitem arg0,
                   Object arg1)
            throws Exception
Throws:
Exception


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.