public abstract class FIXGRIDBinding<itemClass extends FIXGRIDItem> extends java.lang.Object implements IFIXGRIDBinding<itemClass>, IDynamicContentBindingObject, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
FIXGRIDBinding.Exporter
Central class providing all the export functions of the grid.
|
static class |
FIXGRIDBinding.FormattedValue |
class |
FIXGRIDBinding.ScrollHelper |
class |
FIXGRIDBinding.SortHelper |
class |
FIXGRIDBinding.TextSearcher
Class that manages the search function within the grid.
|
IFIXGRIDBinding.FIXGRIDSortInfo| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_columnsequence |
protected IFIXGRIDItem |
m_currentlyFocussedItem |
protected java.lang.String |
m_defaultColumnsequence |
protected IFIXGRIDItem |
m_firstItemForShiftSelection |
protected boolean |
m_initialized |
protected java.lang.String |
m_modcolumnwidths |
protected int |
m_numberoffooterrows |
protected int |
m_numberofheaderrows |
protected java.lang.String |
m_objectBinding |
protected IFIXGRIDItem |
m_previouslyFocussedItem |
protected int |
m_sbvalue |
protected int |
m_sbvisibleamount |
protected java.util.Set<itemClass> |
m_selectedItems |
protected java.util.Map<java.lang.String,IFIXGRIDBinding.FIXGRIDSortInfo> |
m_sortInfo |
protected FIXGRIDBinding<itemClass> |
m_this |
SORT_ASCENDING, SORT_DESCENDING, SORT_UNSORTED| Constructor and Description |
|---|
FIXGRIDBinding() |
FIXGRIDBinding(boolean changeIndexIsSupported)
Constructor which allows to switch on performance optimized data
management.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyPersistentData(IFIXGRIDPersistence.PersistentInfo pi) |
boolean |
checkIfCellsAreHighlighted()
Checks, if at least one row contains a highlighted cell.
|
boolean |
checkIfChangeIndexIsSupported()
By default no change index is supported - because this means additional
effort on application side.
|
void |
clearSortInfo()
The sort info contains the sort status of the grid columns - which then
is used to render the corresponding sort markers on client side (little arrow-
icons within the column header).
|
void |
connectWithBinding(FIXGRIDBinding binding) |
protected java.util.Comparator |
createDefaultStringComparator()
This method is called when Strings are compared and no explicit Comparator
is defined by the application.
|
protected FIXGRIDBinding.Exporter |
createExporter()
Factory method for creating exporter.
|
protected FIXGRIDBinding.ScrollHelper |
createScrollHelper()
Factory method for creating scroll helper.
|
protected FIXGRIDBinding.TextSearcher |
createTextSearcher()
Factory method to create the TextSearcher instance.
|
void |
deselectCurrentSelection()
Removes all selections from the grid.
|
void |
deselectItem(IFIXGRIDItem item)
Deselect one specific grid item.
|
void |
deselectItem(IFIXGRIDItem item,
boolean withSelectionProcessingInApplication) |
void |
deselectItemWCB(IFIXGRIDItem item,
boolean withSelectionProcessingInApplication,
boolean callConnectedBinding) |
abstract void |
ensureItemToBeDisplayed(itemClass item) |
void |
executeOnInitializedGrid(java.lang.Runnable r)
With this method you pass a
Runnable that must be executed
on an inintialized grid. |
protected void |
fillShiftSelection()
Default implementation: no shift selection, but just normal selection
|
protected java.util.Comparator |
findSortComparatorForColumnValue(java.lang.String sortReference)
Used by the default sorting: when a comparator is returned then this
one is used for comparing values.
|
boolean |
getAltPressedOfLastSelection() |
int |
getClientvisibleamount()
The amount that is visible on client side.
|
int |
getColumnIndexOfLastSelection()
With every row selection a column index is passed - indicating in which
column the selection happened on client side.
|
java.util.List<ColumnInfo> |
getColumnInfos()
Column information of the current grid.
|
java.lang.String |
getColumnsequence()
A semicolon separated string which contains the sequence of columns - in
relation to their original definition within the layout.
|
java.util.List<java.lang.String> |
getColumnTexts()
Column texts - in original order of columns.
|
FIXGRIDBinding |
getConnectedBinding() |
boolean |
getCtrlPressedOfLastSelection() |
IFIXGRIDPersistence.PersistentInfo |
getCurrentColumWdithSequenceInfo()
Returns an object holding the current column sequence and column widths.
|
int |
getCurrentHorizontalScrollPosition()
Returns the current horizontal scroll position of the grid.
|
java.lang.String |
getDefaultColumnsequence()
|
java.util.List<ColumnInfo> |
getExportableColumns()
By default all the columns that are visible to the user are part of
the export data.
|
java.util.List<ColumnInfo> |
getExportableColumns(boolean includeConnectedBinding) |
FIXGRIDBinding.Exporter |
getExporter()
Exporter instance is responsible for all export aspects (export
to csv, xml, pdf, ...).
|
protected IFIXGRIDComponentAbstraction |
getFixgridComponent() |
int |
getIndextobevisibleOfItems() |
protected java.util.List<itemClass> |
getListOfExportItems()
Returns all items of the current grid which are exported by the
FIXGRIDBinding.Exporter. |
protected abstract java.util.List<itemClass> |
getListOfItems()
Returns all items of the current grid in the sequence of their
visual appearance.
|
java.lang.String |
getModcolumnwidths()
The user is allowed to resize columns.
|
java.lang.String[] |
getModcolumnwidthsAsArray()
Same as
getModcolumnwidths() - but now returning the modified widths
of columns as String-array. |
int |
getMouseButtonOfLastSelection() |
int |
getNewClientHorizontalScrollPosition() |
itemClass |
getObjecttobevisibleOfItems() |
java.lang.String |
getOriginalcolumnwidths()
Same as
getOriginalcolumnwidthsAsArray() - but now return the
result as semicolon separated value string. |
java.lang.String[] |
getOriginalcolumnwidthsAsArray()
Returns the widths of the columns as defined in the .jsp/component definition.
|
FIXGRIDComponentDetailUtil |
getRowDataUI()
Internal use only.
|
int |
getSbvalue()
This is the top index which is displayed on client side.
|
int |
getSbvisibleamount()
The "sbvisibleamount" as defined in the layout.
|
FIXGRIDBinding.ScrollHelper |
getScrollHelper()
Utility class for explicit scroll operations, that can be e.g.
|
itemClass |
getSelectedItem()
Returns one selected item.
|
java.util.Set<itemClass> |
getSelectedItems()
Returns all selected items which are highlighted to the user.
|
boolean |
getShiftPressedOfLastSelection() |
java.util.Map<java.lang.String,IFIXGRIDBinding.FIXGRIDSortInfo> |
getSortInfo()
Returns sort information for columns.
|
IFIXGRIDBinding.FIXGRIDSortInfo |
getSortInfoForReference(java.lang.String sortReference)
Access to sort info for a sort reference.
|
FIXGRIDBinding.TextSearcher |
getTextSearcher()
TextSearcher instance is responsible for text search within
gird processing.
|
FIXGRIDItem |
getToBeAccessedNode()
Internal use only.
|
protected java.lang.String |
getToBeAccessedNodeExpression(java.lang.String sortReference)
Internal use only.
|
protected java.lang.String |
getToBeAccessedNodeFormatmaskValue(ColumnInfo ci,
java.lang.String nodeExpression)
By default the formatmask value is derived from the control that is directly
arranged within the GRIDCOL component.
|
protected FIXGRIDBinding.FormattedValue |
getToBeAccessedNodeFormattedValue(ColumnInfo ci) |
protected java.lang.String |
getToBeAccessedNodeFormatValue(ColumnInfo ci,
java.lang.String nodeExpression)
By default the format value is derived from the control that is directly
arranged within the GRIDCOL component.
|
protected java.lang.String |
getToBeAccessedNodeStringValue(ColumnInfo ci,
java.lang.String nullValue,
boolean asDisplayString) |
protected java.lang.String |
getToBeAccessedNodeTimezoneValue(ColumnInfo ci,
java.lang.String nodeExpression)
By default the time zone value is derived from the control that is directly
arranged within the GRIDCOL component.
|
protected java.lang.Object |
getToBeAccessedNodeValue(java.lang.String sortReference)
This function retrieves the value for a given expression...
|
java.util.List<ColumnInfo> |
getVisibleColumns()
Returns back a list of all the columns that are currenlty visible
to the user.
|
java.util.List<ColumnInfo> |
getVisibleColumns(boolean includeConnectedBinding) |
static void |
init_CONTENTTYPE_EXPORT_CSV(java.lang.String value)
Initialization: content type that is used for CSV export.
|
static void |
init_CONTENTTYPE_EXPORT_PDF(java.lang.String value)
Initialization: content type that is used for PDF export.
|
static void |
init_CONTENTTYPE_EXPORT_XLSX(java.lang.String value)
Initialization: content type that is used for XLSX export.
|
static void |
init_CONTENTTYPE_EXPORT_XML(java.lang.String value)
Initialization: content type that is used for XML export.
|
void |
initialize()
This method is called one time - after the grid is first time contacted
by the server side FIXGRID component.
|
static void |
initPopupEditColumnDetailsUndecorated(boolean value)
Initialization: decision if column detail popup is opened in undecorated or decorated mode.
|
static void |
initPopupGridFunctionsUndecorated(boolean value)
Initialization: decision if grid functions popup is opened in undecorated or decorated mode.
|
static void |
initTextSearcherShowSearchInfoPopup(boolean value)
Initialization: decision if to show messages during the text search by opening an OK-popup.
|
boolean |
isCurrentlyProcessingGridAction()
Indicates that the grid is just processing an action (e.g. scrolling, row
selection, etc.).
|
boolean |
isInitialized() |
boolean |
isItemSelected()
Returns true if at least one item is selected
|
protected void |
moveUpDown(int diff,
boolean withRowShiftSelect) |
void |
onClearCellHighlight(ActionEvent event)
Removing highlight from all grid items.
|
protected void |
onColumnSequenceUpdated()
This method is called whenever the column sequence is updated - either
due to user or to internal operations.
|
protected void |
onColumnWidthsUpdated()
This method is called whenever the column sequence is updated - either
due to user operation or due to internal processing.
|
protected void |
onDrop(BaseActionEventDrop dropEvent)
This method is called by the onGridAction method when a drop happens
on grid level. - Override in order to add your own processing.
|
void |
onEditColumnDetails(ActionEvent ae)
Method that can be bound as action listener in order to open up
a popup in which the user can maintain the sequence of columns.
|
protected void |
onFirstLineUp(BaseActionEventGridFirstLineUp event)
This method is called when the user presses cursor-up in within the first grid
item.
|
void |
onGridAction(ActionEvent event)
This is the central method for processing all events for a grid that are coming
from the user interface client.
|
protected void |
onGridActionExecute(ActionEvent event)
This method is the one that processes all default logic that is associated with a
grid event.
|
protected void |
onLastLineDown(BaseActionEventGridLastLineDown event)
This method is called when the user presses cursor-down within the last grid
item. - Override in order to add your own processing.
|
void |
onOpenGridExportFunctions(ActionEvent ae)
Default method that can be directly bound e.g. to some button.
|
void |
onOpenGridFunctions(ActionEvent ae)
Default method that can be directly bound e.g. to some button.
|
protected void |
onPopupMenuItem(BaseActionEventPopupMenuItem popupMenuItemEvent)
This method is called by the onGridAction mehtod when a popup menu item
was executed on grid level. - Override in order to add your own processing.
|
protected void |
onPopupMenuLoad(BaseActionEventPopupMenuLoad popupMenuLoadEvent)
This method is called by the onGridAction mehtod when a popup menu item
is loaded on grid level.
|
protected void |
onSelectionUpdateByClientActivity()
This method is called every time when the grid selection was updated due to
a client activity (e.g. selection of the user).
|
void |
onSelectorTitleIconInvoked(BaseActionEventGridSelectorTitleIcon event)
This method is called when the grid has a selector title icon and when the user presses
the icon. - Override in order to add your own processing.
|
protected ModelessPopup |
openEditColumnDetailsPopup()
Method for opening the default popup for editing column details.
|
protected ModelessPopup |
openGridExportFunctionsPopup()
Method for opening the default popup for grid export functions.
|
protected ModelessPopup |
openGridFunctionsPopup()
Method for opening the default popup for showing grid functions.
|
void |
passComponentData(java.lang.String objectBinding,
IFIXGRIDComponentAbstraction fixgridComponent)
Internal use.
|
protected void |
processMultipleSort()
This is the "default" sorting of the grid - while
sortGrid(String, String, boolean)
is the sorting by an individual column. |
protected void |
processMultipleSort(java.lang.String sortReference) |
protected void |
processSearch(java.lang.String searchString,
java.lang.String sortReference)
Search for a certain grid item within the grid.
|
protected void |
processSort(java.lang.String sortReference)
Sort the grid.
|
void |
renderingBegins()
This method is called with each request processing - at the beginning of the processing.
|
void |
resort()
Resorts the grid according to the last sorting.
|
void |
scrollHorizontallyToLastClientPosition() |
void |
scrollHorizontallyToPosition(int value) |
void |
selectAndFocusItem(itemClass item)
Selects an item, ensures that it is visible and requests
the client side focus to be moved into the item.
|
void |
selectItem(IFIXGRIDItem item)
Allows to select an item in the same way as an item is selected
from the user interface: i.e. event handlers are called.
|
void |
selectItem(IFIXGRIDItem item,
boolean withSelectionProcessingInApplication)
Selects an item.
|
void |
setClientvisibleamount(int value)
Internal use.
|
void |
setColumnIndexOfLastSelection(int value)
Internal use only.
|
void |
setColumnIndexOfLastSelection(int value,
boolean shiftPressed,
boolean ctrlPressed,
boolean altPressed,
int mouseButton)
Internal use only.
|
void |
setColumnsequence(java.lang.String value)
Sets the sequence of columns that you want to see within the client.
|
void |
setCurrentHorizontalScrollPosition(int currentHorizontalScrollPosition)
With every roundtrip the grid passes its current horizontal scroll position to the server side.
|
void |
setCurrentlyProcessingGridAction(boolean currentlyProcessingGridAction) |
void |
setDefaultColumnsequence(java.lang.String value)
Sets a column sequence that is treated as the "default column" sequence.
|
void |
setIndextobevisibleOfItems(int index) |
void |
setModcolumnwidth(int columnIndex,
java.lang.String width)
Modifies the width of one column.
|
void |
setModcolumnwidths(java.lang.String value)
Internal use only.
|
void |
setModcolumnwidthsArray(java.lang.String[] widths)
When a grid is rendered then the columns widths by default are taken from
the GRIDCOL-WIDTH definition.
|
void |
setModcolumnwidthsList(java.util.List<java.lang.String> widths)
|
void |
setObjecttobevisibleOfItems(itemClass item) |
void |
setSbvalue(int value)
Sets the top index of the grid.
|
void |
setSbvalue(int value,
boolean callConnectedBinding) |
void |
setSbvalue(java.lang.String value)
See
setSbvalue(int). |
void |
setSbvisibleamount(int value)
Internal use only.
|
protected void |
setToBeAccessedNode(FIXGRIDItem node) |
void |
sort(java.lang.String sortReference,
boolean ascending)
Sorts the column - by using exactly the same sort procedure that is used
when executing a sort that is triggered by the user interface.
|
protected abstract void |
sortGrid(java.lang.String sortReference,
java.lang.String objectBindingString,
boolean ascending)
Actual sorting of grid.
|
protected void |
storePersistentData()
Stores the current configuraion of the grid (column sequence, column widths, optionally:
sort status).
|
protected void |
storePersistentDataImplicitly()
This method is called internally whenever a structural change to the grid
is done (re-arrangement of columns, resiziing of columns, sorting).
|
void |
unhighlightAllCells() |
protected void |
updateHighlight(IFIXGRIDItem item,
BaseActionEventGridRowSelect event)
This method is invoked if the user updates the highlight selection on client side.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRows, getSbmaximumprotected FIXGRIDBinding<itemClass extends FIXGRIDItem> m_this
protected int m_sbvisibleamount
protected int m_sbvalue
protected int m_numberofheaderrows
protected int m_numberoffooterrows
protected IFIXGRIDItem m_currentlyFocussedItem
protected IFIXGRIDItem m_previouslyFocussedItem
protected IFIXGRIDItem m_firstItemForShiftSelection
protected java.util.Set<itemClass extends FIXGRIDItem> m_selectedItems
protected java.lang.String m_columnsequence
protected java.lang.String m_defaultColumnsequence
protected java.lang.String m_modcolumnwidths
protected java.util.Map<java.lang.String,IFIXGRIDBinding.FIXGRIDSortInfo> m_sortInfo
protected java.lang.String m_objectBinding
protected boolean m_initialized
public FIXGRIDBinding()
public FIXGRIDBinding(boolean changeIndexIsSupported)
FIXGRIDItem.getChangeIndex().
If the change index is the same, then the items is treated as unchanged item. -
The change index must be explicitly updated by the application in case of data changes, calling
the method IChangeIndex.indicateChange().protected java.util.Comparator createDefaultStringComparator()
public int getNewClientHorizontalScrollPosition()
getNewClientHorizontalScrollPosition in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void scrollHorizontallyToPosition(int value)
public void scrollHorizontallyToLastClientPosition()
public boolean isCurrentlyProcessingGridAction()
public void setCurrentlyProcessingGridAction(boolean currentlyProcessingGridAction)
public static void initPopupEditColumnDetailsUndecorated(boolean value)
public static void initPopupGridFunctionsUndecorated(boolean value)
public static void initTextSearcherShowSearchInfoPopup(boolean value)
public static void init_CONTENTTYPE_EXPORT_CSV(java.lang.String value)
public static void init_CONTENTTYPE_EXPORT_XML(java.lang.String value)
public static void init_CONTENTTYPE_EXPORT_PDF(java.lang.String value)
public static void init_CONTENTTYPE_EXPORT_XLSX(java.lang.String value)
public void executeOnInitializedGrid(java.lang.Runnable r)
Runnable that must be executed
on an inintialized grid. If the grid is already initialized then the
instance is executed immediately. If the grid is not yet initialized
then the instance if parked within the grid, and executed at the
point of time when the grid is initialized.public boolean isInitialized()
public void setIndextobevisibleOfItems(int index)
setIndextobevisibleOfItems in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public int getIndextobevisibleOfItems()
getIndextobevisibleOfItems in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void setObjecttobevisibleOfItems(itemClass item)
setObjecttobevisibleOfItems in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public itemClass getObjecttobevisibleOfItems()
getObjecttobevisibleOfItems in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public FIXGRIDBinding getConnectedBinding()
getConnectedBinding in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void connectWithBinding(FIXGRIDBinding binding)
public boolean getAltPressedOfLastSelection()
public boolean getCtrlPressedOfLastSelection()
public boolean getShiftPressedOfLastSelection()
public int getMouseButtonOfLastSelection()
public void setCurrentHorizontalScrollPosition(int currentHorizontalScrollPosition)
setCurrentHorizontalScrollPosition in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public int getCurrentHorizontalScrollPosition()
public int getColumnIndexOfLastSelection()
public void setColumnIndexOfLastSelection(int value)
setColumnIndexOfLastSelection in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void setColumnIndexOfLastSelection(int value,
boolean shiftPressed,
boolean ctrlPressed,
boolean altPressed,
int mouseButton)
setColumnIndexOfLastSelection in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public FIXGRIDComponentDetailUtil getRowDataUI()
public FIXGRIDItem getToBeAccessedNode()
protected void setToBeAccessedNode(FIXGRIDItem node)
protected java.lang.String getToBeAccessedNodeExpression(java.lang.String sortReference)
protected java.lang.Object getToBeAccessedNodeValue(java.lang.String sortReference)
protected FIXGRIDBinding.FormattedValue getToBeAccessedNodeFormattedValue(ColumnInfo ci)
protected java.lang.String getToBeAccessedNodeStringValue(ColumnInfo ci,
java.lang.String nullValue,
boolean asDisplayString)
ci - Column info of the column that is just investicated.nullValue - Value that is returend if the cell value is null.asDisplayString - true ==> nice formatting of string, false ==> no formatting but native format ==>
usable for sorting etc.protected java.lang.String getToBeAccessedNodeFormatValue(ColumnInfo ci,
java.lang.String nodeExpression)
protected java.lang.String getToBeAccessedNodeFormatmaskValue(ColumnInfo ci,
java.lang.String nodeExpression)
protected java.lang.String getToBeAccessedNodeTimezoneValue(ColumnInfo ci,
java.lang.String nodeExpression)
public FIXGRIDBinding.TextSearcher getTextSearcher()
protected FIXGRIDBinding.TextSearcher createTextSearcher()
public FIXGRIDBinding.Exporter getExporter()
protected FIXGRIDBinding.Exporter createExporter()
public FIXGRIDBinding.ScrollHelper getScrollHelper()
protected FIXGRIDBinding.ScrollHelper createScrollHelper()
public void passComponentData(java.lang.String objectBinding,
IFIXGRIDComponentAbstraction fixgridComponent)
passComponentData in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void applyPersistentData(IFIXGRIDPersistence.PersistentInfo pi)
protected void storePersistentDataImplicitly()
storePersistentData()
explicitly.protected void storePersistentData()
public IFIXGRIDPersistence.PersistentInfo getCurrentColumWdithSequenceInfo()
IFIXGRIDPersistence
and/or IFIXGRIDPersistence2).public void initialize()
public java.util.Set<itemClass> getSelectedItems()
public itemClass getSelectedItem()
public void setSbvisibleamount(int value)
setSbvisibleamount in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public int getSbvisibleamount()
getClientvisibleamount()
in order to check the number of row items that are visible on clientside.getSbvisibleamount in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void setSbvalue(int value)
public void setSbvalue(int value,
boolean callConnectedBinding)
public void setSbvalue(java.lang.String value)
setSbvalue(int).setSbvalue in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public int getSbvalue()
getSbvalue in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void setClientvisibleamount(int value)
setClientvisibleamount in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public int getClientvisibleamount()
getSbvisibleamount()
but due to size restrictions or to not being fully filled
with items also may contain less items.
getSbvisibleamount().getClientvisibleamount in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void setColumnsequence(java.lang.String value)
setColumnsequence in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>protected void onColumnSequenceUpdated()
public void setDefaultColumnsequence(java.lang.String value)
public java.lang.String getColumnsequence()
getColumnsequence in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.lang.String getDefaultColumnsequence()
public void setModcolumnwidths(java.lang.String value)
#setModcolumnwidths(String[]).setModcolumnwidths in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>protected void onColumnWidthsUpdated()
public java.lang.String getModcolumnwidths()
getModcolumnwidths in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.lang.String[] getModcolumnwidthsAsArray()
getModcolumnwidths() - but now returning the modified widths
of columns as String-array. If the user did not modify the columns widths then
null is returned.public java.lang.String[] getOriginalcolumnwidthsAsArray()
getColumnInfos() you get more details
about the grid's columns structure.public java.lang.String getOriginalcolumnwidths()
getOriginalcolumnwidthsAsArray() - but now return the
result as semicolon separated value string.public void setModcolumnwidthsArray(java.lang.String[] widths)
public void setModcolumnwidth(int columnIndex,
java.lang.String width)
public void setModcolumnwidthsList(java.util.List<java.lang.String> widths)
setModcolumnwidthsArray(String[]). Now the widths are passed
as List of String instances.public void onGridAction(ActionEvent event)
onGridActionExecute(ActionEvent) is called.
In cases you do not want to catch all errors, you may override onGridAction and directly
call onGridActionExecute(ActionEvent). As result, all errors in this scenario
are passed to the normal (optional) error management that is calling the onApplicationError(...)
method.protected void onGridActionExecute(ActionEvent event)
public void onSelectorTitleIconInvoked(BaseActionEventGridSelectorTitleIcon event)
protected void onLastLineDown(BaseActionEventGridLastLineDown event)
protected void onFirstLineUp(BaseActionEventGridFirstLineUp event)
protected void onDrop(BaseActionEventDrop dropEvent)
protected void onPopupMenuItem(BaseActionEventPopupMenuItem popupMenuItemEvent)
protected void onSelectionUpdateByClientActivity()
protected void onPopupMenuLoad(BaseActionEventPopupMenuLoad popupMenuLoadEvent)
protected void updateHighlight(IFIXGRIDItem item, BaseActionEventGridRowSelect event)
protected abstract java.util.List<itemClass> getListOfItems()
protected java.util.List<itemClass> getListOfExportItems()
FIXGRIDBinding.Exporter.
By default the content items of the grid are returned by internally delegating to
getListOfItems(). But you may override if the exported items should be different
to the ones that are contained within the grid.
public void deselectCurrentSelection()
public void selectItem(IFIXGRIDItem item)
public void selectAndFocusItem(itemClass item)
public void selectItem(IFIXGRIDItem item, boolean withSelectionProcessingInApplication)
withSelectionProcessingInApplication - If set to true then the normal selection processing is executed - just as
if the item was selected by the user within the user interface client. This is
the same as calling the selectItem(item) method without the extra boolean
parameter.
public void deselectItem(IFIXGRIDItem item)
public void deselectItem(IFIXGRIDItem item, boolean withSelectionProcessingInApplication)
withSelectionProcessingInApplication - If set to false then no method "onRowDeselect" will NOT be called on de-selection.public void deselectItemWCB(IFIXGRIDItem item, boolean withSelectionProcessingInApplication, boolean callConnectedBinding)
public boolean checkIfChangeIndexIsSupported()
checkIfChangeIndexIsSupported in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.util.Map<java.lang.String,IFIXGRIDBinding.FIXGRIDSortInfo> getSortInfo()
getSortInfo in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void clearSortInfo()
public IFIXGRIDBinding.FIXGRIDSortInfo getSortInfoForReference(java.lang.String sortReference)
getSortInfoForReference in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>sortReference - Value of the sort reference without any expression prefix / postfix. If the
SORTREFERENCE is defined to be ".{lastName}" then the value you have to pass
is "lastName".public void sort(java.lang.String sortReference,
boolean ascending)
public void resort()
public void renderingBegins()
renderingBegins in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public void onEditColumnDetails(ActionEvent ae)
protected ModelessPopup openEditColumnDetailsPopup()
public void onOpenGridFunctions(ActionEvent ae)
public void onOpenGridExportFunctions(ActionEvent ae)
protected ModelessPopup openGridExportFunctionsPopup()
protected ModelessPopup openGridFunctionsPopup()
public java.util.List<java.lang.String> getColumnTexts()
public java.util.List<ColumnInfo> getColumnInfos()
public abstract void ensureItemToBeDisplayed(itemClass item)
public boolean isItemSelected()
public java.util.List<ColumnInfo> getVisibleColumns()
getVisibleColumns in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.util.List<ColumnInfo> getVisibleColumns(boolean includeConnectedBinding)
getVisibleColumns in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.util.List<ColumnInfo> getExportableColumns()
getExportableColumns in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>public java.util.List<ColumnInfo> getExportableColumns(boolean includeConnectedBinding)
getExportableColumns in interface IFIXGRIDBinding<itemClass extends FIXGRIDItem>protected void fillShiftSelection()
protected void moveUpDown(int diff,
boolean withRowShiftSelect)
protected void processMultipleSort(java.lang.String sortReference)
protected void processMultipleSort()
sortGrid(String, String, boolean)
is the sorting by an individual column.protected void processSort(java.lang.String sortReference)
sortReference - The implicitly or explicitly defined value of the SORTREFERENCE
attribute of the corresponding GRIDCOL component. The value is
to be passed without expression-prefix and -postfix. This means:
the SORTREFERENCE value ".{lastName}" is passed as "lastName".protected void processSearch(java.lang.String searchString,
java.lang.String sortReference)
protected abstract void sortGrid(java.lang.String sortReference,
java.lang.String objectBindingString,
boolean ascending)
protected java.util.Comparator findSortComparatorForColumnValue(java.lang.String sortReference)
public void onClearCellHighlight(ActionEvent event)
public boolean checkIfCellsAreHighlighted()
public void unhighlightAllCells()
protected IFIXGRIDComponentAbstraction getFixgridComponent()
Copyright © CaptainCasa Gmbh. All Rights Reserved.