public class GenericTable
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLS_NUM |
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_ROWS_NUM |
Constructor and Description |
---|
GenericTable(org.gcube.portlets.d4sreporting.common.shared.Table sTable,
Presenter presenter,
int top,
int left,
int width,
int height,
boolean isLocked,
boolean isRemovable,
TextTableImage owner)
constructor called when reading the model
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn()
add a column next to the last onw
|
void |
addColumnLeft(int colindex)
adda a column at the left of the selected cell of the selected tableb
TODO: next version
|
void |
addRow()
adda a row at the bottom of the tableb
|
void |
deleteColumn(int colIndex)
delete the colIndex column from the table
|
void |
deleteLastRow()
delete the selected row from the table
|
void |
deleteRow(int rowIndex)
delete the rowIndex row from the table
|
int |
getCols() |
com.google.gwt.user.client.ui.FlexTable |
getMyTable() |
ArrayList<org.gcube.portlets.d4sreporting.common.shared.TableCell> |
getRow(int i) |
int |
getRowsNo() |
GenTableCell |
getSelectedCell() |
org.gcube.portlets.d4sreporting.common.shared.Table |
getSerializable() |
protected void |
resetMe() |
void |
setCols(int cols) |
void |
setMyTable(com.google.gwt.user.client.ui.FlexTable myTable) |
void |
setRows(int rows) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public static final int DEFAULT_HEIGHT
public static final int DEFAULT_ROWS_NUM
public static final int DEFAULT_COLS_NUM
public GenericTable(org.gcube.portlets.d4sreporting.common.shared.Table sTable, Presenter presenter, int top, int left, int width, int height, boolean isLocked, boolean isRemovable, TextTableImage owner)
sTable
- public com.google.gwt.user.client.ui.FlexTable getMyTable()
public void setMyTable(com.google.gwt.user.client.ui.FlexTable myTable)
public int getRowsNo()
public void setRows(int rows)
public int getCols()
public void setCols(int cols)
public org.gcube.portlets.d4sreporting.common.shared.Table getSerializable()
public ArrayList<org.gcube.portlets.d4sreporting.common.shared.TableCell> getRow(int i)
public GenTableCell getSelectedCell()
public void deleteLastRow()
public void addRow()
public void addColumn()
public void addColumnLeft(int colindex)
public void deleteRow(int rowIndex)
public void deleteColumn(int colIndex)
protected void resetMe()
Copyright © 2014. All Rights Reserved.