Package com.illumon.iris.console.events
Class IrisTable
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
com.illumon.iris.gui.table.GuiTable
com.illumon.iris.console.events.IrisTable
- All Implemented Interfaces:
Linkable,LinkContainer,LinkSource,LinkTarget,ViewIdSink,Workspace,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,CellEditorListener,ListSelectionListener,RowSorterListener,TableColumnModelListener,TableModelListener,Scrollable
public class IrisTable
extends GuiTable
implements LinkTarget, LinkSource, LinkContainer, ViewIdSink
The GUI component for rendering tables within the IrisConsole.
Extends the standard GuiTable with appropriate context menus, and a transfer handler for viewports.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface that should return a TableColumn for the given model, index, and WGuiColumn.Nested classes/interfaces inherited from class com.illumon.iris.gui.table.GuiTable
GuiTable.AlertStyleNested classes/interfaces inherited from class javax.swing.JTable
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintModeNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsFields inherited from class com.illumon.iris.gui.table.GuiTable
columnSet_Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeaderFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionIrisTable(com.fishlib.io.logger.Logger log, IrisTableModel model, TableEventHandlerFactory handlerFactory, PopupProvider... popupProviders) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPopupProvider(PopupProvider provider) voidaddTarget(LinkTarget target) Add the specified target to this Source's list of links.voidRequests that LinkTarget apply its own default filters (if any) to a column.voidapplyFilters(String column, Collection<FilterData> filters) Requests that LinkTarget apply a collection of filters to a column.voidapplyFilters(org.jdom2.Element filters) Requests that LinkTarget apply a saved filter stateprotected booleanvoidclose()createFilterMenu(GuiColumn column, FilterStrategyImpl filterStrategy) Creates a menu for the Filter by...protected TransferHandlerCreates the transfer handler.getAllowedConditions(String columnName) getCellRenderer(int row, int column) booleanIndicates if a Link Target will clear its filters before an update.Get's the UI component for this Linkable.org.jdom2.ElementReturn a persistable copy of the current filters (if any).org.jdom2.ElementGet the workspace for the visible table.Gets the FreezeColumnsManager.getId()Return the underlying linkable object.getLinks()getLinks(LinkSource source) Gets the true linkable if this is a proxy.Gets the true link source if this is a proxy link.Gets the true target if this link target is a proxy.getType()getView()org.jdom2.ElementSerialize the class into an element to be stored in the workspacebooleanisLinked()booleanvoidmakeLink(LinkSource from, String sourceColumn, String targetColumn, Condition condition) Create a link from sourceColumn on aLinkSourceto the targetColumn of thisLinkTargetusing the specifiedConditionas a filter conditionprotected voidvoidprocessDoubleClick(int row, int col, MouseEvent e) Process a double click.protected voidprocessHeaderClick(int col, MouseEvent e) Process a header single or double click.protected voidprocessSingleClick(int row, int col, MouseEvent e) Process a single click.booleanvoidRemove all target links from this source.voidremoveAllLinks(LinkSource from) Remove all column filter links between this object and the specified source.voidremoveLink(LinkSource from, String srcColumn, String targetColumn, Condition condition) Remove a link between the specified columns and condition between this target and it's source.voidremovePopupProvider(PopupProvider provider) voidremoveTarget(LinkTarget target) Remove the specified Target from this source's notification list.voidsetClearFiltersBeforeUpdate(boolean shouldClear) Sets if a Link Target should clear its filters before an update.static voidsetColumnCreateOverride(Class<?> columnType, IrisTable.ColumnCreateOverride columnCreateOverride) Set an override function for creating columns of a given type.protected voidsetColumnFormatter(String columnName, org.jdom2.Element formatInfo) Sets the column formatter from workspace info.voidsetFreezeColumnsManager(FreezeColumnsManager freezeColumnsManager) Sets the FreezeColumnsManager to allow this GuiTable to support Freeze Columns.voidsetModel(IrisTableModel model) voidvoidsetWorkspaceInfo(org.jdom2.Element workspaceInfo) Restore the class to the state defined by the data persisted in workspaceInfovoidsetWorkspaceInfo(org.jdom2.Element workspaceInfo, boolean addRollupListener) voidvoidNotify this LinkTarget of an event from a source.voidupdateLinkTargets(int row, IrisTableModel model) Methods inherited from class com.illumon.iris.gui.table.GuiTable
changeSelection, convertTableColumns, createDefaultColumnModel, createDefaultTableHeader, createTableColumn, generateToolTip, getAlertsPropagate, getAlertStyle, getColumnSet, getGridColor, getOriginalRenderer, getOriginalTableModel, getRowHeight, getSelectedRow, getSelectedRows, getViewableCells, handleUnmentionedColumns, isAlertsOn, isFollowingTable, isOneClickOn, paint, resetColumns, rowAtPoint, scrollToCenter, scrollToRow, setAlertsOn, setAlertsPropagate, setAlertsStyle, setDefaultAlert, setFollowTable, setModel, setOneClickOn, setTableDescription, setTableHeader, shouldSelectAlert, updateColumns, workspaceHasFreezeColumnsMethods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRowCount, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, unconfigureEnclosingScrollPane, updateUI, valueChangedMethods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Field Details
-
log
protected final com.fishlib.io.logger.Logger log
-
-
Constructor Details
-
IrisTable
public IrisTable(com.fishlib.io.logger.Logger log, IrisTableModel model, TableEventHandlerFactory handlerFactory, PopupProvider... popupProviders)
-
-
Method Details
-
setColumnCreateOverride
public static void setColumnCreateOverride(Class<?> columnType, IrisTable.ColumnCreateOverride columnCreateOverride) Set an override function for creating columns of a given type.- Parameters:
columnType- the type of the column we will override the create function forcolumnCreateOverride- an instance of ColumnCreateOverride for this column type
-
tableChanged
- Specified by:
tableChangedin interfaceTableModelListener- Overrides:
tableChangedin classGuiTable
-
getLayoutHints
-
createTransferHandler
Description copied from class:GuiTableCreates the transfer handler.- Overrides:
createTransferHandlerin classGuiTable- Returns:
- the transfer handler
-
setFreezeColumnsManager
Description copied from class:GuiTableSets the FreezeColumnsManager to allow this GuiTable to support Freeze Columns.- Overrides:
setFreezeColumnsManagerin classGuiTable- Parameters:
freezeColumnsManager- the FreezeColumnsManager
-
getFreezeColumnsManager
Description copied from class:GuiTableGets the FreezeColumnsManager. This will be null if the table does no support Freeze Columns.- Overrides:
getFreezeColumnsManagerin classGuiTable- Returns:
- the FreezeColumnsManager, null if Freeze Columns are not supported
-
setModel
-
maybeAddSelectionModel
protected void maybeAddSelectionModel()- Overrides:
maybeAddSelectionModelin classGuiTable
-
getHeaderToolTipText
- Overrides:
getHeaderToolTipTextin classGuiTable
-
getToolTipText
- Overrides:
getToolTipTextin classJTable
-
processSingleClick
Description copied from class:GuiTableProcess a single click. The base method does nothing and may be overridden.- Overrides:
processSingleClickin classGuiTable- Parameters:
row- The row clicked.col- The column clicked.e- The details of the click event.
-
processDoubleClick
Description copied from class:GuiTableProcess a double click. The base method does nothing and may be overridden.- Overrides:
processDoubleClickin classGuiTable- Parameters:
row- The row clicked.col- The column clicked.e- The details of the click event.
-
updateLinkTargets
-
processHeaderClick
Description copied from class:GuiTableProcess a header single or double click. The base method creates aTableHeaderPopupbut may be overridden.- Overrides:
processHeaderClickin classGuiTable- Parameters:
col- The column clicked.e- The details of the click event.
-
addPopupProvider
-
removePopupProvider
-
isLinked
public boolean isLinked() -
addTarget
Description copied from interface:LinkSourceAdd the specified target to this Source's list of links.- Specified by:
addTargetin interfaceLinkSource- Parameters:
target- The target to add.
-
removeTarget
Description copied from interface:LinkSourceRemove the specified Target from this source's notification list.- Specified by:
removeTargetin interfaceLinkSource- Parameters:
target- The target to remove.
-
makeLink
public void makeLink(LinkSource from, String sourceColumn, String targetColumn, Condition condition) Description copied from interface:LinkTargetCreate a link from sourceColumn on aLinkSourceto the targetColumn of thisLinkTargetusing the specifiedConditionas a filter condition- Specified by:
makeLinkin interfaceLinkTarget- Parameters:
from- The source of the filter link.sourceColumn- The source column of the filter linktargetColumn- The column to compare to the sourceColumncondition- The condition to apply to the matching
-
removeLink
Description copied from interface:LinkTargetRemove a link between the specified columns and condition between this target and it's source. Note that for a link to be removed all of the specified parameters must match what was added viaLinkTarget.makeLink(LinkSource, String, String, Condition).- Specified by:
removeLinkin interfaceLinkTarget- Parameters:
from- The source to remove a link tosrcColumn- The column link being removedtargetColumn- The column being linked tocondition- The condition of the filter
-
removeAllLinks
Description copied from interface:LinkTargetRemove all column filter links between this object and the specified source.- Specified by:
removeAllLinksin interfaceLinkTarget- Parameters:
from- The source of the links to remove.
-
removeAllLinks
public void removeAllLinks()Description copied from interface:LinkableRemove all target links from this source.- Specified by:
removeAllLinksin interfaceLinkable
-
getLinkableColumns
- Specified by:
getLinkableColumnsin interfaceLinkable- Returns:
- A list of columns available to be linked to.
-
getAllowedConditions
- Specified by:
getAllowedConditionsin interfaceLinkable- Returns:
-
getId
-
getFriendlyName
- Specified by:
getFriendlyNamein interfaceLinkable- Returns:
- A user friendly name for UI presentation.
-
getType
-
getViewId
-
getLinks
- Specified by:
getLinksin interfaceLinkTarget- Returns:
- A collection of all links attached to this target.
-
getLinks
- Specified by:
getLinksin interfaceLinkTarget- Parameters:
source- The source to check links from.- Returns:
- A collection of all links between the specified source and this target.
-
getClearFiltersBeforeUpdate
public boolean getClearFiltersBeforeUpdate()Description copied from interface:LinkTargetIndicates if a Link Target will clear its filters before an update.- Specified by:
getClearFiltersBeforeUpdatein interfaceLinkTarget- Returns:
- true if it will clear, false otherwise
-
setClearFiltersBeforeUpdate
public void setClearFiltersBeforeUpdate(boolean shouldClear) Description copied from interface:LinkTargetSets if a Link Target should clear its filters before an update.- Specified by:
setClearFiltersBeforeUpdatein interfaceLinkTarget- Parameters:
shouldClear- true to clear, false otherwise
-
getTargets
- Specified by:
getTargetsin interfaceLinkSource- Returns:
- A collection of all the targets this source affects.
-
update
Description copied from interface:LinkTargetNotify this LinkTarget of an event from a source.- Specified by:
updatein interfaceLinkTarget- Parameters:
event- A LinkEvent containing the details of the event.
-
applyDefaultFilters
public void applyDefaultFilters()Description copied from interface:LinkTargetRequests that LinkTarget apply its own default filters (if any) to a column.- Specified by:
applyDefaultFiltersin interfaceLinkTarget
-
getCurrentFilters
public org.jdom2.Element getCurrentFilters()Description copied from interface:LinkTargetReturn a persistable copy of the current filters (if any).- Specified by:
getCurrentFiltersin interfaceLinkTarget
-
applyFilters
public void applyFilters(org.jdom2.Element filters) Description copied from interface:LinkTargetRequests that LinkTarget apply a saved filter state- Specified by:
applyFiltersin interfaceLinkTarget- Parameters:
filters- The saved workspace data to apply.
-
applyFilters
Description copied from interface:LinkTargetRequests that LinkTarget apply a collection of filters to a column.- Specified by:
applyFiltersin interfaceLinkTarget- Parameters:
column- the column to filterfilters- the filters to apply
-
getSourceLinkColumns
- Specified by:
getSourceLinkColumnsin interfaceLinkSource- Returns:
- A set of all the columns for which this source is linked.
-
getView
-
readyForLinks
public boolean readyForLinks()- Specified by:
readyForLinksin interfaceLinkable- Returns:
- If this linkable can accept links.
-
getComponent
Description copied from interface:LinkableGet's the UI component for this Linkable. If this Linkable is not a UI component, implementations may return null.- Specified by:
getComponentin interfaceLinkable- Returns:
- The component of this Linkable or null if there was none
-
setView
- Specified by:
setViewin interfaceViewIdSink
-
close
public void close() -
getLinkable
Description copied from interface:LinkContainerReturn the underlying linkable object.- Specified by:
getLinkablein interfaceLinkContainer- Returns:
- The underlying linkable object.
-
getTrueTarget
Description copied from interface:LinkTargetGets the true target if this link target is a proxy.- Specified by:
getTrueTargetin interfaceLinkTarget- Returns:
- the true target for this link
-
getTrueSource
Description copied from interface:LinkSourceGets the true link source if this is a proxy link.- Specified by:
getTrueSourcein interfaceLinkSource- Returns:
- the true link source
-
getTrueLinkable
Description copied from interface:LinkableGets the true linkable if this is a proxy.- Specified by:
getTrueLinkablein interfaceLinkable- Returns:
- the true linkable
-
areSavedLayoutsAllowed
protected boolean areSavedLayoutsAllowed()- Overrides:
areSavedLayoutsAllowedin classGuiTable
-
getFrontColumns
- Overrides:
getFrontColumnsin classGuiTable
-
getBackColumns
- Overrides:
getBackColumnsin classGuiTable
-
getAutoFilterColumns
- Overrides:
getAutoFilterColumnsin classGuiTable
-
getFreezeColumns
- Overrides:
getFreezeColumnsin classGuiTable
-
getHiddenColumns
- Overrides:
getHiddenColumnsin classGuiTable
-
getViewportAdjuster
-
setColumnFormatter
Description copied from class:GuiTableSets the column formatter from workspace info. The default implementation does nothing but subclasses should override this method to create the correct concrete formatter.- Overrides:
setColumnFormatterin classGuiTable- Parameters:
columnName- the name of the columnformatInfo- element containing workspace info
-
isTreeTable
public boolean isTreeTable() -
getCellRenderer
- Overrides:
getCellRendererin classJTable
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Overrides:
getWorkspaceInfoin classGuiTable- Returns:
- An
Elementcontaining the data to persist.
-
getCurrentWorkspace
public org.jdom2.Element getCurrentWorkspace()Get the workspace for the visible table. This bypasses any indirection that may happen when a UI applied rollup happens. This should only be used by RollupHelper to save the state of the rollup itself.- Returns:
- the workspace of the table.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo) Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfoin interfaceWorkspace- Overrides:
setWorkspaceInfoin classGuiTable- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo, boolean addRollupListener) -
createFilterMenu
Description copied from class:GuiTableCreates a menu for the Filter by... option.- Overrides:
createFilterMenuin classGuiTable- Parameters:
column- the column to filterfilterStrategy- the filter strategy for the model- Returns:
- a new filter menu
-