org.drools.guvnor.client.widgets.tables
Class SortableHeader<T,C extends Comparable>

java.lang.Object
  extended by com.google.gwt.user.cellview.client.Header<String>
      extended by org.drools.guvnor.client.widgets.tables.SortableHeader<T,C>

public class SortableHeader<T,C extends Comparable>
extends com.google.gwt.user.cellview.client.Header<String>

Based on GWT bikeshed example.


Constructor Summary
SortableHeader(SortableHeaderGroup sortableHeaderGroup, String text, com.google.gwt.user.cellview.client.Column<T,C> column)
           
 
Method Summary
 com.google.gwt.user.cellview.client.Column<T,C> getColumn()
           
 SortDirection getSortDirection()
           
 int getSortIndex()
           
 String getValue()
           
 void render(com.google.gwt.cell.client.Cell.Context context, com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
           
 void setSortDirection(SortDirection sortDirection)
           
 void setSortIndex(int sortIndex)
           
 void setValue(String text)
          Set the Column header
 
Methods inherited from class com.google.gwt.user.cellview.client.Header
getCell, getKey, onBrowserEvent, setUpdater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortableHeader

public SortableHeader(SortableHeaderGroup sortableHeaderGroup,
                      String text,
                      com.google.gwt.user.cellview.client.Column<T,C> column)
Method Detail

getValue

public String getValue()
Specified by:
getValue in class com.google.gwt.user.cellview.client.Header<String>
Returns:
the header label

setValue

public void setValue(String text)
Set the Column header

Parameters:
text -

getColumn

public com.google.gwt.user.cellview.client.Column<T,C> getColumn()

getSortDirection

public SortDirection getSortDirection()

setSortDirection

public void setSortDirection(SortDirection sortDirection)

getSortIndex

public int getSortIndex()

setSortIndex

public void setSortIndex(int sortIndex)

render

public void render(com.google.gwt.cell.client.Cell.Context context,
                   com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
Overrides:
render in class com.google.gwt.user.cellview.client.Header<String>


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.