public class ConfigurableStructureBean extends ExpanderBasedStructureBean
StructureBean
implementation that can be configured in what way it
should expand a node.ExpanderBasedStructureBean.ExpandCtxBase
AbstractStructureBean.ConsistentNodeIterator, AbstractStructureBean.StructureBeanNodeIterator
AbstractSortableTableBean.ForcedColumnsParams, AbstractSortableTableBean.SortInfo
AbstractEditableTableBean.CellUpdaterTableClient, AbstractEditableTableBean.CommitResultImpl, AbstractEditableTableBean.ConnectResultImpl, AbstractEditableTableBean.DeleteResultImpl, AbstractEditableTableBean.DisconnectResultImpl, AbstractEditableTableBean.ObjectResultImpl, AbstractEditableTableBean.RemoveResultImpl, AbstractEditableTableBean.ReplaceResultImpl, AbstractEditableTableBean.UpdateResultImpl
AbstractPaginatedTableBean.CurrentPageEvaluationParams, AbstractPaginatedTableBean.TablePage
AbstractTableBean.DefaultNavigationHandler, AbstractTableBean.TableClientImpl, AbstractTableBean.TableDataIterator, AbstractTableBean.ViewListenerProxy
TableDataProvider.Displayed<T extends TableData>, TableDataProvider.Empty<T extends TableData>, TableDataProvider.Specific<T extends TableData>, TableDataProvider.Visible<T extends TableData>
StructureModifiableTableBean.CallBack, StructureModifiableTableBean.CommitResult, StructureModifiableTableBean.CommitResults, StructureModifiableTableBean.ConnectResult, StructureModifiableTableBean.ConnectSpec, StructureModifiableTableBean.DeleteResult, StructureModifiableTableBean.DisconnectResult, StructureModifiableTableBean.ReplaceResult, StructureModifiableTableBean.ReplaceSpec, StructureModifiableTableBean.UpdateResult
STRUCTURE_INVALID_TABLE_DATA_FILTER
editable, editSupported, structureModificationSupported
DEFAULT_VISIBLE_TABLE_DATA_FILTER, EVALUATION_REQUIRED_TABLE_DATA_FILTER, SELECTED_TABLE_DATA_FILTER
EMPTY
MODE_ASCENDING, MODE_DESCENDING, MODE_NOT_SORTED
Constructor and Description |
---|
ConfigurableStructureBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addBusSelect(java.lang.String selectStatement)
Adds an object select statement.
|
void |
addRelSelect(java.lang.String selectStatement)
Adds a relationship select statement.
|
protected NavigationHandler |
createNavigationHandler(Environment env,
java.lang.String objectId,
java.lang.String relationshipId)
Subclasses must implement this method and return a proper navigation
handler that is used when navigating a certain object.
|
protected matrix.util.StringList |
getBusSelectList()
Returns a copy of the object selection list.
|
java.util.Iterator<java.lang.String> |
getBusSelects()
Returns an iterator over the business object select statements that have
been added to this instance.
|
Expander |
getDefaultExpander()
This method returns the default expander.
|
java.lang.String |
getObjectWhereClause()
Returns the object where clause.
|
java.lang.String |
getRelationshipPattern()
Returns the relationship pattern.
|
java.lang.String |
getRelationshipWhereClause()
Returns the relationship where clause.
|
protected matrix.util.StringList |
getRelSelectList()
Returns a copy of the relationship selection list.
|
java.util.Iterator<java.lang.String> |
getRelSelects()
Returns an iterator over the relationship select statements that have
been added to this instance.
|
java.lang.String |
getTypePattern()
Returns the type pattern.
|
boolean |
isFrom()
Returns whether to expand in the from direction.
|
boolean |
isTo()
Returns whether to expand in the to direction.
|
protected void |
onClone(TableBean<StructureBeanNode> c)
Create a deep copy of this object.
|
protected void |
onNavigate(TableBean<? extends TableData> table,
java.lang.String objectId)
Initialize the
StructureBean when navigating. |
void |
removeBusSelect(java.lang.String selectStatement)
Removes an object select statement.
|
void |
removeRelSelect(java.lang.String selectStatement)
Removes a relationship select statement.
|
void |
setFrom(boolean from)
Sets whether to expand in the from direction.
|
void |
setObjectWhereClause(java.lang.String objectWhereClause)
Sets the object where clause.
|
void |
setRelationshipPattern(java.lang.String relationshipPattern)
Sets the relationship pattern.
|
void |
setRelationshipWhereClause(java.lang.String relationshipWhereClause)
Sets the relationship where clause.
|
void |
setTo(boolean to)
Sets whether to expand in the to direction.
|
void |
setTypePattern(java.lang.String typePattern)
Sets the type pattern.
|
createExpandCtx, createRootNode, createStructureNode, createStructureNode, doCollapseNode, doExpandNode, getExpander, getExpanderChain, getNextNodeId, isFiltersCombinable, isFullExpandSupported, isMultiLevelExpandSupported, isVisualsChangeable, verifyExpander
accept, addNode, addRoot, addRoot, addStructureListener, changeRootNode, changeRootNode, clearRootNodes, collapse, collapseNode, countVisibleChildNodes, createTableDataComparator, expand, expand, expandFully, expandNode, expandNode, expandNodeFully, fireStructureCollapseEvent, fireStructureExpandEvent, getAllowInconsistentVisibleStructure, getCollapseOnFilterChange, getConsistentVisibleTableData, getFilteredRootNodes, getInitialExpandDepth, getInitialExpandMode, getMultiLevelExpandDepth, getNodeAt, getNodeCount, getNodes, getNodes, getNodes, getObjectIdForHeaders, getRootCount, getRootInquirySupport, getRootJPOSupport, getRootNode, getRootNodeAt, getRootNodes, getStructureListeners, getTableData, getTableDataAt, getTableDataCount, getVisibleChildAt, getVisibleChildCount, getVisibleChildIndex, getVisibleChildNodes, getVisibleRootNodes, getVisibleTableData, hasNodes, hasTableData, hasVisibleChildren, invalidateRootNodes, isAllowHideSingleRootNode, isDefaultCollapseOnFilterChange, isFirstVisibleChild, isInquirySupported, isLastVisibleChild, isRootInquirySupported, isRootNode, isRootNodesNavigable, isToFlatTableSupported, isValid, isVisibleChild, loadFromInquiry, loadFromJPO, loadIntoNode, loadRootsFromInquiry, loadRootsFromInquiry, loadRootsFromJPO, loadRootsFromJPO, onViewChanged, onVisualsChanged, removeNode, removeNodes, removeNodes, removeRoot, removeRootNode, removeStructureListener, removeTableData, setAllowHideSingleRootNode, setAllowInconsistentVisibleStructure, setCollapseOnFilterChange, setExpanded, setInitialExpandDepth, setInitialExpandMode, setMultiLevelExpandDepth, setRoot, setRoot, sort, sortImpl, toFlatTable, validate
addSortMode, addSortMode, clearSortModes, createEvaluationChain, fireColumnsUpdatedEvent, getModeForString, getSortMode, getSortMode, getSortOrder, getSortOrderByName, hasSortModes, initDefault, invalidateSort, isAnySorted, isEvaluationForcedFor, isSorted, isSorted, isSorted, isSortSupported, isValidSort, onColumnsUpdated, onTableChanged, onTableSorted, setSortMode, setSortMode, setSortSupported, sortIfRequired, validateSort
addTableEditListenerListener, afterConnect, afterDisconnect, afterEdit, afterEdit, connect, createConnectResult, createDisconnectResult, createReplaceResult, disconnect, editCell, editCells, fireWasEditedEvent, fireWasEditedEvent, getReuseCellsForEditEvaluation, getTableEditListeners, isEditable, isEditSupported, isStructureModificationSupported, performConnect, performDisconnect, performReplace, removeTableEditListener, replace, setEditable, setEditSupported, setStructureModificationSupported, validate, validateSpec
addSelectionListener, createDefaultSelectionModel, getSelectionModel, removeSelectionListener, selectableChanged, selectionChanged, setSelectionModel
addPaginationChangeListener, asNonPaginatedTable, evaluateColumns, firePaginationChanged, getCurrentPage, getDisplayedTableData, getPageCount, getPageTableData, getPageTableDataRange, getPaginationThreshold, getUnpaginatedTableData, getUnpaginatedTableDataCount, isOnlyEvaluateCurrentPage, isPaginated, isPaginationForced, isPaginationSupported, isProxyInvokation, removePaginationChangeListener, setCurrentPage, setOnlyEvaluateCurrentPage, setPageTableDataRange, setPaginated, setPaginationSupported, setPaginationThreshold
accept, addEntryProcessor, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearEntryProcessor, clearRows, clearRowsBeforeEvaluation, clearVisibleTableDataFilter, clone, createNavigationHandler, createTableClient, createTableHeaders, ensureTable, ensureView, evaluate, evaluateColumns, fireDidNavigateEvent, fireTableChangedEvent, fireTableContentAdded, fireTableContentCleared, fireTableContentRemoved, fireTableEvaluatedEvent, fireTableInvalidatedEvent, fireTableSortedEvent, fireViewChangedEvent, fireVisualsChangedEvent, fireWasClonedEvent, fireWasGroupedEvent, getCalculations, getCellAt, getChoosableViews, getColumnAt, getColumnByName, getColumnCount, getColumnIndex, getColumnList, getColumns, getContextMenu, getDisplayedTableDataCount, getEntryProcessor, getEntryProcessors, getEnv, getEnv, getEvaluationChain, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getLocaleForHeaders, getMenuBar, getMode, getNavigationHandler, getNavigationHandler, getPageConfig, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableContentListeners, getTableData, getTableData, getTableDataIteratorWithIds, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getView, getViewFactory, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, group, hasCellAt, hasEvaluationForcedColumns, hasVisibleTableDataFilter, invalidate, invalidateTableData, isColumnsLoaded, isEvaluateReadOnly, isEvaluationRequired, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isTableChangeable, isViewChangeable, isVisible, isVisibleColumn, isVisibleColumnImpl, loadFromInquiry, loadFromJPO, navigate, navigate, onGroup, onTableEvaluated, onTableInvalidated, paramString, reload, removeEntryProcessor, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setChoosableViews, setContextMenu, setEntryProcessor, setEntryProcessors, setEnv, setEvaluateReadOnly, setHeader, setHeader, setMenuBar, setNavigateSupported, setOnlyEvaluateVisibleColumns, setPageConfig, setParent, setSubHeader, setSubHeader, setTableChangeable, setView, setView, setViewChangeable, setViewFactory, setVisualsChangeable, toString
getAttribute, getAttributeMap, getAttributeNames, removeAttribute, setAttribute
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearVisibleTableDataFilter, clone, getCalculations, getCellAt, getColumnAt, getColumnByName, getColumnCount, getColumnIndex, getColumnList, getColumns, getDisplayedTableData, getDisplayedTableDataCount, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getNavigationHandler, getNavigationHandler, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableData, getTableData, getTableDataIteratorWithIds, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, hasCellAt, hasVisibleTableDataFilter, invalidate, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isVisible, isVisibleColumn, navigate, navigate, reload, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setHeader, setHeader, setOnlyEvaluateVisibleColumns, setParent, setSubHeader, setSubHeader
getChoosableViews, getView, getViewFactory, isTableChangeable, isViewChangeable, setChoosableViews, setView, setView, setViewFactory
getMenuBar, setMenuBar
getContextMenu, setContextMenu
getEnv, getEnv, setEnv
getAttribute, getAttributeNames, removeAttribute, setAttribute
getPageConfig, setPageConfig
public ConfigurableStructureBean()
public Expander getDefaultExpander()
ExpanderBasedStructureBean
expander
that is default for a
particular StructureBean
implementation. This implementation will
obtain the default expander from the view.getDefaultExpander
in interface ExpanderChain.Default
getDefaultExpander
in class ExpanderBasedStructureBean
protected void onClone(TableBean<StructureBeanNode> c)
onClone
in class ExpanderBasedStructureBean
public void addBusSelect(java.lang.String selectStatement)
public void removeBusSelect(java.lang.String selectStatement)
public java.util.Iterator<java.lang.String> getBusSelects()
protected matrix.util.StringList getBusSelectList()
public void addRelSelect(java.lang.String selectStatement)
public void removeRelSelect(java.lang.String selectStatement)
public java.util.Iterator<java.lang.String> getRelSelects()
protected matrix.util.StringList getRelSelectList()
public java.lang.String getTypePattern()
public void setTypePattern(java.lang.String typePattern)
public java.lang.String getRelationshipPattern()
public void setRelationshipPattern(java.lang.String relationshipPattern)
public java.lang.String getObjectWhereClause()
public void setObjectWhereClause(java.lang.String objectWhereClause)
public java.lang.String getRelationshipWhereClause()
public void setRelationshipWhereClause(java.lang.String relationshipWhereClause)
public boolean isFrom()
public void setFrom(boolean from)
public boolean isTo()
public void setTo(boolean to)
protected NavigationHandler createNavigationHandler(Environment env, java.lang.String objectId, java.lang.String relationshipId) throws TVCException
AbstractTableBean
createNavigationHandler
in class AbstractTableBean<StructureBeanNode>
env
- The current environmentobjectId
- The id of the object to navigaterelationshipId
- The relationship idNavigationHandler
used to navigate the specified object
with.TVCException
protected void onNavigate(TableBean<? extends TableData> table, java.lang.String objectId) throws TVCException
StructureBean
when navigating.onNavigate
in class ExpanderBasedStructureBean
TVCException
Copyright ? Technia AB. All Rights Reserved.