com.tensegrity.palowebviewer.modules.ui.client.cubetable
Class CubeTableAPIImpl
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.tensegrity.palowebviewer.modules.ui.client.cubetable.CubeTableAPIImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.EventListener, ITableAPI
public class CubeTableAPIImpl
- extends com.google.gwt.user.client.ui.Composite
- implements ITableAPI
Method Summary |
void |
addListener(ITableAPIListener listener)
|
static boolean |
canCellBeEdited(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree)
|
void |
changeZstate(boolean value)
|
void |
clean()
|
protected void |
debug(java.lang.String msg)
|
static void |
defineBridgeMethods()
|
static void |
defineBridgeMethods(com.google.gwt.core.client.JavaScriptObject wnd)
|
void |
expandTree(int direction,
java.lang.String treePath)
Command the table to expand node. |
protected ITreeModel |
getTree(int direction,
int pos)
|
protected java.util.List |
getTreeList(int direction)
|
protected int |
getTreePosition(int direction,
ITreeModel tree)
|
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. |
static boolean |
isSelectedElementsPlain(java.lang.String id)
|
static void |
onCubeTableLoaded(java.lang.String id,
com.google.gwt.core.client.JavaScriptObject o)
|
static void |
onStateChanged(java.lang.String id,
int direction,
java.lang.String path)
|
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)
|
static void |
updateCell(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree,
java.lang.String value)
|
void |
updateData()
Tells table to redraw new values |
static boolean |
validateValue(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree,
java.lang.String value)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
getElement, initWidget, isAttached, onAttach, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CubeTableAPIImpl
public CubeTableAPIImpl()
initWidget
public void initWidget()
- Specified by:
initWidget
in interface ITableAPI
clean
public void clean()
- Specified by:
clean
in interface ITableAPI
debug
protected void debug(java.lang.String msg)
insertTree
public void insertTree(int direction,
ITreeModel tree)
- Description copied from interface:
ITableAPI
- Inserts tree model into Table at default position 0.
- Specified by:
insertTree
in interface ITableAPI
- Parameters:
direction
- - DIRECTION_HORIZONTAL/DIRECTION_VERTICALtree
- - model of the tree to insert.
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
- Specified by:
getWidget
in interface ITableAPI
- Overrides:
getWidget
in class com.google.gwt.user.client.ui.Composite
changeZstate
public void changeZstate(boolean value)
- Specified by:
changeZstate
in interface ITableAPI
insertTree
public void insertTree(int direction,
int pos,
ITreeModel tree)
- Description copied from interface:
ITableAPI
- Inserts tree model into Table at the position
pos
.
- Specified by:
insertTree
in interface ITableAPI
- Parameters:
direction
- - DIRECTION_HORIZONTAL/DIRECTION_VERTICALpos
- - position of the tree, zero basedtree
- - model of the tree to insert.
expandTree
public void expandTree(int direction,
java.lang.String treePath)
- Description copied from interface:
ITableAPI
- 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.
- Specified by:
expandTree
in interface ITableAPI
- Parameters:
direction
- - DIRECTION_HORIZONTAL/DIRECTION_VERTICALtreePath
- - path of the node
setCellValue
public void setCellValue(int row,
int column,
java.lang.String value)
- Description copied from interface:
ITableAPI
- Sets cell's value.
- Specified by:
setCellValue
in interface ITableAPI
- Parameters:
row
- - row , zero basedcolumn
- - column, zero basedvalue
- - value to set.
updateData
public void updateData()
- Description copied from interface:
ITableAPI
- Tells table to redraw new values
- Specified by:
updateData
in interface ITableAPI
addListener
public void addListener(ITableAPIListener listener)
- Specified by:
addListener
in interface ITableAPI
removeListener
public void removeListener(ITableAPIListener listener)
- Specified by:
removeListener
in interface ITableAPI
insertChildren
public void insertChildren(int direction,
java.lang.Object parent,
ITreeModel tree)
- Description copied from interface:
ITableAPI
- Adds children to the tree model in the table
- Specified by:
insertChildren
in interface ITableAPI
- Parameters:
direction
- - DIRECTION_HORIZONTAL/DIRECTION_VERTICALparent
- - parent to add children nodestree
- - model of the tree.
getTreeList
protected java.util.List getTreeList(int direction)
getTree
protected ITreeModel getTree(int direction,
int pos)
getTreePosition
protected int getTreePosition(int direction,
ITreeModel tree)
setParameter
public void setParameter(java.lang.String key,
java.lang.String value)
- Specified by:
setParameter
in interface ITableAPI
defineBridgeMethods
public static void defineBridgeMethods()
defineBridgeMethods
public static void defineBridgeMethods(com.google.gwt.core.client.JavaScriptObject wnd)
isSelectedElementsPlain
public static boolean isSelectedElementsPlain(java.lang.String id)
validateValue
public static boolean validateValue(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree,
java.lang.String value)
onCubeTableLoaded
public static void onCubeTableLoaded(java.lang.String id,
com.google.gwt.core.client.JavaScriptObject o)
canCellBeEdited
public static boolean canCellBeEdited(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree)
onStateChanged
public static void onStateChanged(java.lang.String id,
int direction,
java.lang.String path)
updateCell
public static void updateCell(java.lang.String id,
java.lang.String xTree,
java.lang.String yTree,
java.lang.String value)