public class GenericTable
extends org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COLS_NUM |
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_ROWS_NUM |
| Constructor and Description |
|---|
GenericTable(int rows,
int cols,
org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
Presenter presenter,
int left,
int top,
int width,
int height,
boolean hideControls)
Constructor for brand new tables
|
GenericTable(org.gcube.portlets.d4sreporting.common.shared.Table sTable,
Presenter presenter,
int top,
int left,
int width,
int height,
boolean isLocked)
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() |
void |
lockComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toLock,
boolean locked) |
void |
removeTemplateComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toRemove) |
void |
setCols(int cols) |
void |
setMyTable(com.google.gwt.user.client.ui.FlexTable myTable) |
void |
setRows(int rows) |
get, getLeft, getMyFakeTextArea, getResizablePanel, getTop, getTopPanel, getType, hideCloseButton, repositionMyPanel, resizePanel, setHeight, setLeft, setLocked, setMyFakeTextArea, setTop, setTypeclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic static final int DEFAULT_HEIGHT
public static final int DEFAULT_ROWS_NUM
public static final int DEFAULT_COLS_NUM
public GenericTable(int rows,
int cols,
org.gcube.portlets.d4sreporting.common.shared.ComponentType type,
Presenter presenter,
int left,
int top,
int width,
int height,
boolean hideControls)
rows - cols - type - presenter - left - top - width - height - public GenericTable(org.gcube.portlets.d4sreporting.common.shared.Table sTable,
Presenter presenter,
int top,
int left,
int width,
int height,
boolean isLocked)
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)
public void lockComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toLock,
boolean locked)
lockComponent in class org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponentpublic void removeTemplateComponent(org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponent toRemove)
removeTemplateComponent in class org.gcube.portlets.d4sreporting.common.client.uicomponents.ReportUIComponentCopyright © 2014. All Rights Reserved.