public class GenericTableModel extends ContextModel implements com.sapportals.htmlb.table.TableViewModel
Constructor and Description |
---|
GenericTableModel(IContext impContext)
Deprecated.
As of NetWeaver 7.1
|
Modifier and Type | Method and Description |
---|---|
com.sapportals.htmlb.table.TableColumn |
addColumn(String columnName)
Deprecated.
As of NetWeaver 7.1
|
boolean |
addItem(ITableItem item)
Deprecated.
As of NetWeaver 7.1
|
void |
addKeyColumn(int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
boolean |
applyCommandToSelectedItems(ITableItemCommand command)
Deprecated.
As of NetWeaver 7.1
|
void |
clearData()
Deprecated.
As of NetWeaver 7.1
|
ResourceBundles |
getBundles()
Deprecated.
As of NetWeaver 7.1
|
String |
getBundleString(String key)
Deprecated.
As of NetWeaver 7.1
|
ITableItemComparator[] |
getColComparators()
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.table.TableColumn |
getColumnAt(int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
int |
getColumnCount()
Deprecated.
As of NetWeaver 7.1
|
String |
getColumnKey(int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
String[] |
getColumnKeys()
Deprecated.
As of NetWeaver 7.1
|
String |
getColumnName(int col)
Deprecated.
As of NetWeaver 7.1
|
Vector |
getColumns()
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.enums.TableColumnType[] |
getColumnTypes()
Deprecated.
As of NetWeaver 7.1
|
int |
getFirstVisibleRow()
Deprecated.
As of NetWeaver 7.1
|
protected ITableItem |
getItemAt(int row)
Deprecated.
As of NetWeaver 7.1
|
protected ITableItem |
getItemFor(String key)
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.util.IndexedLinkedList |
getKeyColumn()
Deprecated.
As of NetWeaver 7.1
|
protected String |
getKeyforRow(int row)
Deprecated.
As of NetWeaver 7.1
|
int |
getMaxVisRows()
Deprecated.
As of NetWeaver 7.1
|
int |
getRowCount()
Deprecated.
As of NetWeaver 7.1
|
int |
getSortColumn()
Deprecated.
As of NetWeaver 7.1
|
String |
getSortState()
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.enums.TableSortState |
getTableSortState()
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.type.AbstractDataType |
getValueAt(int rowIndex,
int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.type.AbstractDataType |
getValueAt(int rowIndex,
String columnKey)
Deprecated.
As of NetWeaver 7.1
|
int |
getVisibleRows()
Deprecated.
As of NetWeaver 7.1
|
void |
initTableView(com.sapportals.htmlb.table.TableView table)
Deprecated.
As of NetWeaver 7.1
|
protected void |
internalInitAfterDeserialization(com.sapportals.htmlb.rendering.IPageContext pc)
Deprecated.
As of NetWeaver 7.1
|
void |
invertSelection()
Deprecated.
As of NetWeaver 7.1
|
boolean |
isRowSelected(int row)
Deprecated.
As of NetWeaver 7.1
|
void |
readUserInput(com.sapportals.htmlb.table.TableView oldTable)
Deprecated.
As of NetWeaver 7.1
|
void |
removeColumn(String columnName)
Deprecated.
As of NetWeaver 7.1
|
void |
setBundles(ResourceBundles bundles)
Deprecated.
As of NetWeaver 7.1
|
void |
setColComparators(ITableItemComparator[] comparators)
Deprecated.
As of NetWeaver 7.1
|
void |
setColumnKeys(String[] impColumnKeys)
Deprecated.
As of NetWeaver 7.1
|
void |
setColumnName(String columnName,
int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
void |
setColumnTypes(com.sapportals.htmlb.enums.TableColumnType[] impColumnTypes)
Deprecated.
As of NetWeaver 7.1
|
void |
setFirstVisibleRow(int i)
Deprecated.
As of NetWeaver 7.1
|
boolean |
setItem(int row,
ITableItem item)
Deprecated.
As of NetWeaver 7.1
|
void |
setKeyColumn(int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
void |
setSelectionToAll(boolean selected)
Deprecated.
As of NetWeaver 7.1
|
void |
setSortColumn(int i)
Deprecated.
As of NetWeaver 7.1
|
void |
setSortState(String string)
Deprecated.
As of NetWeaver 7.1
|
void |
setValueAt(com.sapportals.htmlb.type.AbstractDataType aValue,
int rowIndex,
int columnIndex)
Deprecated.
As of NetWeaver 7.1
|
void |
setVisRows(int i)
Deprecated.
As of NetWeaver 7.1
|
int |
size()
Deprecated.
As of NetWeaver 7.1
|
void |
sort()
Deprecated.
As of NetWeaver 7.1
|
getContext, getContextFactory, getImagePath, getPersistenceId, getResourceContext, initAfterDeserialization, setContext, setContextFactory, setPersistenceId, setRequest
containsKey, containsValue, getProperty, setProperty
public GenericTableModel(IContext impContext)
impContext
- protected void internalInitAfterDeserialization(com.sapportals.htmlb.rendering.IPageContext pc) throws DeserializationException
internalInitAfterDeserialization
in class ContextModel
DeserializationException
public void clearData()
public String[] getColumnKeys()
public void setColumnKeys(String[] impColumnKeys)
public com.sapportals.htmlb.enums.TableColumnType[] getColumnTypes()
public void setColumnTypes(com.sapportals.htmlb.enums.TableColumnType[] impColumnTypes)
public ITableItemComparator[] getColComparators()
public void setColComparators(ITableItemComparator[] comparators)
comparators
- public void readUserInput(com.sapportals.htmlb.table.TableView oldTable)
public void initTableView(com.sapportals.htmlb.table.TableView table)
public boolean applyCommandToSelectedItems(ITableItemCommand command)
public void setSelectionToAll(boolean selected)
public void invertSelection()
public boolean isRowSelected(int row)
public void sort()
public int size()
public String getColumnKey(int columnIndex)
protected String getKeyforRow(int row)
public ResourceBundles getBundles()
public void setBundles(ResourceBundles bundles)
bundles
- public boolean setItem(int row, ITableItem item)
public boolean addItem(ITableItem item)
protected ITableItem getItemFor(String key)
protected ITableItem getItemAt(int row)
public int getFirstVisibleRow()
public void setFirstVisibleRow(int i)
i
- public int getVisibleRows()
public int getMaxVisRows()
public void setVisRows(int i)
i
- public int getSortColumn()
public void setSortColumn(int i)
i
- public String getSortState()
public com.sapportals.htmlb.enums.TableSortState getTableSortState()
public void setSortState(String string)
string
- public int getRowCount()
getRowCount
in interface com.sapportals.htmlb.table.TableViewModel
getColumnCount()
public int getColumnCount()
TableView
uses this method to determine
how many columns it should create and display by default.getColumnCount
in interface com.sapportals.htmlb.table.TableViewModel
getRowCount()
public String getColumnName(int col)
columnIndex
. This is used
to initialize the table's column header name.getColumnName
in interface com.sapportals.htmlb.table.TableViewModel
col
- the index of the columnpublic void setColumnName(String columnName, int columnIndex)
columnIndex
to
columnName
setColumnName
in interface com.sapportals.htmlb.table.TableViewModel
public com.sapportals.htmlb.type.AbstractDataType getValueAt(int rowIndex, int columnIndex)
columnIndex
and
rowIndex
.getValueAt
in interface com.sapportals.htmlb.table.TableViewModel
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic com.sapportals.htmlb.type.AbstractDataType getValueAt(int rowIndex, String columnKey)
rowIndex
and
in the column named with columnKey
.getValueAt
in interface com.sapportals.htmlb.table.TableViewModel
rowIndex
- the row indexcolumnKey
- the name of the column whose value is to be retrievedpublic void setValueAt(com.sapportals.htmlb.type.AbstractDataType aValue, int rowIndex, int columnIndex)
rowIndex
and columnIndex
setValueAt
in interface com.sapportals.htmlb.table.TableViewModel
aValue
- the value that the table cell at rowIndex
and
columNindex
should haverowIndex
- the index of the rowcolumnIndex
- the index of the columnpublic void setKeyColumn(int columnIndex)
setKeyColumn
in interface com.sapportals.htmlb.table.TableViewModel
columnIndex
- the index of the key columnpublic void addKeyColumn(int columnIndex)
addKeyColumn
in interface com.sapportals.htmlb.table.TableViewModel
columnIndex
- the index of the key columnpublic com.sapportals.htmlb.util.IndexedLinkedList getKeyColumn()
getKeyColumn
in interface com.sapportals.htmlb.table.TableViewModel
IndexedLinkedList
public Vector getColumns()
getColumns
in interface com.sapportals.htmlb.table.TableViewModel
public com.sapportals.htmlb.table.TableColumn getColumnAt(int columnIndex)
getColumnAt
in interface com.sapportals.htmlb.table.TableViewModel
columnIndex
public com.sapportals.htmlb.table.TableColumn addColumn(String columnName)
addColumn
in interface com.sapportals.htmlb.table.TableViewModel
columnName
- the name of the column which should be addedpublic void removeColumn(String columnName)
removeColumn
in interface com.sapportals.htmlb.table.TableViewModel
columnName
- the name of the columnAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice