Class FIXGRIDItem
java.lang.Object
org.eclnt.jsfserver.elements.impl.FIXGRIDItem
- All Implemented Interfaces:
Serializable
,IFIXGRIDItem
- Direct Known Subclasses:
ARRAYGRIDItem
,DynBeanUI.GridItem
,FIXGRIDBeanItem
,FIXGRIDPivotItem
,FIXGRIDTreeItem
,GridDetails.ColumnItem
,IdAttributesSelection.IdAttributesLine
,IdTextSelection.IdTextLine
,ImageSelection.MyRow
,LogViewer.AllGridItem
,LogViewer.FileGridItem
,ProfilingViewer.ProfilingFilesItem
,ProfilingViewer.ProfilingGridItem
,ROWTLCOCKPITBinding.TlgridItem
,SPANGRIDItem
,Wizard.MyRow
,WorkplaceFunctionSearchUI.GridItem
,WorkplacePerspectiveManager.PerspectiveGridItem
Base class for all items that are added into a FIXGRIDListBinding's
item processing.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignRowComponent
(javax.faces.component.UIComponent rowComponent) Default implementation => do nothing.boolean
checkIfCellIsHighlighted
(int cellIndex) Deprecated.boolean
Deprecated.Change index management.Cell Selection: indices of all cells that are highlighted.int
The original index is used for sorting a grid in a triple way.long
Information for client, if this row wants to receive the client side focus.int
By default the row height of a row item is defined by the ROWHEIGHT attribute of the FIXGRID component.boolean
Check if the item is selected.void
highlightCell
(int cellIndex) Deprecated.void
Reaction on row selections in the client.void
onRowDrop
(BaseActionEventDrop event) Reaction when the user drops onto the row.void
Reaction on row executions in the client (double click, return key selection).void
Reaction when the use selects a popup menu item on row level.void
Reaction when the use presses right click on row level.void
Reaction on row selections in the client.void
Request the client side focus for this row.void
setOriginalIndex
(int originalIndex) void
setRowHeight
(int rowHeight) void
setSelected
(boolean value) Deprecated.void
Deprecated.void
unhighlightCell
(int cellIndex) Deprecated.void
void
updateSelectedInternally
(boolean value) Internal use only.
-
Field Details
-
ROWHEIGHT_DEFAULT
public static final int ROWHEIGHT_DEFAULT- See Also:
-
-
Constructor Details
-
FIXGRIDItem
public FIXGRIDItem()
-
-
Method Details
-
getRowHeight
public int getRowHeight()By default the row height of a row item is defined by the ROWHEIGHT attribute of the FIXGRID component. You can assign eplicit individual row heights by using this method.
The default value isROWHEIGHT_DEFAULT
. -
setRowHeight
public void setRowHeight(int rowHeight) -
setSelected
Deprecated.Internal use only.
Do not set the selection directly on item level. Use methodFIXGRIDBinding.selectItem(IFIXGRIDItem)
orFIXGRIDBinding.selectItem(IFIXGRIDItem)
to do so.- Specified by:
setSelected
in interfaceIFIXGRIDItem
-
updateSelectedInternally
public void updateSelectedInternally(boolean value) Internal use only.- Specified by:
updateSelectedInternally
in interfaceIFIXGRIDItem
-
getSelected
public boolean getSelected()Check if the item is selected. Please note: there are methods in FIXGRIDBinding (e.g.FIXGRIDBinding.getSelectedItem()
) that simplify the search for selected items as well.- Specified by:
getSelected
in interfaceIFIXGRIDItem
-
onRowSelect
public void onRowSelect()Reaction on row selections in the client. Override this method for specific reactions.- Specified by:
onRowSelect
in interfaceIFIXGRIDItem
-
onRowDeselect
public void onRowDeselect()Reaction on row selections in the client. Override this method for specific reactions.- Specified by:
onRowDeselect
in interfaceIFIXGRIDItem
-
onRowExecute
public void onRowExecute()Reaction on row executions in the client (double click, return key selection).- Specified by:
onRowExecute
in interfaceIFIXGRIDItem
-
onRowDrop
Reaction when the user drops onto the row. Prerequisite: FIXGRID-ROWDROPRECEIVE must be defined.- Specified by:
onRowDrop
in interfaceIFIXGRIDItem
-
onRowPopupMenuItem
Reaction when the use selects a popup menu item on row level. Prerequisite: FIXGRID-ROWPOPUPMENU must be defined.- Specified by:
onRowPopupMenuItem
in interfaceIFIXGRIDItem
-
onRowPopupMenuLoad
Reaction when the use presses right click on row level. Prerequisite: FIXGRID-ROWPOPUPMENULOADROUNDTRIP must be set to true in the layout definition.- Specified by:
onRowPopupMenuLoad
in interfaceIFIXGRIDItem
-
getChangeIndex
Change index management. Using the change index management you can achieve significant server side and client side performance enhancements. This method is only used when the corresponding grid (FIXGRIDBinding
) return "true" within the method -
getHighlightedCells
Cell Selection: indices of all cells that are highlighted. Do not manipulate this set directly but use the functionshighlightCell(int)
orunhighlightCell(int)
. -
getRequestFocus
public long getRequestFocus()Information for client, if this row wants to receive the client side focus.- Specified by:
getRequestFocus
in interfaceIFIXGRIDItem
-
requestFocus
public void requestFocus()Request the client side focus for this row. This method should not be directly called by an application - the application should useFIXGRIDBinding.selectAndFocusItem(FIXGRIDItem)
. Calling this function ensures that focus and selection are in synch. Otherwise it might happen that you select a certain row, but put the focus into a different one, which is quite confusing for the user.- Specified by:
requestFocus
in interfaceIFIXGRIDItem
-
unrequestFocus
public void unrequestFocus()- Specified by:
unrequestFocus
in interfaceIFIXGRIDItem
-
highlightCell
Deprecated.Highlights a cell within the item. The cellIndex is the index of the column within the FIXGRID definition. -
unhighlightCell
Deprecated.Un-highlight cell. The cellIndex is the index of the column within the FIXGRID definition. -
unhighlightAllCells
Deprecated.Clears all highlighting for this item. -
checkIfCellsAreHighlighted
Deprecated.Checks if there is at least one cell that is highlighted. -
checkIfCellIsHighlighted
Deprecated.Checks if a certain cell is highlighted - cellIndex is the index of the corresponding colum within the FIXGRID definition. -
assignRowComponent
public void assignRowComponent(javax.faces.component.UIComponent rowComponent) Default implementation => do nothing.- Specified by:
assignRowComponent
in interfaceIFIXGRIDItem
-
getOriginalIndex
public int getOriginalIndex()The original index is used for sorting a grid in a triple way. It contains the position of the item when laoding the grid - which is then used to sort back to status "unsorted". -
setOriginalIndex
public void setOriginalIndex(int originalIndex)
-