echopoint.ui
Class SortableTableRenderer

java.lang.Object
  extended by echopoint.ui.SortableTableRenderer

public class SortableTableRenderer
extends java.lang.Object

The SortableTableRenderer can currently render both SortableTable and SelectableTable. It is used to provide a "two way" render of the EchoPoint table classes and is called by each tables peer.


Field Summary
static StaticText SERVICE_SELECTABLETABLE_SCRIPT
           
 
Constructor Summary
SortableTableRenderer()
           
 
Method Summary
static int getModelRowIndex(Table table, int rowIndex)
          Returns the underlying model index for a given positional index
static int getRowIndex(Table table, int rowIndex)
          Returns the underlying model index for a given positional index
static void render(RenderingContext rc, Element parent, SortableTable table, EchoPointComponentPeer tablePeer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_SELECTABLETABLE_SCRIPT

public static final StaticText SERVICE_SELECTABLETABLE_SCRIPT
Constructor Detail

SortableTableRenderer

public SortableTableRenderer()
Method Detail

getRowIndex

public static int getRowIndex(Table table,
                              int rowIndex)
Returns the underlying model index for a given positional index


getModelRowIndex

public static int getModelRowIndex(Table table,
                                   int rowIndex)
Returns the underlying model index for a given positional index


render

public static void render(RenderingContext rc,
                          Element parent,
                          SortableTable table,
                          EchoPointComponentPeer tablePeer)
See Also:
ComponentPeer.render(RenderingContext, Element)