|
Using Interface Manager |
|
Interface manager stores the appearance settings of the table component.
Here is the example of how to set/get interface manager of myTable object:
myTable.setInterfaceManager(myInterfaceManager);
InterfaceManager myInterfaceManager = myTable.getInterfaceManager();
Click here to see InterfaceManagerBean example
<table:interfaceManager> tag :
| • | individual properties |
Name |
Description |
variable |
Java variable that can be used inside the tag to get access to the instance |
useDefaultColors |
If false than table does not use default color schema. Default true |
| • | header look and feel propertiesheaderDefaultStyle |
Name |
Description |
headerDefaultBackground |
Defines header default background |
headerDefaultForeground |
Defines header default foreground |
headerSortedBackground |
Sorted background |
headerSortedForeground |
Sorted foreground |
headerFocusedBackground |
Focused background |
headerFocusedForeground |
Focused foreground |
headerSelectedBackground |
Selected background |
headerSelectedForeground |
Selected foreground |
headerDefaultStyle |
Default header style |
headerDefaultStyleClass |
Default header style class |
headerSortedStyle |
Style of sorted header |
headerSortedStyleClass |
Style class of sorted header |
headerFocusedStyle |
Style of focused header |
headerFocusedStyleClass |
Style class of focused header |
headerSelectedStyle |
Style of selected header |
headerSelectedStyleClass |
Style class of selected header |
Note:
For example: If header is sorted, focused and selected than its resulting style is the concatenating of all defined styles:
headerDefaultStyle + headerSortedStyle + headerSelectedStyle + headerFocusedStyle.
Resulting style class in that case is blank separated style classes:
headerDefaultStyleClass headerSortedStyleClass headerFocusedStyleClass headerSelectedStyleClass
All defined style will be added to resulting style.
If header is sorted and focused than its resulting style is the concatenating of all defined styles:
headerDefaultStyle + headerSortedStyle + headerFocusedStyle.
Resulting style class in that case is blank separated style classes:
headerDefaultStyleClass headerSortedStyleClass headerFocusedStyleClass
| • | header appearance properties |
Name |
Description |
headerSortedAscImage |
Sorted ascending image URL |
headerSortedDscImage |
Sorted descending image URL |
headerSortedAscAltText |
Sorted ascending tool tip |
headerSortedDscAltText |
Sorted descending tooltip |
| • | cell appearance properties |
Name |
Description |
cellDefaultBackground |
Default background |
cellDefaultForeground |
Default foreground |
cellAltBackground |
Defines cell alternative default background. This attribute uses "cellAltStep" to get background for rows |
cellAltForeground |
Defines cell alternative default foreground This attribute uses "cellAltStep" to get background for rows |
cellAltStep |
This attribute defines row step to get background and foreground colors ( default or alternative ). Default value is 1. Negative or zero value set colors the same for all rows |
cellAltType |
This attribute defines type of alternative color schema. Values: HORIZONTAL, VERTICAL, CUSTOM. Default value is HORIZONTAL. |
cellFocusedBackground |
Defines background when mouse is over any cell |
cellFocusedForeground |
Defines foreground when mouse is over any cell |
cellEditedBackground |
Defines cell background if cell is in edit mode |
cellEditedForeground |
Defines cell foreground if cell is in edit mode |
cellSelectedBackground |
Defines cell background if current column or row is selected. |
cellSelectedForeground |
Defines cell foreground if current column or row is selected |
cellDefaultStyle |
Default cell style |
cellDefaultStyleClass |
Default cell style class |
cellFocusedStyle |
Defines cell style when mouse is over any cell |
cellFocusedStyleClass |
Defines cell style class when mouse is over any cell |
cellEditedStyle |
Defines cell style if cell is in edit mode |
cellEditedStyleClass |
Defines cell style class if cell is in edit mode |
cellSelectedStyle |
Defines cell style if current column is selected. |
cellSelectedStyleClass |
Defines cell style class if current column is selected. |
| • | behavior properties |
Name |
Description |
headerJScriptFunctionOnMouseOver |
This attribute allows to change default java script function that is called when a mouse is over the header. |
headerJScriptFunctionOnMouseOut |
This attribute allows to change default java script function that is called when a mouse goes out from the header. The function call syntax is " function( aColumnIndex ) ". |
headerJScriptFunctionOnClick |
This attribute allows to change default java script function that is called when a mouse clicks on the header. |
headerJScriptFunctionOnDblClick |
This attribute allows to change default java script function that is called when a mouse double clicks on the header. The function call syntax is " function( aColumnIndex ) " |
cellJScriptFunctionOnMouseOver |
This attribute allows to change default java script function that is called when a mouse is over the cell. The function call syntax is " function( aRowIndex, aColumnIndex ) ". |
cellJScriptFunctionOnMouseOut |
This attribute allows to change default java script function that is called when a mouse goes out from the cell. The function call syntax is " function( aRowIndex, aColumnIndex ) ". |
cellJScriptFunctionOnClick |
This attribute allows to change default java script function that is called when a mouse clicks on the cell. The function call syntax is " function( aRowIndex, aColumnIndex ) " |
cellJScriptFunctionOnDblClick |
This attribute allows to change default java script function that is called when a mouse double clicks on the cell. The function call syntax is " function( aRowIndex, aColumnIndex ) ". |
JScriptFunctionOnDataModelChanged |
This attribute allows to change default java script function that is called when table data model on the client side was changed by the function call "table.dataModel.setValue( aRowIndex, aColumnIndex, aValue )" The function call syntax is " function( aRowIndex, aColumnIndex, aValue ) ". |
JScriptFunctionOnEditChanged |
This attribute allows to change default java script function that is called when the cell in edit mode got an event - data changed. The function call syntax is " function( aRowIndex, aColumnIndex, aValue ) ". |
JScriptFunctionOnEditFocus |
This attribute allows to change default java script function that is called when the cell in edit mode got a focus. The function call syntax is " function( aRowIndex, aColumnIndex ) ". |
JScriptFunctionOnEditBlur |
This attribute allows to change default java script function that is called when the cell in edit mode lost a focus. The function call syntax is " function( aRowIndex, aColumnIndex ) " |
| • | keyboard settings |
Name |
Description |
keyUp |
Hot key for move current hilited cell up |
keyDown |
Hot key for move current hilited cell down |
keyLeft |
Hot key for move current hilited cell left |
keyRight |
Hot key for move current hilited cell right |
keySort |
Hot key for sort current column |
keyNavigationFirst |
Hot key for move to first page of the table |
keyNavigationLast |
Hot key for move to last page of the table |
keyNavigationNext |
Hot key for move to next page of the table |
keyNavigationPrev |
Hot key for move to previouse page of the table |
keyClick |
Hot key for do single click |
keyDblClick |
Hot key for do double click |
keyEdit |
Hot key for open editor for inplace mode |
keyContextMenu |
Hot key for open context menu |