|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Container
com.sapportals.htmlb.EventValidationContainer
com.sapportals.htmlb.table.TableView
New: Three generic functions have been identified and have been added to the table. Select all: Selects all rows of a table with multi selection. Deselect all: Deselects all rows of a HTMLB with multi selection. Invert Selection: the selected rows become unselected and vice versa.
To get the menu with options Select All/Deselect All/Invert Selection in the table, please use the new TableViewSelectionMode - MultiSelectionWithOptions.
The Methods for handling these events should be: onSelectAll, onDeselcetAll, onInvertSelection Note: Due to some new requirements we decided to provide row keys persistence of all rows for a table view with "multiple" or "single" selection mode. Pls be aware that it's your own responsibility to make sure that the table view should not contain too many rows. Otherwise it can cause performance problems.
Copyright 2004 SAP AG
| Field Summary | |
protected ArrayList |
columns
|
static String |
deselectAll
|
static String |
invertSelection
|
static String |
selectAll
|
static String |
tableViewOptionMenuModifier
|
static String |
UI_ID
|
static int |
VAR_BEGIN
|
static int |
VAR_BEGINCOLUMNHEADERS
|
static int |
VAR_BEGINCONTCELL
|
static int |
VAR_BEGINCONTENT
|
static int |
VAR_BEGINCONTROW
|
static int |
VAR_BEGINFOOTER
|
static int |
VAR_BEGINHEAD
|
static int |
VAR_BEGINHEADCELL
|
static int |
VAR_BEGINHEADTITLE
|
static int |
VAR_END
|
static int |
VAR_ENDCOLUMNHEADERS
|
static int |
VAR_ENDCONTCELL
|
static int |
VAR_ENDCONTENT
|
static int |
VAR_ENDCONTROW
|
static int |
VAR_ENDFOOTER
|
static int |
VAR_ENDHEAD
|
static int |
VAR_ENDHEADCELL
|
static int |
VAR_ENDHEADTITLE
|
static int |
VAR_FOOTERNAVIGATION
|
static int |
VAR_FOOTERPOSITION
|
| Fields inherited from class com.sapportals.htmlb.Container |
elements |
| Constructor Summary | |
TableView(String id)
Constructs a table that is initialized with id as the id of the name |
|
TableView(String id,
TableViewModel tableViewModel)
Constructs a table that is initialized with tableViewModel as the data model |
|
| Method Summary | |
void |
addKeyColumn(int columnIndex)
adds the column at columnIndex as a key column |
String |
encodeInternalData()
encodes the column names and the row keys, internal use only |
String |
getAccessibilityDescription()
get the semantical description of the component in it's applicationcontext used by screenreaders |
CellHAlign |
getCellHAlignment(int rowIndex,
int columnIndex)
returns the horizontal alignment for the cell at rowIndex and
columnIndex |
ICellRenderer |
getCellRenderer(int row,
int column)
returns the table cell renderer for the given column and row |
TableColumnType |
getCellType(int rowIndex,
int columnIndex)
returns the display type for the cell at rowIndex and
columnIndex |
CellVAlign |
getCellVAlignment(int rowIndex,
int columnIndex)
returns the vertical alignment for the cell at rowIndex and
columnIndex |
int |
getColspanForCell(int rowIndex,
int columnIndex)
returns the colspan for the cell at rowIndex and
columnIndex |
int |
getColspanForCurrentColumn()
returns the colspan for the current column Note: internal use only. |
TableColumn |
getColumn(int columnIndex)
returns the column at columnIndex |
TableColumn |
getColumn(String columnKey)
returns the column with the id columnKey |
int |
getColumnCount()
returns the column count of the table |
String |
getColumnName(int columnIndex)
returns the column identifier of the column at columnIndex |
Vector |
getColumns()
returns the visible columns of the table |
TableColumnType |
getColumnType(int columnIndex)
returns the type of the column |
String |
getComponentIdModifier()
get a String that is specific for the component class that is added as modifier to the component ID returned by Form.getFullIdForComponent(); |
int |
getCurrentColumnIndex()
returns the current column index Note: internal use only. |
int |
getCurrentPageIndex()
returns the page index Note: Internal use only |
int |
getCurrentRowIndex()
returns the current row index Note: internal use only. |
TableViewDesign |
getDesign()
returns the table design |
String |
getEmptyTableText()
returns the text that should be displayed if the table is empty |
EventModifierData |
getEventModifierData()
get a String that is specific for the component class that is added as modifier data to any event fired from within this components scope. |
IFooterRenderer |
getFooterRenderer()
returns the footer renderer for the table |
String |
getFormId()
returns the form id |
IHeaderCellRenderer |
getHeaderCellRenderer(int column)
returns the table header cell renderer for the table for the given column |
IHeaderRenderer |
getHeaderRenderer()
returns the table header renderer for the table. |
String |
getHeaderText()
returns the title of the table |
TableViewModel |
getModel()
returns the table model |
TableNavigationMode |
getNavigationMode()
returns the navigation mode for the table |
String |
getOnClientRowSelection()
returns the event handler for the row client side selection event The handler for the rowselection event will be returned if there is one given. |
String |
getOnDeselectAll()
returns the event handler for deselect all event in the option menu |
String |
getOnHeaderClick()
returns the name of the event handler for the header click event |
String |
getOnInvertSelection()
returns the event handler for invert selection event in the option menu |
String |
getOnNavigate()
returns the name of the event handler for the navigation event |
String |
getOnRowSelection()
returns the event handler for the row selection event The handler for the rowselection event should be returned if there is one given. |
String |
getOnSelectAll()
returns the event handler for select all event in the option menu |
HoverMenu |
getOptionMenu(Locale locale)
|
int |
getRowCount()
returns the number of rows of the table |
String |
getRowDescription(int row)
sets the sematical description for the component in it's applicationcontext used by screenreaders |
String |
getRowKey(int rowIndex)
returns the content in the key column at rowIndex
if there was no key column set, the rowIndex will be returned |
IRowRenderer |
getRowRenderer(int rowIndex)
returns the table row renderer for the given row index |
int |
getRowspanForCell(int rowIndex,
int columnIndex)
returns the rowspan for the cell at rowIndex and
columnIndex |
TableSelectionMode |
getSelectionMode()
returns the selection mode for the table |
SpanInfo |
getSpanInfoForCell(int rowIndex,
int columnIndex)
returns the span info for the cell at rowIndex and
columnIndex |
TableCellStyle |
getStyleForCell(int rowIndex,
int columnIndex)
returns the style for the cell at rowIndex and
columnIndex |
String |
getSummary()
returns the summary |
CellHAlign |
getTableHAlignment()
get the halign for the whole table |
Toolbar |
getToolbar()
get the toolbar for the TableView |
String |
getUI()
returns the UI of the table |
AbstractDataType |
getValueAt(int row,
int column)
returns the value at row and column |
AbstractDataType |
getValueAt(int row,
String columnName)
returns the value at row and in the column
with columnName |
int |
getVisibleFirstRow()
returns the index of the first visible row |
int |
getVisibleLastRow()
returns the index of the last visible row on the page |
int |
getVisibleRowCount()
returns the count of the visible rows |
String |
getWidth()
returns the width of the table |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
inits the component from page context. |
boolean |
isCellDisabled(int rowIndex,
int columnIndex)
returns if the component in a cell should be disabled or not Note: currently supported component is: InputField |
boolean |
isCellHeaderVisible()
determines if the cell header row is visible or not |
boolean |
isCellInvalid(int rowIndex,
int columnIndex)
returns if the component in a cell contains a invalid value or not Note: currently supported component is: InputField |
boolean |
isFillUpEmptyRows()
returns if the table should be filled up with the empty rows |
boolean |
isFooterVisible()
returns if the footer is visible |
boolean |
isHeaderCellWrapping()
check if the header cell of the column should be wrappend or not |
boolean |
isHeaderVisible()
checks if the header of the table should be visible or not |
boolean |
isRowSelectable(int rowIndex)
checks the checkbox or radiobutton for the row at rowIndex
can be selected. |
boolean |
isRowSelected(int rowIndex)
returns true if a row is selected. |
void |
prepareSpanInfoBuffer()
prepares the span info buffer for rendering. |
void |
selectRow(int rowIndex,
boolean isSelected)
checks the checkbox or radiobutton for the row at rowIndex
if the TableSelectionMode is set to TableSelectionMode.MULTISELECT or
TableSelectionMode.SINGLESELECT
Note: you can deselect one row using this method with parameter isSelected=false |
void |
setAccessibilityDescription(String accessibilityDescription)
sets the sematical description for the component in it's applicationcontext used by screenreaders |
void |
setCellDisabled(int rowIndex,
int columnIndex,
boolean disabled)
sets this component in the cell to disabled or enabled Note: current supported component is: InputField |
void |
setCellHAlignment(int rowIndex,
int columnIndex,
CellHAlign hAlignment)
sets the horizontal alignment for the cell at rowIndex and
columnIndex |
void |
setCellHeaderVisible(boolean cellHeaderVisible)
sets cell header row visible or not Note: this method only displays/hides the title of the columns. |
void |
setCellInvalid(int rowIndex,
int columnIndex,
boolean invalid)
sets this component in the cell to invalid Note: current supported component is: InputField |
void |
setCellRenderer(ICellRenderer tableCellRenderer)
sets the cellrenderer for the table |
void |
setCellType(int rowIndex,
int columnIndex,
TableColumnType type)
sets the display type for the cell at rowIndex and
columnIndex |
void |
setCellVAlignment(int rowIndex,
int columnIndex,
CellVAlign vAlignment)
sets the vertical alignment for the cell at rowIndex and
columnIndex |
void |
setColspanForCell(int rowIndex,
int columnIndex,
int colspan)
sets the colspan for the cell at rowIndex and
columnIndex |
void |
setColspanForCurrentColumn(int colspanForCurrentColumn)
sets the colspan for the current column Note: internal use only. |
void |
setColumnAt(TableColumn column,
int columnIndex)
sets the column for the table at column with the columnIndex |
void |
setColumnCount(int columnCount)
sets the column count of the table |
void |
setColumnHAlignment(int columnIndex,
CellHAlign hAlignment)
sets the horizontal alignment for the column at columnIndex |
void |
setColumnInvisible(String columnKey)
sets a column invisible |
void |
setColumnName(String columnName,
int columnIndex)
sets the name(title) of the column named with columnName |
void |
setColumnType(TableColumnType columnType,
int columnIndex)
sets the type of the column |
void |
setColumnVAlignment(int columnIndex,
CellVAlign vAlignment)
sets the vertical alignment for the whole column at columnIndex |
void |
setCurrentColumnIndex(int currentColumnIndex)
sets the current column index Note: Internal use only. |
void |
setCurrentRowIndex(int currentRowIndex)
sets the current row index Note: internal use only. |
void |
setDesign(TableViewDesign design)
sets the table design |
void |
setEmptyTableText(String emptyTableText)
sets the text that should be displayed if the table has no content |
void |
setFillUpEmptyRows(boolean fillUpEmptyRows)
|
void |
setFooterRenderer(IFooterRenderer footerRenderer)
sets the footer renderer for the table |
void |
setFooterVisible(boolean footerVisible)
sets footer visible or not |
void |
setHeaderCellRenderer(IHeaderCellRenderer headerCellRenderer)
sets the headerCellRenderer for the table Note: the headerCellRenderer simply renders the title of each single column of the table. |
void |
setHeaderCellWrapping(boolean headerCellWrapping)
determines if the header cell of the table should be wrapped |
void |
setHeaderRenderer(IHeaderRenderer headerRenderer)
sets the table header renderer for the table |
void |
setHeaderText(String headerText)
sets the title of the table |
void |
setHeaderVisible(boolean headerVisible)
sets the visibility of the table header Note: this method only displays/hides the title of the table. |
void |
setKeyColumn(int columnIndex)
sets the column at columnIndex as the key column |
void |
setLinkColumnKey(String linkRefColumnName,
int columnIndex)
sets the reference column for a link column |
void |
setLinkColumnKey(String linkRefColumnName,
String columnName)
sets the reference column for a link column |
void |
setModel(TableViewModel tableViewModel)
sets the table model |
void |
setNavigationMode(TableNavigationMode navigationMode)
sets the navigation mode for the table |
void |
setOnCellClick(int columnIndex,
String onCellClick)
sets the event handler for all cells in a column |
void |
setOnCellClick(String columnKey,
String onCellClick)
sets the event handler for all cells in a column |
void |
setOnClientCellClick(int columnIndex,
String onClientCellClick)
sets the event handler for the client side cell click event |
void |
setOnClientCellClick(String columnKey,
String onClientCellClick)
sets the event handler for the client side cell click event |
void |
setOnClientRowSelection(String onClientRowSelection)
sets the event handler for the client side row selection event |
void |
setOnDeselectAll(String onDeselectAll)
sets the event handler for deselect all event in the option menu |
void |
setOnHeaderClick(String onHeaderClick)
sets the event handler for table header click event |
void |
setOnInvertSelection(String onInvertSelection)
sets the event handler for revert selection event in the option menu |
void |
setOnNavigate(String onNavigate)
sets the event handler for table navigation event |
void |
setOnRowSelection(String onRowSelection)
sets the event handler for the row selection event This method can be used to fire a TableRowSelectionEvent if a radiobutton in the selection column of the table with the single selection mode is selected. |
void |
setOnSelectAll(String onSelectAll)
sets the event handler for select all event in the option menu |
void |
setRowCount(int rowCount)
sets the number of rows of the table |
void |
setRowDescription(String accessibilityDescription,
int row)
sets the sematical description for the component in it's applicationcontext used by screenreaders |
void |
setRowRenderer(IRowRenderer tableRowRenderer)
sets the tableRowRenderer variable |
void |
setRowSelectable(int rowIndex,
boolean selectable)
sets if the checkbox or radiobutton for the row at rowIndex
can be selected. |
void |
setRowSelection(int rowIndex)
Deprecated. replaced by |
void |
setRowspanForCell(int rowIndex,
int columnIndex,
int rowspan)
sets the rowspan for the cell at rowIndex and
columnIndex |
void |
setRowVAlignment(int rowIndex,
CellVAlign vAlignment)
sets the vertical alignment for the column at rowIndex |
void |
setSelectionMode(TableSelectionMode selectionMode)
sets the selection mode for the table |
void |
setStyleForCell(int rowIndex,
int columnIndex,
TableCellStyle style)
sets the style for the cell at rowIndex and
columnIndex |
void |
setSummary(String summary)
sets the summary |
void |
setTableHAlignment(CellHAlign tableHAlignment)
sets halign for the whole table |
void |
setToolbar(Toolbar toolbar)
set a toolbar for the TableView |
void |
setUserTypeCellRenderer(ICellRenderer userTypeCellRenderer)
sets the cell renderer for user defiend type |
void |
setVisibleFirstRow(int visibleFirstRow)
sets the index of the first visible row |
void |
setVisibleRowCount(int visibleRowCount)
sets the number of the rows of the visible rows |
void |
setWidth(String width)
sets the width of the table |
void |
useRowSelection(TableView table)
select the rows in this table, using the same indexes of the rows which were selected in the table. |
| Methods inherited from class com.sapportals.htmlb.EventValidationContainer |
getAllValidators, getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, isRequiresValidation, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Container |
addComponent, addRawText, addText, getChildCount, iterator, preRender, removeComponent, render |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int VAR_BEGIN
public static final int VAR_BEGINHEAD
public static final int VAR_BEGINHEADCELL
public static final int VAR_ENDHEADCELL
public static final int VAR_ENDHEAD
public static final int VAR_BEGINCONTENT
public static final int VAR_BEGINCONTROW
public static final int VAR_BEGINCONTCELL
public static final int VAR_ENDCONTCELL
public static final int VAR_ENDCONTROW
public static final int VAR_ENDCONTENT
public static final int VAR_BEGINFOOTER
public static final int VAR_FOOTERNAVIGATION
public static final int VAR_FOOTERPOSITION
public static final int VAR_ENDFOOTER
public static final int VAR_END
public static final int VAR_BEGINHEADTITLE
public static final int VAR_ENDHEADTITLE
public static final int VAR_BEGINCOLUMNHEADERS
public static final int VAR_ENDCOLUMNHEADERS
public static final String selectAll
public static final String deselectAll
public static final String invertSelection
public static final String tableViewOptionMenuModifier
protected ArrayList columns
| Constructor Detail |
public TableView(String id)
id as the id of the name
id - the id of the table
public TableView(String id,
TableViewModel tableViewModel)
tableViewModel as the data model
id - the id of the tabletableViewModel - the model of the tableTableViewModel| Method Detail |
public String getUI()
getUI in class Componentpublic IRowRenderer getRowRenderer(int rowIndex)
rowIndex - the row indexpublic void setRowRenderer(IRowRenderer tableRowRenderer)
tableRowRenderer variable
tableRowRenderer - the row renderer for the table
public ICellRenderer getCellRenderer(int row,
int column)
row - the row indexcolumn - the column index
public void setCellRenderer(ICellRenderer tableCellRenderer)
tableCellRenderer - the cell renderer for the tablepublic IHeaderCellRenderer getHeaderCellRenderer(int column)
column - the index of the column
public void setHeaderCellRenderer(IHeaderCellRenderer headerCellRenderer)
headerCellRenderer - the renderer for the column titlepublic void setFooterRenderer(IFooterRenderer footerRenderer)
public void setUserTypeCellRenderer(ICellRenderer userTypeCellRenderer)
userTypeCellRenderer - user defined cell rendererpublic IHeaderRenderer getHeaderRenderer()
public void setHeaderRenderer(IHeaderRenderer headerRenderer)
headerRenderer - the renderer which renders the header text of
the tablepublic IFooterRenderer getFooterRenderer()
public Vector getColumns()
public void setColumnAt(TableColumn column,
int columnIndex)
TableColumnpublic TableColumn getColumn(int columnIndex)
columnIndex
TableColumnpublic TableColumn getColumn(String columnKey)
columnKey
columnKey - the identifier of the columnpublic String getColumnName(int columnIndex)
columnIndex
columnIndex - the index of the column whose name should be retrievedTableColumn
public void setColumnName(String columnName,
int columnIndex)
columnName
columnName - the name for the columncolumnIndex - the index of the column whose name should be setpublic TableColumnType getColumnType(int columnIndex)
columnIndex - the index of the columnTableColumnType
public void setColumnType(TableColumnType columnType,
int columnIndex)
public TableViewDesign getDesign()
TableViewDesignpublic void setDesign(TableViewDesign design)
TableViewDesignpublic String getHeaderText()
public void setHeaderText(String headerText)
public boolean isFillUpEmptyRows()
public String getEmptyTableText()
public void setEmptyTableText(String emptyTableText)
public String getSummary()
public void setSummary(String summary)
public CellHAlign getTableHAlignment()
public void setTableHAlignment(CellHAlign tableHAlignment)
public void setFillUpEmptyRows(boolean fillUpEmptyRows)
public int getColumnCount()
public void setColumnCount(int columnCount)
public int getRowCount()
public void setRowCount(int rowCount)
public int getVisibleFirstRow()
public void setVisibleFirstRow(int visibleFirstRow)
public int getVisibleRowCount()
public void setVisibleRowCount(int visibleRowCount)
public boolean isHeaderVisible()
public void setHeaderVisible(boolean headerVisible)
public boolean isFooterVisible()
public void setFooterVisible(boolean footerVisible)
public boolean isCellHeaderVisible()
public void setCellHeaderVisible(boolean cellHeaderVisible)
cellHeaderVisible - true to set the cell headers visible,
false to hide cell heades.
public boolean isCellDisabled(int rowIndex,
int columnIndex)
rowIndex - the index of the rowcolumnIndex - the index of the column or -1 for setting the complete row
public void setCellDisabled(int rowIndex,
int columnIndex,
boolean disabled)
disabled - true if the component in the cell
should be disabled
public boolean isCellInvalid(int rowIndex,
int columnIndex)
rowIndex - the index of the rowcolumnIndex - the index of the column or -1 for setting the complete row
public void setCellInvalid(int rowIndex,
int columnIndex,
boolean invalid)
rowIndex - the index of the rowcolumnIndex - the index of the column or -1 for setting the complete rowinvalid - true if the InputField contains an invalid valuepublic void setColumnInvisible(String columnKey)
columnKey - the key of the columnpublic String getWidth()
public void setWidth(String width)
width - the width of the tablepublic TableViewModel getModel()
public void setModel(TableViewModel tableViewModel)
public AbstractDataType getValueAt(int row,
int column)
row and column
public AbstractDataType getValueAt(int row,
String columnName)
row and in the column
with columnName
public int getVisibleLastRow()
public String getOnNavigate()
TableNavigationEventpublic void setOnHeaderClick(String onHeaderClick)
TableHeaderClickEventpublic String getOnRowSelection()
public void setOnRowSelection(String onRowSelection)
To retrieve the index of the row from where the event is coming, pls use the
method #com.sapportals.htmlb.event.TableSelectionEvent.getRowIndex()public String getOnClientRowSelection()
public void setOnClientRowSelection(String onClientRowSelection)
public void setOnCellClick(int columnIndex,
String onCellClick)
columnIndex - the index of the visible columnonCellClick - the event actionTableCellClickEvent
public void setOnCellClick(String columnKey,
String onCellClick)
columnKey - the key of the columnonCellClick - the event actionTableCellClickEvent
public void setOnClientCellClick(int columnIndex,
String onClientCellClick)
public void setOnClientCellClick(String columnKey,
String onClientCellClick)
public String getOnHeaderClick()
TableHeaderClickEventpublic void setOnNavigate(String onNavigate)
public TableNavigationMode getNavigationMode()
TableNavigationModepublic void setNavigationMode(TableNavigationMode navigationMode)
TableNavigationModepublic TableSelectionMode getSelectionMode()
TableSelectionModepublic void setSelectionMode(TableSelectionMode selectionMode)
TableSelectionModepublic String getFormId()
protected void initFromPageContext(IPageContext pc,
String baseId)
initFromPageContext in class Componentpc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)IPageContext,
Componentpublic String encodeInternalData()
public String getRowKey(int rowIndex)
rowIndex
if there was no key column set, the rowIndex will be returned
public void setLinkColumnKey(String linkRefColumnName,
int columnIndex)
public void setLinkColumnKey(String linkRefColumnName,
String columnName)
public CellHAlign getCellHAlignment(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the column or -1 for setting the complete row
public void setCellHAlignment(int rowIndex,
int columnIndex,
CellHAlign hAlignment)
rowIndex and
columnIndex
rowIndex - the index of the row or -1 for setting the complete columncolumnIndex - the index of the column or -1 for setting the complete rowCellHAlign
public TableColumnType getCellType(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the column
public void setCellType(int rowIndex,
int columnIndex,
TableColumnType type)
rowIndex and
columnIndex
rowIndex - the index of the row or -1 for setting the complete columncolumnIndex - the index of the column
public void setColumnHAlignment(int columnIndex,
CellHAlign hAlignment)
columnIndex
columnIndex - the index of the column or -1 for setting the complete row
public CellVAlign getCellVAlignment(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the columnCellVAlign
public void setCellVAlignment(int rowIndex,
int columnIndex,
CellVAlign vAlignment)
rowIndex and
columnIndex
public void setRowVAlignment(int rowIndex,
CellVAlign vAlignment)
rowIndex
rowIndex - the index of the row for setting the complete row
public void setColumnVAlignment(int columnIndex,
CellVAlign vAlignment)
columnIndex
columnIndex - the index of the column for setting vertical
alignment for the complete column
public int getColspanForCell(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the column
public void setColspanForCell(int rowIndex,
int columnIndex,
int colspan)
rowIndex and
columnIndex
public int getRowspanForCell(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
public void setRowspanForCell(int rowIndex,
int columnIndex,
int rowspan)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the columnrowspan - the row span that the cell should have
public TableCellStyle getStyleForCell(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the column
public void setStyleForCell(int rowIndex,
int columnIndex,
TableCellStyle style)
rowIndex and
columnIndex
rowIndex - the index of the rowcolumnIndex - the index of the columnstyle - the style for the cell
public void setRowSelectable(int rowIndex,
boolean selectable)
rowIndex
can be selected.
public boolean isRowSelectable(int rowIndex)
rowIndex
can be selected.
public void setRowSelection(int rowIndex)
rowIndex
if the TableSelectionMode is set to TableSelectionMode.MULTISELECT or
TableSelectionMode.SINGLESELECT
Note: the rowIndex is the absolute index of the row in the table and begins with 1
public void selectRow(int rowIndex,
boolean isSelected)
rowIndex
if the TableSelectionMode is set to TableSelectionMode.MULTISELECT or
TableSelectionMode.SINGLESELECT
Note: you can deselect one row using this method with parameter isSelected=false
rowIndex - the index of the row in the table.
Note: the rowIndex is the absolute index of the row in the table and begins with 1public boolean isRowSelected(int rowIndex)
rowIndex - the index of the row in the table.
Note: the rowIndex is the absolute index of the row in the table and starts with 1public void setKeyColumn(int columnIndex)
columnIndex as the key column
columnIndex - the index of the column
Note: this is the absolute index of the column in the modelpublic void addKeyColumn(int columnIndex)
columnIndex as a key column
columnIndex - the index of the key column which is to be
added
public SpanInfo getSpanInfoForCell(int rowIndex,
int columnIndex)
rowIndex and
columnIndex
rowIndex - te index of the rowcolumnIndex - the index of the column
public void prepareSpanInfoBuffer()
public EventModifierData getEventModifierData()
public String getComponentIdModifier()
public int getCurrentRowIndex()
public void setCurrentRowIndex(int currentRowIndex)
public int getCurrentColumnIndex()
public void setCurrentColumnIndex(int currentColumnIndex)
public int getColspanForCurrentColumn()
public void setColspanForCurrentColumn(int colspanForCurrentColumn)
public int getCurrentPageIndex()
public void useRowSelection(TableView table)
table.
table - the indexes of the selected rows in the table will be used to
determine which rows of the actual table object should be (pre)selected.public String getOnSelectAll()
public void setOnSelectAll(String onSelectAll)
public String getOnDeselectAll()
public void setOnDeselectAll(String onDeselectAll)
public String getOnInvertSelection()
public void setOnInvertSelection(String onInvertSelection)
public HoverMenu getOptionMenu(Locale locale)
public void setToolbar(Toolbar toolbar)
toolbar - the Toolbarpublic Toolbar getToolbar()
public boolean isHeaderCellWrapping()
public void setHeaderCellWrapping(boolean headerCellWrapping)
headerCellWrapping - boolean parameter which determines the wrapping of the
header cell of the whole tablepublic String getAccessibilityDescription()
public void setAccessibilityDescription(String accessibilityDescription)
accessibilityDescription - description text
public void setRowDescription(String accessibilityDescription,
int row)
accessibilityDescription - description text
public String getRowDescription(int row)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||