public class FIXGRIDTreeBinding<ItemClass extends FIXGRIDTreeItem> extends FIXGRIDBinding<ItemClass> implements java.io.Serializable, IFIXGRIDBinding<ItemClass>
FIXGRIDBinding.Exporter, FIXGRIDBinding.FormattedValue, FIXGRIDBinding.ScrollHelper, FIXGRIDBinding.SortHelper, FIXGRIDBinding.TextSearcherIFIXGRIDBinding.FIXGRIDSortInfo| Modifier and Type | Field and Description |
|---|---|
protected FIXGRIDTreeItem |
m_rootNode |
static boolean |
s_supportAutoScrollOnToggle
When set to true (default) then toggling activities an tree node level
are couple with a corresponding scrolling: if e.g. the user opens up
a tree node item on the bottom of a grid, then the grid automatically
is scrolled so that the child items become visible.
|
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_thisSORT_ASCENDING, SORT_DESCENDING, SORT_UNSORTED| Constructor and Description |
|---|
FIXGRIDTreeBinding() |
FIXGRIDTreeBinding(boolean changeIndexIsSupported)
Constructor which allows to switch on performance optimized data
management.
|
FIXGRIDTreeBinding(FIXGRIDTreeItem rootNode)
Constructor with explicit passing of root node.
|
FIXGRIDTreeBinding(FIXGRIDTreeItem rootNode,
boolean changeIndexIsSupported) |
| Modifier and Type | Method and Description |
|---|---|
void |
collapseAll()
Collapses all nodes which are currently loaded.
|
void |
collapseAll(ActionEvent event)
Same method as collapseAll() without parameters - but directly usable as action listener.
|
void |
collapseTopNodes()
Collapses top nodes.
|
void |
collapseTopNodes(ActionEvent event)
Same method as collapseTopNodes() without parameter - but directly usable as action listener.
|
void |
ensureItemToBeDisplayed(ItemClass item)
Ensures that the passed item is displayed within the tree.
|
void |
expandAll()
Expands the whole tree, so that all items are shown.
|
void |
expandAll(ActionEvent event)
Same method as expandAll without parameters - but directly usable as action listener.
|
void |
expandTopNodes()
Expands top nodes.
|
void |
expandTopNodes(ActionEvent event)
Same method as expandTopNodes() without parameter - but directly usable as action listener.
|
protected void |
fillShiftSelection()
Default implementation: no shift selection, but just normal selection
|
boolean |
getFoldersAlwaysSortedToTop() |
ItemClass |
getItemByText(java.util.List<java.lang.String> itemTexts)
Passes back a node that is represented by the passed text list.
|
protected java.util.List<ItemClass> |
getListOfItems()
Returns all items of the current grid in the sequence of their
visual appearance.
|
java.util.List<java.lang.String> |
getNodeTextsFromTop(FIXGRIDTreeItem item)
Passes back a list of texts representing the texts from the top
node down to the node that is passed as parameter.
|
FIXGRIDTreeItem |
getRootNode()
Gets the root node.
|
java.util.List |
getRows()
Passes back the currently visible nodes to the client.
|
int |
getSbmaximum()
Size of nodes that determine the scroll bar size.
|
java.util.Collection<ItemClass> |
getSelectedItemsAsSequence()
Returns all selected items in the sequence they occur within the
grid.
|
void |
removeNode(FIXGRIDTreeItem node)
Removes node from tree - together with all of its subnodes.
|
void |
renderingBegins()
This method is called with each request processing - at the beginning of the processing.
|
void |
setFoldersAlwaysSortedToTop(boolean foldersAlwaysSortedToTop)
If property is set to true then during sorting folder nodes are always arranged on top of leave nodes.
|
void |
setRootNode(FIXGRIDTreeItem value)
Sets the root node - this method needs to be called with great
care: setting a new root node will remove the current tree and
replace it by another.
|
void |
setSbvalue(int value)
Sets the top index of the grid.
|
void |
setSbvisibleamount(int value)
Internal use only.
|
protected void |
sortGrid(java.lang.String sortReference,
java.lang.String objectBindingString,
boolean ascending)
Actual sorting of grid.
|
protected void |
sortNodes(FIXGRIDTreeItem node,
java.lang.String sortReference,
java.lang.String objectBindingString,
boolean ascending) |
protected void |
triggerRowsUpdate()
This method is called every time something happens in the tree that
requires a rebuild of buffers that are required within the
building up of visible items in the method getRows().
|
applyPersistentData, checkIfCellsAreHighlighted, checkIfChangeIndexIsSupported, 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, getListOfExportItems, getModcolumnwidths, getModcolumnwidthsAsArray, getMouseButtonOfLastSelection, getNewClientHorizontalScrollPosition, getObjecttobevisibleOfItems, getOriginalcolumnwidths, getOriginalcolumnwidthsAsArray, getRowDataUI, getSbvalue, getSbvisibleamount, getScrollHelper, getSelectedItem, getSelectedItems, getShiftPressedOfLastSelection, getSortInfo, getSortInfoForReference, getTextSearcher, getToBeAccessedNode, getToBeAccessedNodeExpression, getToBeAccessedNodeFormatmaskValue, getToBeAccessedNodeFormattedValue, getToBeAccessedNodeFormatValue, getToBeAccessedNodeStringValue, getToBeAccessedNodeTimezoneValue, getToBeAccessedNodeValue, getVisibleColumns, getVisibleColumns, init_CONTENTTYPE_EXPORT_CSV, init_CONTENTTYPE_EXPORT_PDF, init_CONTENTTYPE_EXPORT_XLSX, init_CONTENTTYPE_EXPORT_XML, initialize, initPopupEditColumnDetailsUndecorated, initPopupGridFunctionsUndecorated, initTextSearcherShowSearchInfoPopup, isCurrentlyProcessingGridAction, isInitialized, isItemSelected, moveUpDown, onClearCellHighlight, onColumnSequenceUpdated, onColumnWidthsUpdated, onDrop, onEditColumnDetails, onFirstLineUp, onGridAction, onGridActionExecute, onLastLineDown, onOpenGridExportFunctions, onOpenGridFunctions, onPopupMenuItem, onPopupMenuLoad, onSelectionUpdateByClientActivity, onSelectorTitleIconInvoked, openEditColumnDetailsPopup, openGridExportFunctionsPopup, openGridFunctionsPopup, passComponentData, processMultipleSort, processMultipleSort, processSearch, processSort, resort, scrollHorizontallyToLastClientPosition, scrollHorizontallyToPosition, selectAndFocusItem, selectItem, selectItem, setClientvisibleamount, setColumnIndexOfLastSelection, setColumnIndexOfLastSelection, setColumnsequence, setCurrentHorizontalScrollPosition, setCurrentlyProcessingGridAction, setDefaultColumnsequence, setIndextobevisibleOfItems, setModcolumnwidth, setModcolumnwidths, setModcolumnwidthsArray, setModcolumnwidthsList, setObjecttobevisibleOfItems, setSbvalue, setSbvalue, setToBeAccessedNode, sort, storePersistentData, storePersistentDataImplicitly, unhighlightAllCells, updateHighlightclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckIfChangeIndexIsSupported, getClientvisibleamount, getColumnsequence, getConnectedBinding, getExportableColumns, getExportableColumns, getIndextobevisibleOfItems, getModcolumnwidths, getNewClientHorizontalScrollPosition, getObjecttobevisibleOfItems, getSbvalue, getSbvisibleamount, getSortInfo, getSortInfoForReference, getVisibleColumns, getVisibleColumns, passComponentData, setClientvisibleamount, setColumnIndexOfLastSelection, setColumnIndexOfLastSelection, setColumnsequence, setCurrentHorizontalScrollPosition, setIndextobevisibleOfItems, setModcolumnwidths, setObjecttobevisibleOfItems, setSbvaluepublic static boolean s_supportAutoScrollOnToggle
protected FIXGRIDTreeItem m_rootNode
public FIXGRIDTreeBinding()
public FIXGRIDTreeBinding(boolean changeIndexIsSupported)
FIXGRIDBinding.FIXGRIDBinding(boolean).public FIXGRIDTreeBinding(FIXGRIDTreeItem rootNode)
public FIXGRIDTreeBinding(FIXGRIDTreeItem rootNode, boolean changeIndexIsSupported)
public void removeNode(FIXGRIDTreeItem node)
public void setSbvalue(int value)
FIXGRIDBindingsetSbvalue in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>public boolean getFoldersAlwaysSortedToTop()
public void setFoldersAlwaysSortedToTop(boolean foldersAlwaysSortedToTop)
public java.util.List getRows()
getRows in interface IFIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>public int getSbmaximum()
getSbmaximum in interface IFIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>public void setRootNode(FIXGRIDTreeItem value)
public FIXGRIDTreeItem getRootNode()
public void ensureItemToBeDisplayed(ItemClass item)
ensureItemToBeDisplayed in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>protected void sortGrid(java.lang.String sortReference,
java.lang.String objectBindingString,
boolean ascending)
FIXGRIDBindingsortGrid in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>protected void sortNodes(FIXGRIDTreeItem node, java.lang.String sortReference, java.lang.String objectBindingString, boolean ascending)
public void setSbvisibleamount(int value)
FIXGRIDBindingsetSbvisibleamount in interface IFIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>setSbvisibleamount in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>public void renderingBegins()
FIXGRIDBindingrenderingBegins in interface IFIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>renderingBegins in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>public void expandAll(ActionEvent event)
public void collapseAll(ActionEvent event)
public void expandTopNodes(ActionEvent event)
public void collapseTopNodes(ActionEvent event)
public void expandAll()
public void collapseAll()
public void expandTopNodes()
public void collapseTopNodes()
public java.util.List<java.lang.String> getNodeTextsFromTop(FIXGRIDTreeItem item)
public ItemClass getItemByText(java.util.List<java.lang.String> itemTexts)
public java.util.Collection<ItemClass> getSelectedItemsAsSequence()
protected void fillShiftSelection()
FIXGRIDBindingfillShiftSelection in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>protected java.util.List<ItemClass> getListOfItems()
FIXGRIDBindinggetListOfItems in class FIXGRIDBinding<ItemClass extends FIXGRIDTreeItem>protected void triggerRowsUpdate()
Copyright © CaptainCasa Gmbh. All Rights Reserved.