public class FIXGRIDItem extends java.lang.Object implements IFIXGRIDItem, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
ROWHEIGHT_DEFAULT |
| Constructor and Description |
|---|
FIXGRIDItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignRowComponent(UIComponent rowComponent)
Default implementation => do nothing.
|
boolean |
checkIfCellIsHighlighted(int cellIndex)
Checks if a certain cell is highlighted - cellIndex is the
index of the corresponding colum within the FIXGRID definition.
|
boolean |
checkIfCellsAreHighlighted()
Checks if there is at least one cell that is highlighted.
|
IChangeIndex |
getChangeIndex()
Change index management.
|
java.util.Set<java.lang.Integer> |
getHighlightedCells()
Cell Selection: indices of all cells that are highlighted.
|
long |
getRequestFocus()
Information for client, if this row wants to receive the client side
focus.
|
int |
getRowHeight()
By default the row height of a row item is defined by the ROWHEIGHT attribute
of the FIXGRID component.
|
boolean |
getSelected()
Check if the item is selected.
|
void |
highlightCell(int cellIndex)
Highlights a cell within the item.
|
void |
onRowDeselect()
Reaction on row selections in the client.
|
void |
onRowDrop(BaseActionEventDrop event)
Reaction when the user drops onto the row.
|
void |
onRowExecute()
Reaction on row executions in the client (double click, return
key selection).
|
void |
onRowPopupMenuItem(BaseActionEventPopupMenuItem event)
Reaction when the use selects a popup menu item on row level.
|
void |
onRowPopupMenuLoad(BaseActionEventPopupMenuLoad event)
Reaction when the use presses right click on row level.
|
void |
onRowSelect()
Reaction on row selections in the client.
|
void |
requestFocus()
Request the client side focus for this row.
|
void |
setRowHeight(int rowHeight) |
void |
setSelected(boolean value)
Do not set the selection direclty on item level.
|
void |
unhighlightAllCells()
Clears all highlighting for this item.
|
void |
unhighlightCell(int cellIndex)
Un-highlight cell.
|
void |
unrequestFocus() |
public static final int ROWHEIGHT_DEFAULT
public int getRowHeight()
ROWHEIGHT_DEFAULT.public void setRowHeight(int rowHeight)
public void setSelected(boolean value)
FIXGRIDBinding.selectItem(IFIXGRIDItem) or
FIXGRIDBinding.selectItem(IFIXGRIDItem) to do so.setSelected in interface IFIXGRIDItempublic boolean getSelected()
FIXGRIDBinding.getSelectedItem()) that
simplify the search for selected items as well.getSelected in interface IFIXGRIDItempublic void onRowSelect()
onRowSelect in interface IFIXGRIDItempublic void onRowDeselect()
onRowDeselect in interface IFIXGRIDItempublic void onRowExecute()
onRowExecute in interface IFIXGRIDItempublic void onRowDrop(BaseActionEventDrop event)
onRowDrop in interface IFIXGRIDItempublic void onRowPopupMenuItem(BaseActionEventPopupMenuItem event)
onRowPopupMenuItem in interface IFIXGRIDItempublic void onRowPopupMenuLoad(BaseActionEventPopupMenuLoad event)
onRowPopupMenuLoad in interface IFIXGRIDItempublic IChangeIndex getChangeIndex()
FIXGRIDBinding)
return "true" within the methodpublic java.util.Set<java.lang.Integer> getHighlightedCells()
highlightCell(int) or
unhighlightCell(int).public long getRequestFocus()
getRequestFocus in interface IFIXGRIDItempublic void requestFocus()
FIXGRIDBinding.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.requestFocus in interface IFIXGRIDItempublic void unrequestFocus()
unrequestFocus in interface IFIXGRIDItempublic void highlightCell(int cellIndex)
public void unhighlightCell(int cellIndex)
public void unhighlightAllCells()
public boolean checkIfCellsAreHighlighted()
public boolean checkIfCellIsHighlighted(int cellIndex)
public void assignRowComponent(UIComponent rowComponent)
assignRowComponent in interface IFIXGRIDItemCopyright © CaptainCasa Gmbh. All Rights Reserved.