Class FIXGRIDBeanListBinding<T>
java.lang.Object
org.eclnt.jsfserver.elements.impl.FIXGRIDBinding<ItemClass>
org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<FIXGRIDBeanItem<T>>
org.eclnt.jsfserver.elements.util.FIXGRIDBeanListBinding<T>
- All Implemented Interfaces:
Serializable
,IConfiguredByLayout
,IFIXGRIDBinding<FIXGRIDBeanItem<T>>
,IListWithChangeIndexListener
,IDynamicContentBindingObject
FIXGRIDListBinding implementation that directly renders
a List of beans objects.
The class provides methods for adding and removing items from the list that can be directly bound by user interface components.
The class provides methods for adding and removing items from the list that can be directly bound by user interface components.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclnt.jsfserver.elements.impl.FIXGRIDBinding
FIXGRIDBinding.Exporter, FIXGRIDBinding.FormattedValue, FIXGRIDBinding.ScrollHelper, FIXGRIDBinding.SortHelper, FIXGRIDBinding.TextSearcher
Nested classes/interfaces inherited from interface org.eclnt.jsfserver.elements.impl.IFIXGRIDBinding
IFIXGRIDBinding.FIXGRIDSortInfo
-
Field Summary
Fields inherited from class org.eclnt.jsfserver.elements.impl.FIXGRIDBinding
CONTENTTYPE_EXPORT_CSV, CONTENTTYPE_EXPORT_HTML, CONTENTTYPE_EXPORT_PDF, CONTENTTYPE_EXPORT_TAB, CONTENTTYPE_EXPORT_XLSX, CONTENTTYPE_EXPORT_XML, EXPORT_COLUMNHEADER_PLACEHOLDER, m_columnsequence, m_currentlyFocussedItem, m_defaultColumnsequence, m_firstItemForShiftSelection, m_initialized, m_modcolumnwidths, m_numberoffooterrows, m_numberofheaderrows, m_objectBinding, m_previouslyFocussedItem, m_sbvalue, m_sbvisibleamount, m_selectedItems, m_sortInfo, m_this
Fields inherited from interface org.eclnt.jsfserver.elements.impl.IFIXGRIDBinding
SORT_ASCENDING, SORT_DESCENDING, SORT_UNSORTED
-
Constructor Summary
ConstructorDescriptionFIXGRIDBeanListBinding
(boolean changeInndexIsSupported) FIXGRIDBeanListBinding
(Class beanClass) Use this constructor if you use the default adding of items.FIXGRIDBeanListBinding
(Class beanClass, boolean changeInndexIsSupported) FIXGRIDBeanListBinding
(Class beanClass, Class rowItemClass) Additional parameter "rowItemClass" is the row item that wraps each bean that is shown within the grid. -
Method Summary
Modifier and TypeMethodDescriptionCreates a bean using a constructor without any parameters.All beans that were added.All beans that were removed.getThis()
void
onAddItem
(javax.faces.event.ActionEvent ae) Default method for adding a new bean.void
onRemoveSelectedItems
(javax.faces.event.ActionEvent ae) Default method for removing selected beans.void
reset()
Resets lists that hold added/removed beans.void
Displays the list of beans within the grid.Methods inherited from class org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding
applyOriginalIndexToCurrentContent, createItems, deselectItem, ensureItemToBeDisplayed, ensureItemToBeDisplayed, fillShiftSelection, getItems, getListOfItems, getRows, getSbmaximum, getSelectedItemsAsSequence, listChanged, listItemWasAdded, listItemWasRemoved, processSearch, selectItem, setItems, setSbvalue, setSbvalue, sortGrid, sortGridByOriginalIndex
Methods inherited from class org.eclnt.jsfserver.elements.impl.FIXGRIDBinding
addConfiguredByLayoutListener, applyPersistentData, avoidLoadingOfPersistentGridData, checkIfCellsAreHighlighted, checkIfChangeIndexIsSupported, checkIfFreeColumnSequenceUpdateIsSupported, checkIfSorted, checkIfToCatchGridActionError, checkSpecialTouchMultiSelection, clearSortInfo, connectWithBinding, createDefaultStringComparator, createExporter, createScrollHelper, createTextSearcher, deselectCurrentSelection, deselectItem, deselectItem, deselectItemWCB, executeOnInitializedGrid, findSortComparatorForColumnValue, getAltPressedOfLastSelection, getClientvisibleamount, getColumnIndexOfLastSelection, getColumnInfos, getColumnsequence, getColumnTexts, getConnectedBinding, getCtrlPressedOfLastSelection, getCurrentColumWdithSequenceInfo, getCurrentHorizontalScrollPosition, getDefaultColumnsequence, getExportableColumns, getExportableColumns, getExporter, getFixgridComponent, getIndextobevisibleOfItems, getItemColumnClientStringValue, getItemColumnFormattedValue, getListOfExportItems, getModcolumnwidths, getModcolumnwidthsAsArray, getMouseButtonOfLastSelection, getNewClientHorizontalScrollPosition, getNumberOfFixColumns, getObjecttobevisibleOfItems, getOriginalcolumnwidths, getOriginalcolumnwidthsAsArray, getRowDataUI, getSbvalue, getSbvisibleamount, getScrollHelper, getSelectedItem, getSelectedItems, getShiftPressedOfLastSelection, getSortInfo, getSortInfoForReference, getTextSearcher, getToBeAccessedNode, getToBeAccessedNodeExpression, getToBeAccessedNodeFormatmaskValue, getToBeAccessedNodeFormattedValue, getToBeAccessedNodeFormattedValue, getToBeAccessedNodeFormattedValueForExport, getToBeAccessedNodeFormatValue, getToBeAccessedNodeStringValue, getToBeAccessedNodeTimezoneValue, getToBeAccessedNodeValue, getVisibleColumns, getVisibleColumns, getWithFixColumnsByUserConfiguration, init_CONTENTTYPE_EXPORT_CSV, init_CONTENTTYPE_EXPORT_HTML, init_CONTENTTYPE_EXPORT_PDF, init_CONTENTTYPE_EXPORT_XLSX, init_CONTENTTYPE_EXPORT_XML, initialize, initPopupEditColumnDetailsUndecorated, initPopupGridFunctionsUndecorated, initTextSearcherShowSearchInfoPopup, isCurrentlyProcessingGridAction, isInitialized, isItemSelected, loadPersistentData, moveUpDown, notifyDownloadWasTriggered, onClearCellHighlight, onColumnSequenceUpdated, onColumnWidthsUpdated, onDrop, onEditColumnDetails, onFirstLineUp, onGridAction, onGridActionExecute, onLastLineDown, onOpenGridExportFunctions, onOpenGridFunctions, onPopupMenuItem, onPopupMenuLoad, onSelectionUpdateByClientActivity, onSelectorTitleIconInvoked, openEditColumnDetailsPopup, openGridExportFunctionsPopup, openGridFunctionsPopup, passComponentData, processMenuItemExecutedOnOutdatedItem, processMultipleSort, processMultipleSort, processSort, removeConfiguredByLayoutListener, renderingBegins, resetPersistentData, resort, scrollHorizontallyToLastClientPosition, scrollHorizontallyToPosition, selectAndFocusItem, selectItem, selectItem, setChangeIndexIsSupported, setClientvisibleamount, setColumnIndexOfLastSelection, setColumnIndexOfLastSelection, setColumnsequence, setCurrentHorizontalScrollPosition, setCurrentlyProcessingGridAction, setDefaultColumnsequence, setIndextobevisibleOfItems, setModcolumnwidth, setModcolumnwidths, setModcolumnwidthsArray, setModcolumnwidthsList, setNumberOfFixColumns, setObjecttobevisibleOfItems, setSbvalue, setSbvisibleamount, setToBeAccessedNode, setWithFixColumnsByUserConfiguration, sort, storePersistentData, storePersistentData, storePersistentDataImplicitly, unhighlightAllCells, updateHighlight
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclnt.jsfserver.elements.IConfiguredByLayout
addConfiguredByLayoutListener, removeConfiguredByLayoutListener
Methods inherited from interface org.eclnt.jsfserver.elements.impl.IFIXGRIDBinding
checkIfChangeIndexIsSupported, getClientvisibleamount, getColumnsequence, getConnectedBinding, getExportableColumns, getExportableColumns, getIndextobevisibleOfItems, getModcolumnwidths, getNewClientHorizontalScrollPosition, getNumberOfFixColumns, getObjecttobevisibleOfItems, getSbvalue, getSbvisibleamount, getSortInfo, getSortInfoForReference, getVisibleColumns, getVisibleColumns, passComponentData, renderingBegins, setClientvisibleamount, setColumnIndexOfLastSelection, setColumnIndexOfLastSelection, setColumnsequence, setCurrentHorizontalScrollPosition, setIndextobevisibleOfItems, setModcolumnwidths, setObjecttobevisibleOfItems, setSbvisibleamount, setWithFixColumnsByUserConfiguration
-
Constructor Details
-
FIXGRIDBeanListBinding
public FIXGRIDBeanListBinding() -
FIXGRIDBeanListBinding
public FIXGRIDBeanListBinding(boolean changeInndexIsSupported) -
FIXGRIDBeanListBinding
Use this constructor if you use the default adding of items. The class requires to provide a constructor without parameter.- Parameters:
beanClass
- Class of bean that is managed inside. The class needs to be passed so that new instances can be generated during the default adding of items.
-
FIXGRIDBeanListBinding
Additional parameter "rowItemClass" is the row item that wraps each bean that is shown within the grid. -
FIXGRIDBeanListBinding
-
-
Method Details
-
showList
Displays the list of beans within the grid. The list passed from now on is manipulated by add/remove operations that may be called by the user interface. -
wrapBean
-
onRemoveSelectedItems
public void onRemoveSelectedItems(javax.faces.event.ActionEvent ae) Default method for removing selected beans. May be directly called by user interface components. -
onAddItem
public void onAddItem(javax.faces.event.ActionEvent ae) Default method for adding a new bean. May be directly called by user interface components. This method will only work if the beanClass is passed at construction point of time. -
getRemovedBeans
All beans that were removed. -
getAddedBeans
All beans that were added. -
reset
public void reset()Resets lists that hold added/removed beans. -
createBean
Creates a bean using a constructor without any parameters. You may override this method in case you want to control the creation of objects on your own. -
getThis
-