Class GridDetails
java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.defaultscreens.GridDetails
- All Implemented Interfaces:
Serializable,IPageBean,IDynamicContentBindingObject
This is the one class managing the "popup aspects" of a grid:
(1.) the search & export popup
(2.) the popup for arranging the columns
Background: you may e.g. use the class to build an own popup dialog providing both parts of the function within one popup.
There are two static members by which you can directly set the default popup page names that are opened for "grid functions" and for "column detail editing": PAGENAME_FUNCTIONS and PAGENAME_COLUMNDETAILS.
(1.) the search & export popup
(2.) the popup for arranging the columns
Background: you may e.g. use the class to build an own popup dialog providing both parts of the function within one popup.
There are two static members by which you can directly set the default popup page names that are opened for "grid functions" and for "column detail editing": PAGENAME_FUNCTIONS and PAGENAME_COLUMNDETAILS.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<IFIXGRIDColumnInfo>protected Map<IFIXGRIDColumnInfo,Integer> protected Map<Integer,IFIXGRIDColumnInfo> protected FIXGRIDBindingprotected FIXGRIDListBinding<GridDetails.ColumnItem>protected GridDetails.IGridDetailsListenerprotected intprotected Stringprotected FIXGRIDListBinding<GridDetails.ColumnItem>protected booleanstatic StringDefault page name used for popup for re-arranging the column sequence.static StringDefault page name used for export popup.static StringDefault page name used for search & export popup.static booleanDefault visibility of back-to-default link.static booleanDefault visibility of revert-changes link.Fields inherited from class org.eclnt.jsfserver.pagebean.PageBean
m_pageModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleangetLefts()intName of page that is managed by the bean.booleanbooleanInside the page definition the bean is addressed via a certain root expression - e.g.booleanstatic voidCertain grid functions are calling an interfaceGridDetails.IGridDetailExtensionthat you pass by calling this method.static voidinitRowFunctionsAvailable(boolean value) When the user selects one ore more items from a grid, then the default popup for showing the export functions contains a section to export the selected rows only.static StringJUNIT_createFilledUpColumnSequence(int numberOfColumns, String colGroupIdsCSV, String columnSequence) voidonApply(ActionEvent event) voidonBackToDefault(ActionEvent event) voidonDown(ActionEvent event) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidonLeft(ActionEvent event) voidonRevertChanges(ActionEvent event) voidonRight(ActionEvent event) voidonSearchNext(ActionEvent event) voidonSearchPrevious(ActionEvent event) voidonUp(ActionEvent event) voidprepare(FIXGRIDBinding grid, GridDetails.IGridDetailsListener listener, boolean cellFunctionsAvailable, String pageName) You may use this class on your own and pass an own jsp page into the page bean.protected voidvoidsetCaseSensitive(boolean value) voidsetNumberOfFixColumns(int numberOfFixColumns) voidsetSearchText(String value) protected voidprotected voidMethods inherited from class org.eclnt.jsfserver.pagebean.PageBean
buildContentReplaceString, closePopup, getActualRootExpression, getModalModelessPopupForPopupPageBean, getPageModifier, getPopups, getStamp, initializePageModifier, onBeforeRendering, openModalPopup, openModelessPopup, pbx, readPageLayoutXML, setActualRootExpression
-
Field Details
-
PAGENAME_FUNCTIONS
Default page name used for search & export popup. -
PAGENAME_EXPORTFUNCTIONS
Default page name used for export popup. -
PAGENAME_COLUMNSDETAILS
Default page name used for popup for re-arranging the column sequence. -
RENDERED_revertChanges
public static boolean RENDERED_revertChangesDefault visibility of revert-changes link. -
RENDERED_backToDefault
public static boolean RENDERED_backToDefaultDefault visibility of back-to-default link. -
m_grid
-
m_lefts
-
m_rights
-
m_columnInfos
-
m_columnInfosOriginalIndices
-
m_columnInfosOriginalIndicesReverse
-
m_columnWidths
-
m_columnSequence
-
m_listener
-
m_cellFunctionsAvailable
protected boolean m_cellFunctionsAvailable -
m_rowFunctionsAvailable
protected boolean m_rowFunctionsAvailable -
m_pageName
-
m_numberOfFixColumns
protected int m_numberOfFixColumns
-
-
Constructor Details
-
GridDetails
public GridDetails()
-
-
Method Details
-
initializeExtension
Certain grid functions are calling an interfaceGridDetails.IGridDetailExtensionthat you pass by calling this method. -
getPageName
Description copied from interface:IPageBeanName of page that is managed by the bean. This can either be a static return value that stays fix for the whole lifecycle of the bean, or it may also be a value that changed - in case there are several pages that are possible to be managed by the page bean.- Specified by:
getPageNamein interfaceIPageBean- Specified by:
getPageNamein classPageBean
-
getRootExpressionUsedInPage
Description copied from interface:IPageBeanInside the page definition the bean is addressed via a certain root expression - e.g. "#{d.XYZBean}". The page bean management requires this expression in order to execute certain expression replacements when loading the page at runtime.- Specified by:
getRootExpressionUsedInPagein interfaceIPageBean- Specified by:
getRootExpressionUsedInPagein classPageBean
-
initRowFunctionsAvailable
public static void initRowFunctionsAvailable(boolean value) When the user selects one ore more items from a grid, then the default popup for showing the export functions contains a section to export the selected rows only. You may switch off this feature by passing "false" by this method - then only these export functions are available that refer to the whole grid. -
prepare
public void prepare(FIXGRIDBinding grid, GridDetails.IGridDetailsListener listener, boolean cellFunctionsAvailable, String pageName) You may use this class on your own and pass an own jsp page into the page bean. -
getAvailableNumberOfFixColumns
public boolean getAvailableNumberOfFixColumns() -
getNumberOfFixColumns
public int getNumberOfFixColumns() -
setNumberOfFixColumns
public void setNumberOfFixColumns(int numberOfFixColumns) -
getRenderedRevertChanges
public boolean getRenderedRevertChanges() -
getRenderedBackToDefault
public boolean getRenderedBackToDefault() -
getLefts
-
getRights
-
getCellFunctionsAvailable
public boolean getCellFunctionsAvailable() -
getRowFunctionsAvailable
public boolean getRowFunctionsAvailable() -
getXlsxAvailable
-
getOdsAvailable
-
getSearchResult
-
getDownloadFilenameCSV
-
getDownloadFilenameXLSX
-
getDownloadFilenameXML
-
getDownloadFilenamePDF
-
getDownloadFilenameHTML
-
getDownloadFilenameODS
-
onLeft
-
onRight
-
onUp
-
onDown
-
getAvailableColumSequenceChange
public boolean getAvailableColumSequenceChange() -
onApply
-
onRevertChanges
-
onBackToDefault
-
getExportURLPdfWholeGrid
-
getExportURLPdfRows
-
getExportURLXLSXWholeGrid
-
getExportURLXLSXRows
-
getExportURLODSWholeGrid
-
getExportURLODSRows
-
getExportURLCsvWholeGrid
-
getExportURLCsvRows
-
getExportURLXMLWholeGrid
-
getExportURLXMLRows
-
getExportURLHTMLWholeGrid
-
getExportURLHTMLRows
-
getExportURLCsvRange
-
getExportURLXMLRange
-
onExportToClipboardWholeGrid
-
onExportToClipboardRows
-
onExportToClipboardRange
-
setSearchText
-
getSearchText
-
getCaseSensitive
public boolean getCaseSensitive() -
setCaseSensitive
public void setCaseSensitive(boolean value) -
onSearchNext
-
onSearchPrevious
-
onDownloadPdfWholeGrid
-
onDownloadCsvWholeGridAction
-
onDownloadXMLWholeGridAction
-
onDownloadHTMLWholeGridAction
-
onDownloadXLSXWholeGridAction
-
onDownloadODSWholeGridAction
-
onDownloadPdfPartialGridAction
-
onDownloadCsvPartialGridAction
-
onDownloadXMLPartialGridAction
-
onDownloadHTMLPartialGridAction
-
onDownloadXLSXPartialGridAction
-
onDownloadODSPartialGridAction
-
readColumnInfos
protected void readColumnInfos() -
sortColumnItemsByText
-
sortColumnItemsByIndex
-
JUNIT_createFilledUpColumnSequence
-