|
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.table.TableColumn
A TableColumn represents all the attributes of a column in a TableView, such as identifier, linkColumnKey, width. *
Copyright 2004 SAP AG
| Constructor Summary | |
TableColumn(TableViewModel model,
String title)
constructs a TableColumn with the given title, identifier, type and the width |
|
TableColumn(TableViewModel model,
String title,
String identifier)
constructs a TableColumn with the given title, identifier, type and the width |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type)
constructs a TableColumn with the given title, identifier, type and the width |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType)
constructs a TableColumn with the given title, identifier, type and the width |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width)
constructs a TableColumn with the given title, identifier, type and the width |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey)
constructs a TableColumn with the given title, identifier, type, width and the key for link column |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey,
boolean wrapping)
constructs a TableColumn with the given title, identifier, type, width and the key for link column |
|
TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey,
boolean wrapping,
String onItemClick)
constructs a TableColumn with the given title, identifier, type, width and the key for link column |
|
| Method Summary | |
void |
addSourceFlavour(String flavour)
adds a flavour to the dragSources of the column cells. |
void |
addTargetFlavour(String flavour)
adds a flavour to the dropTargets of the column cells. |
CellHAlign |
getCellHAlignment(int rowIndex)
returns the horizontal alignment for the cell at rowIndex and
columnIndex |
TableColumnType |
getCellType(int rowIndex)
returns the type for the cell at rowIndex |
CellVAlign |
getCellVAlignment(int rowIndex)
returns the vertical alignment for the cell at rowIndex and
columnIndex |
DataType |
getDataType()
returns the data type of the column |
Scope |
getDragScope()
the scope determines if drag-and-drop is possible only inside the current form or in the whole browser. |
DropTargetDesign |
getDropTargetDesign()
gets the design of the dropTargets during a drag-and-drop operation. |
String |
getIdentifier()
returns the identifier of the column |
int |
getIndex()
returns the index of this column Returns -1 if the column cannot be found in the table model |
String |
getLinkClickTarget()
returns the target for a link column |
String |
getLinkColumnKey()
returns the key of the link column |
String |
getOnCellClick()
gets the event handler for the cell click event |
String |
getOnClientCellClick()
gets the event handler for the client cell click event |
String |
getOnDrop()
retrieves the event handler for the DropEvent. |
String |
getOnHeaderSort()
returns the method name of handling the sort event |
String |
getOnItemClick()
returns the event handler for a button or link click event |
TableSortState |
getSortState()
returns the sort state of the column |
ArrayList |
getSourceFlavours()
retrieves the list of flavours from the dragSources of the column cells. |
ArrayList |
getTargetFlavours()
retrieves the list of flavours from the dropTargets of the column cells. |
String |
getTitle()
returns the title of the column |
String |
getTooltipColumnKey()
returns the tooltip column for this column |
String |
getTooltipForColumnHeader()
returns the user defined tooltip for column header |
TableColumnType |
getType()
returns the column type |
String |
getUnitColumnKey()
returns the unit column key |
AbstractDataType |
getValueAt(int row)
returns the value at row |
String |
getWidth()
returns the width of the column |
boolean |
isCellDisabled(int rowIndex)
returns if the component in a cell should be disabled or not Note: currently supported component is: InputField |
boolean |
isCellInvalid(int rowIndex)
returns if the component in a cell contains an invalid value or not Note: currently supported component is: InputField |
boolean |
isCellsDragable()
identifies if the cells of a column are dragable |
boolean |
isEncode()
returns if the content of the column should be rendered as normal text or rawtext |
boolean |
isEncodeHeaderCell()
returns if the content of the column header should be rendered as normal text or rawtext |
boolean |
isMonospaced()
|
boolean |
isWrapping()
determines if wrapping is allowed for this column. |
void |
removeAllSourceFlavours()
removes all flavours from the dragSources of the column cells. |
void |
removeAllTargetFlavours()
removes all flavours from the dropTargets of the column cells. |
void |
removeSourceFlavour(String flavour)
removes a flavour from the dragSources of the column cells. |
void |
removeTargetFlavour(String flavour)
removes a flavour from the dropTargets of the column cells. |
void |
setAppendUnit(boolean useIt)
sets if the content of the column should be concatenated with the content of the unit column |
void |
setCellDisabled(int rowIndex,
boolean disabled)
sets the component to disabled or enabled for the cell at rowIndex and
columnIndex |
void |
setCellHAlignment(int rowIndex,
CellHAlign hAlignment)
sets the horizontal alignment for the cell at rowIndex and
columnIndex |
void |
setCellInvalid(int rowIndex,
boolean invalid)
sets the component to invalid or not for the cell at rowIndex and
columnIndex |
void |
setCellsDragable(boolean dragable)
set dragable to true to allow dragging of objects inside a column cell |
void |
setCellType(int rowIndex,
TableColumnType type)
sets the style for the cell at rowIndex |
void |
setCellVAlignment(int rowIndex,
CellVAlign vAlignment)
sets the vertical alignment for the cell at rowIndex and
columnIndex |
void |
setDataType(DataType dataType)
sets the data type of the column |
void |
setDragScope(Scope scope)
the scope determines if drag-and-drop is possible only inside the current form or in the whole browser. |
void |
setDropTargetDesign(DropTargetDesign dropTargetDesign)
sets the design of the dropTargets during a drag-and-drop operation. |
void |
setEncode(boolean encode)
determine if the content of the column should be rendered as normal text or rawtext |
void |
setEncodeHeaderCell(boolean encodeHeaderCell)
determine if the content of the column header cell should be rendered as normal text or rawtext |
void |
setIdentifier(String identifier)
sets the identifier of the column |
void |
setLinkClickTarget(String linkClickTarget)
sets the target for a link column |
void |
setLinkColumnKey(String linkColumnKey)
sets the link column key |
void |
setMonospaced(boolean monospaced)
|
void |
setOnCellClick(String onCellClick)
sets the event handler for the cell click event |
void |
setOnClientCellClick(String onClientCellClick)
sets the event handler for the client cell click event |
void |
setOnDrop(String onDrop)
sets the event handler for the DropEvent. |
void |
setOnHeaderSort(String onHeaderSort)
sets the event handler for sort event |
void |
setOnItemClick(String onItemClick)
sets the event handler for a button or link click event |
void |
setSortState(TableSortState sortState)
sets the sprt state of the column. |
void |
setTitle(String title)
sets the title for the column |
void |
setTooltipColumnKey(String tooltipColumnKey)
sets a column as the tooltip column. |
void |
setTooltipForColumnHeader(String tooltipForColumnHeader)
sets the tooltip for column header |
void |
setType(TableColumnType type)
sets the column type Note: if the fields of the column should be displayed as input fields, the data in the input fields should be retrieved with the method com.sapportals.htmlb.rendering.PageContext#getDataForComponentId(String, String, int) |
void |
setUnitColumnKey(String unitColumnKey)
sets the unit column key Note: to concatenate the content of the column with the content in the unit column and dispay them in one column, use the method #setAppendUnit(boolean) with the parameter value "true" |
void |
setWidth(String width)
sets the width for the column |
void |
setWrapping(boolean wrapping)
sets if wrapping is allowed for this column. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableColumn(TableViewModel model,
String title)
model - the TableViewModel to which this TableColumn belongstitle - the title for the columnTableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier)
title - identifier - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type)
title - identifier - type - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType)
title - identifier - type - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width)
title - identifier - type - width - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey)
title - identifier - type - width - linkColumnKey - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey,
boolean wrapping)
title - identifier - type - width - linkColumnKey - wrapping - TableColumnType
public TableColumn(TableViewModel model,
String title,
String identifier,
TableColumnType type,
DataType dataType,
String width,
String linkColumnKey,
boolean wrapping,
String onItemClick)
title - identifier - type - width - linkColumnKey - wrapping - onItemClick - TableColumnType| Method Detail |
public String getTitle()
public void setTitle(String title)
title - the title of the columnpublic String getIdentifier()
public void setIdentifier(String identifier)
identifier - the identifier(key) of the columnpublic TableColumnType getType()
TableColumnTypepublic void setType(TableColumnType type)
type - the display type of the columnTableColumnTypepublic DataType getDataType()
DataTypepublic void setDataType(DataType dataType)
dataType - the data type of the columnDataTypepublic String getWidth()
public void setWidth(String width)
public String getLinkColumnKey()
public void setLinkColumnKey(String linkColumnKey)
public String getTooltipColumnKey()
public void setTooltipColumnKey(String tooltipColumnKey)
tooltipColumnKey
will be displayed as the tooltip
tooltipColumnKey - the key of the column whose content should be
displayed as tooltippublic String getUnitColumnKey()
public void setUnitColumnKey(String unitColumnKey)
unitColumnKey - the key(name) of the unit columnpublic void setAppendUnit(boolean useIt)
useIt - when useIt=true, the content in the unit column
will not be displayed seperately any more, instead they will be concatenated
with the content in the current columnpublic boolean isEncode()
public void setEncode(boolean encode)
public boolean isEncodeHeaderCell()
public void setEncodeHeaderCell(boolean encodeHeaderCell)
public String getLinkClickTarget()
public void setLinkClickTarget(String linkClickTarget)
linkClickTarget - the target for the link in the current columnpublic String getOnCellClick()
public void setOnCellClick(String onCellClick)
onCellClick - the event actionpublic void setOnClientCellClick(String onClientCellClick)
onClientCellClick - the event actionpublic String getOnClientCellClick()
public boolean isWrapping()
public void setWrapping(boolean wrapping)
wrapping - true is this column may wrappublic String getOnItemClick()
public void setOnItemClick(String onItemClick)
public AbstractDataType getValueAt(int row)
row
rowpublic CellVAlign getCellVAlignment(int rowIndex)
rowIndex and
columnIndex
rowIndex - the index of the row
public void setCellVAlignment(int rowIndex,
CellVAlign vAlignment)
rowIndex and
columnIndex
rowIndex - the index of the rowvAlignment - the vertical alignment ofpublic CellHAlign getCellHAlignment(int rowIndex)
rowIndex and
columnIndex
rowIndex - the index of the row
public void setCellHAlignment(int rowIndex,
CellHAlign hAlignment)
rowIndex and
columnIndex
rowIndex - the index of the row or -1 for setting the complete columnpublic TableColumnType getCellType(int rowIndex)
rowIndex
rowIndex - the index of the row
public void setCellType(int rowIndex,
TableColumnType type)
rowIndex
rowIndex - the index of the rowtype - the diyplay type for the specified cell in the columnpublic boolean isCellDisabled(int rowIndex)
rowIndex - the index of the row
public void setCellDisabled(int rowIndex,
boolean disabled)
rowIndex and
columnIndex
rowIndex - the index of the rowpublic boolean isCellInvalid(int rowIndex)
rowIndex - the index of the row
public void setCellInvalid(int rowIndex,
boolean invalid)
rowIndex and
columnIndex
rowIndex - the index of the rowinvalid - true if the InputField contains an invalid valuepublic String getTooltipForColumnHeader()
public void setTooltipForColumnHeader(String tooltipForColumnHeader)
public int getIndex()
public void setCellsDragable(boolean dragable)
dragable - true or falsepublic boolean isCellsDragable()
public void setDragScope(Scope scope)
public Scope getDragScope()
public void addSourceFlavour(String flavour)
flavour - the flavour to addpublic void removeSourceFlavour(String flavour)
flavour - the flavour to removepublic void removeAllSourceFlavours()
public ArrayList getSourceFlavours()
public void addTargetFlavour(String flavour)
flavour - the flavour to addpublic void removeTargetFlavour(String flavour)
flavour - the flavour to removepublic void removeAllTargetFlavours()
public ArrayList getTargetFlavours()
public void setDropTargetDesign(DropTargetDesign dropTargetDesign)
dropTargetDesign - design of the dropTargets during a drag-and-drop operationpublic DropTargetDesign getDropTargetDesign()
public void setOnDrop(String onDrop)
onDrop - event handler for the DropEvent.public String getOnDrop()
public boolean isMonospaced()
public void setMonospaced(boolean monospaced)
public TableSortState getSortState()
TableSortStatepublic void setSortState(TableSortState sortState)
TableSortStatepublic String getOnHeaderSort()
public void setOnHeaderSort(String onHeaderSort)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||