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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignRowComponent(UIComponent rowComponent) Default implementation => do nothing.booleancheckIfCellIsHighlighted(int cellIndex) Deprecated.booleanDeprecated.Change index management.Cell Selection: indices of all cells that are highlighted.intThe original index is used for sorting a grid in a triple way.longInformation for client, if this row wants to receive the client side focus.intBy default the row height of a row item is defined by the ROWHEIGHT attribute of the FIXGRID component.booleanCheck if the item is selected.voidhighlightCell(int cellIndex) Deprecated.voidReaction on row selections in the client.voidonRowDrop(BaseActionEventDrop event) Reaction when the user drops onto the row.voidReaction on row executions in the client (double click, return key selection).voidReaction when the use selects a popup menu item on row level.voidReaction when the use presses right click on row level.voidReaction on row selections in the client.voidRequest the client side focus for this row.voidsetOriginalIndex(int originalIndex) voidsetRowHeight(int rowHeight) voidsetSelected(boolean value) Deprecated.voidDeprecated.voidunhighlightCell(int cellIndex) Deprecated.voidvoidupdateSelectedInternally(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:
setSelectedin interfaceIFIXGRIDItem
-
updateSelectedInternally
public void updateSelectedInternally(boolean value) Internal use only.- Specified by:
updateSelectedInternallyin 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:
getSelectedin interfaceIFIXGRIDItem
-
onRowSelect
public void onRowSelect()Reaction on row selections in the client. Override this method for specific reactions.- Specified by:
onRowSelectin interfaceIFIXGRIDItem
-
onRowDeselect
public void onRowDeselect()Reaction on row selections in the client. Override this method for specific reactions.- Specified by:
onRowDeselectin interfaceIFIXGRIDItem
-
onRowExecute
public void onRowExecute()Reaction on row executions in the client (double click, return key selection).- Specified by:
onRowExecutein interfaceIFIXGRIDItem
-
onRowDrop
Reaction when the user drops onto the row. Prerequisite: FIXGRID-ROWDROPRECEIVE must be defined.- Specified by:
onRowDropin interfaceIFIXGRIDItem
-
onRowPopupMenuItem
Reaction when the use selects a popup menu item on row level. Prerequisite: FIXGRID-ROWPOPUPMENU must be defined.- Specified by:
onRowPopupMenuItemin 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:
onRowPopupMenuLoadin 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:
getRequestFocusin 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:
requestFocusin interfaceIFIXGRIDItem
-
unrequestFocus
public void unrequestFocus()- Specified by:
unrequestFocusin 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
Default implementation => do nothing.- Specified by:
assignRowComponentin 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)
-