com.tensegrity.palowebviewer.modules.ui.client.cubetable
Interface ITableAPI

All Known Implementing Classes:
CubeTableAPIImpl

public interface ITableAPI


Field Summary
static int DIRECTION_HORIZONTAL
           
static int DIRECTION_VERTICAL
           
static java.lang.String HINT_TIME
           
static java.lang.String MAX_WIDTH
           
static java.lang.String MIN_WIDTH
           
 
Method Summary
 void addListener(ITableAPIListener listener)
           
 void changeZstate(boolean value)
           
 void clean()
           
 void expandTree(int direction, java.lang.String treePath)
          Command the table to expand node.
 com.google.gwt.user.client.ui.Widget getWidget()
           
 void initWidget()
           
 void insertChildren(int direction, java.lang.Object parent, ITreeModel tree)
          Adds children to the tree model in the table
 void insertTree(int direction, int pos, ITreeModel tree)
          Inserts tree model into Table at the position pos.
 void insertTree(int direction, ITreeModel tree)
          Inserts tree model into Table at default position 0.
 void removeListener(ITableAPIListener listener)
           
 void setCellValue(int row, int column, java.lang.String value)
          Sets cell's value.
 void setParameter(java.lang.String key, java.lang.String value)
           
 void updateData()
          Tells table to redraw new values
 

Field Detail

DIRECTION_HORIZONTAL

static final int DIRECTION_HORIZONTAL
See Also:
Constant Field Values

DIRECTION_VERTICAL

static final int DIRECTION_VERTICAL
See Also:
Constant Field Values

MIN_WIDTH

static final java.lang.String MIN_WIDTH
See Also:
Constant Field Values

MAX_WIDTH

static final java.lang.String MAX_WIDTH
See Also:
Constant Field Values

HINT_TIME

static final java.lang.String HINT_TIME
See Also:
Constant Field Values
Method Detail

initWidget

void initWidget()

clean

void clean()

changeZstate

void changeZstate(boolean value)

insertTree

void insertTree(int direction,
                ITreeModel tree)
Inserts tree model into Table at default position 0.

Parameters:
direction - - DIRECTION_HORIZONTAL/DIRECTION_VERTICAL
tree - - model of the tree to insert.

insertTree

void insertTree(int direction,
                int pos,
                ITreeModel tree)
Inserts tree model into Table at the position pos.

Parameters:
direction - - DIRECTION_HORIZONTAL/DIRECTION_VERTICAL
pos - - position of the tree, zero based
tree - - model of the tree to insert.

expandTree

void expandTree(int direction,
                java.lang.String treePath)
Command the table to expand node. Path is encoded like this "node01/node02//node11/node12...", where node01,node02 belongs to the first tree, node11,node12 belongs to the second.

Parameters:
direction - - DIRECTION_HORIZONTAL/DIRECTION_VERTICAL
treePath - - path of the node

insertChildren

void insertChildren(int direction,
                    java.lang.Object parent,
                    ITreeModel tree)
Adds children to the tree model in the table

Parameters:
direction - - DIRECTION_HORIZONTAL/DIRECTION_VERTICAL
parent - - parent to add children nodes
tree - - model of the tree.

setCellValue

void setCellValue(int row,
                  int column,
                  java.lang.String value)
Sets cell's value.

Parameters:
row - - row , zero based
column - - column, zero based
value - - value to set.

updateData

void updateData()
Tells table to redraw new values


addListener

void addListener(ITableAPIListener listener)

removeListener

void removeListener(ITableAPIListener listener)

getWidget

com.google.gwt.user.client.ui.Widget getWidget()

setParameter

void setParameter(java.lang.String key,
                  java.lang.String value)