Class PMITable
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JScrollPane
-
- com.inductiveautomation.vision.api.client.components.model.AbstractVisionScrollPane
-
- com.inductiveautomation.factorypmi.application.components.PMITable
-
- All Implemented Interfaces:
DynamicPropertyProvider,LoadingMonitor,CustomizableTable<ColumnAttributes>,LocaleListener,TouchscreenEnabledTable,MutableDynamicPropertyProvider,StyleProvider,ComponentLifecycle,EnabledEx,ExtensibleComponent,QualityMonitor,VisionComponent,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.ScrollPaneConstants
public class PMITable extends AbstractVisionScrollPane implements LoadingMonitor, EnabledEx, ExtensibleComponent, TouchscreenEnabledTable, CustomizableTable<ColumnAttributes>, LocaleListener
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPMITable.ColumnConfigDeprecated.-
Nested classes/interfaces inherited from class javax.swing.JScrollPane
javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected intbackgroundColorModestatic intBG_ALTERNATINGstatic intBG_CONSTANTstatic intBG_MAPPEDprotected intclickCountToStartprotected java.util.Map<java.lang.String,ColumnAttributes>columnAttributesprotected DatasetcolumnAttributesDataprotected PMITable.ColumnConfigcolumnConfigurationDeprecated.protected DatasetdataThis is the actual data that the table displaysprotected java.awt.FontheaderFontprotected java.awt.ColorheaderForegroundprotected booleanheaderVisibleControls the visibility of the table's JTableHeaderprotected intinitialRowSelectionThis is used to have the table automatically select a row upon 'first data', that is, whenever the data is set to a positive number of rows when it was previously zeroprotected javax.swing.event.EventListenerListlistenerListprotected intmappingColumnDeprecated.protected java.lang.StringmappingColumnIdprotected ColorStateTablemappingTableprotected java.awt.ColoroddBackgroundprotected booleanoverlaysEnabledprotected com.inductiveautomation.factorypmi.application.components.PMITable.SelectionRelayListenerrelayListenerprotected com.inductiveautomation.factorypmi.application.components.PMITable.HMITableCellRendererrendererprotected booleanresizingAllowedprotected com.inductiveautomation.factorypmi.application.components.PMITable.DataSetTableModelrootModelThis is the root TableModel for the table, which looks at the data variable.protected intselectionModeprotected SortTableModelsortModelThis TableModel looks at the rootModel, providing sorting on top of itprotected javax.swing.JTabletablestatic intTOUCH_SCREEN_MODE_AUTOstatic intTOUCH_SCREEN_MODE_NONEprotected inttouchscreenMode-
Fields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionScrollPane
antialias, context, cursorCode
-
Fields inherited from class javax.swing.JScrollPane
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
COMPONENT_RUNNING
-
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.EnabledEx
DISABLED_BY_PERMISSIONS
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENT
-
Fields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProvider
RESERVED_SET_KEY
-
Fields inherited from interface javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
-
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionComponent
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
-
-
Constructor Summary
Constructors Constructor Description PMITable()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCellListener(CellListener listener)voidaddRow(org.python.core.PySequence row)voidaddTableSelectionListener(TableSelectionListener l)Deprecated.intcolumnIndexToModelIndex(int columnIndex)Converts between a TableColumnModel index to the underlying dataset's column indexvoiddeleteRow(int row)voidevaluateEnabled()java.lang.StringexportCSV(java.lang.String filename, boolean showHeaders)java.lang.StringexportHTML(java.lang.String filename, java.lang.String title, int width)voidfireCellEditedEvent(java.lang.Object oldValue, java.lang.Object newValue, int row, int column)protected voidfireColumnAttributesUpdated()intgetAutoResizeMode()java.awt.ColorgetBackground()Table will be null on JScrollPane's constructorintgetBackgroundColorMode()CellListener[]getCellListeners()intgetClickCountToStart()java.util.Map<java.lang.String,ColumnAttributes>getColumnAttributes()ColumnAttributesgetColumnAttributes(java.lang.Object id)Returns the ColumnAttributes object associated with the given ID.DatasetgetColumnAttributesData()java.lang.StringgetColumnId(int idx)booleangetColumnSelectionAllowed()DatasetgetData()java.lang.StringgetDataAsHTML(java.lang.String title, int width)java.util.Map<java.lang.String,ExtensionFunction>getExtensionFunctions()java.awt.FontgetFont()Table will be null on JScrollPane's constructorjava.awt.ColorgetForeground()Table will be null on JScrollPane's constructorjava.awt.ColorgetGridColor()java.awt.FontgetHeaderFont()java.awt.ColorgetHeaderForeground()intgetInitialRowSelection()java.lang.StringgetMappingColumnId()ColorStateTablegetMappingTable()javax.swing.table.TableModelgetModel()java.awt.ColorgetOddBackground()intgetPropertiesLoading()javax.swing.table.TableCellRenderergetRenderer()intgetRowHeight()booleangetRowSelectionAllowed()int[]getRowsInViewOrder()intgetSelectedColumn()intgetSelectedColumnCount()int[]getSelectedColumns()intgetSelectedRow()intgetSelectedRowCount()int[]getSelectedRows()java.awt.ColorgetSelectionBackground()java.awt.ColorgetSelectionForeground()intgetSelectionMode()booleangetShowHorizontalLines()booleangetShowVerticalLines()javax.swing.JTablegetTable()javax.swing.table.JTableHeadergetTableHeader()TableSelectionListener[]getTableSelectionListeners()Deprecated.intgetTouchscreenMode()protected voidinitRenderers()voidinsertRow(org.python.core.PySequence row)booleanisCellSelected(int row, int column)booleanisColumnSelected(int column)booleanisComponentEnabled()booleanisHeaderVisible()booleanisOverlaysEnabled()booleanisResizingAllowed()booleanisRowSelected(int row)booleanisTest()voidlocaleChanged(java.util.Locale newLocale)intmodelIndexToColumnIndex(int modelIndex)Converts between a column's model index to the TableColumnModel's indexprotected voidonStartup()Subclasses should override this to provide startup logic.booleanprint(org.python.core.PyObject[] pyArgs, java.lang.String[] keywords)voidremoveCellListener(CellListener listener)voidremoveRow(int row)voidremoveTableSelectionListener(TableSelectionListener l)Deprecated.voidsetAutoResizeMode(int i)voidsetBackground(java.awt.Color color)voidsetBackgroundColorMode(int i)voidsetClickCountToStart(int clickCountToStart)voidsetColumnAttributes(java.util.Map<java.lang.String,ColumnAttributes> columnAttributes)voidsetColumnAttributesData(Dataset columnAttributesData)voidsetColumnConfiguration(PMITable.ColumnConfig config)Deprecated.voidsetColumnLabel(int idx, java.lang.String label)voidsetColumnSelectionAllowed(boolean columnSelectionAllowed)booleansetColumnSelectionInterval(int index0, int index1)voidsetColumnWidth(int idx, int width)voidsetComponentEnabled(boolean componentEnabled)voidsetData(Dataset newDataset)voidsetExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)voidsetFont(java.awt.Font f)Table will be null on JScrollPane's constructorvoidsetForeground(java.awt.Color color)Table will be null on JScrollPane's constructorvoidsetGridColor(java.awt.Color gridColor)voidsetHeaderFont(java.awt.Font headerFont)voidsetHeaderForeground(java.awt.Color headerForeground)voidsetHeaderVisible(boolean headerVisible)voidsetHideFirstColumn(boolean b)Deprecated.voidsetInitialRowSelection(int initialRowSelection)voidsetMappingColumn(int i)Deprecated.voidsetMappingColumnId(java.lang.String mappingColumnId)voidsetMappingTable(ColorStateTable table)voidsetName(java.lang.String newName)voidsetOddBackground(java.awt.Color color)voidsetOverlaysEnabled(boolean overlaysEnabled)voidsetPropertiesLoading(int i)voidsetResizingAllowed(boolean resizingAllowed)voidsetRowHeight(int rowHeight)voidsetRowSelectionAllowed(boolean rowSelectionAllowed)booleansetRowSelectionInterval(int index0, int index1)voidsetSelectedColumn(int col)voidsetSelectedRow(int row)voidsetSelectionBackground(java.awt.Color selectionBackground)voidsetSelectionForeground(java.awt.Color selectionForeground)voidsetSelectionMode(int i)voidsetShowHorizontalLines(boolean showHorizontalLines)voidsetShowVerticalLines(boolean showVerticalLines)voidsetTest(boolean test)voidsetTouchscreenMode(int touchscreenMode)voidsetValue(int row, int col, org.python.core.PyObject value)voidsetValue(int row, java.lang.String col, org.python.core.PyObject value)voidsortByColumn(java.lang.String columnName)voidsortByColumn(java.lang.String columnName, boolean ascending)voidsortOriginal()java.lang.StringtoString()voidupdateRow(int row, org.python.core.PyDictionary changes)booleanupdateWidths()make sure that the widths on the ColumnAttributes represent the currently configured widths of the actual columns-
Methods inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionScrollPane
getAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, onShutdown, paintChildren, paintComponent, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setPropertyValue, setQuality, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, updateQuality
-
Methods inherited from class javax.swing.JScrollPane
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, 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, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, 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, transferFocusDownCycle, validate, validateTree
-
Methods 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, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
getAppContext, shutdownComponent, startupComponent
-
-
-
-
Field Detail
-
BG_CONSTANT
public static final int BG_CONSTANT
- See Also:
- Constant Field Values
-
BG_ALTERNATING
public static final int BG_ALTERNATING
- See Also:
- Constant Field Values
-
BG_MAPPED
public static final int BG_MAPPED
- See Also:
- Constant Field Values
-
table
protected javax.swing.JTable table
-
data
protected Dataset data
This is the actual data that the table displays
-
sortModel
protected SortTableModel sortModel
This TableModel looks at the rootModel, providing sorting on top of it
-
rootModel
protected com.inductiveautomation.factorypmi.application.components.PMITable.DataSetTableModel rootModel
This is the root TableModel for the table, which looks at the data variable.
-
renderer
protected com.inductiveautomation.factorypmi.application.components.PMITable.HMITableCellRenderer renderer
-
oddBackground
protected java.awt.Color oddBackground
-
backgroundColorMode
protected int backgroundColorMode
-
mappingTable
protected ColorStateTable mappingTable
-
mappingColumn
@Deprecated protected int mappingColumn
Deprecated.The mapping column number is now deprecated in favor of the mapping column ID
-
mappingColumnId
protected java.lang.String mappingColumnId
-
headerVisible
protected boolean headerVisible
Controls the visibility of the table's JTableHeader
-
resizingAllowed
protected boolean resizingAllowed
-
overlaysEnabled
protected boolean overlaysEnabled
-
columnConfiguration
@Deprecated protected PMITable.ColumnConfig columnConfiguration
Deprecated.This is used ONLY for backwards compatibility. see setHideFirstColumn and setColumnConfiguration
-
columnAttributes
protected java.util.Map<java.lang.String,ColumnAttributes> columnAttributes
-
columnAttributesData
protected Dataset columnAttributesData
-
initialRowSelection
protected int initialRowSelection
This is used to have the table automatically select a row upon 'first data', that is, whenever the data is set to a positive number of rows when it was previously zero
-
selectionMode
protected int selectionMode
-
listenerList
protected javax.swing.event.EventListenerList listenerList
-
headerFont
protected java.awt.Font headerFont
-
headerForeground
protected java.awt.Color headerForeground
-
TOUCH_SCREEN_MODE_AUTO
public static final int TOUCH_SCREEN_MODE_AUTO
- See Also:
- Constant Field Values
-
TOUCH_SCREEN_MODE_NONE
public static final int TOUCH_SCREEN_MODE_NONE
- See Also:
- Constant Field Values
-
touchscreenMode
protected int touchscreenMode
-
clickCountToStart
protected int clickCountToStart
-
relayListener
protected com.inductiveautomation.factorypmi.application.components.PMITable.SelectionRelayListener relayListener
-
-
Method Detail
-
localeChanged
public void localeChanged(java.util.Locale newLocale)
- Specified by:
localeChangedin interfaceLocaleListener- Overrides:
localeChangedin classAbstractVisionScrollPane
-
onStartup
protected void onStartup()
Description copied from class:AbstractVisionScrollPaneSubclasses should override this to provide startup logic.- Overrides:
onStartupin classAbstractVisionScrollPane
-
initRenderers
protected void initRenderers()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.awt.Component
-
getModel
public javax.swing.table.TableModel getModel()
-
setName
public void setName(java.lang.String newName)
- Overrides:
setNamein classAbstractVisionScrollPane
-
getColumnAttributes
public ColumnAttributes getColumnAttributes(java.lang.Object id)
Returns the ColumnAttributes object associated with the given ID. If no attributes are associated with that id, the default attributes are returned.
-
getColumnAttributesData
public Dataset getColumnAttributesData()
-
setColumnWidth
public void setColumnWidth(int idx, int width)
-
setColumnLabel
public void setColumnLabel(int idx, java.lang.String label)
-
getColumnId
public java.lang.String getColumnId(int idx)
-
getSelectedRow
public int getSelectedRow()
-
setSelectedRow
public void setSelectedRow(int row)
-
getData
public Dataset getData()
- Specified by:
getDatain interfaceCustomizableTable<ColumnAttributes>
-
setData
public void setData(Dataset newDataset)
-
print
public boolean print(org.python.core.PyObject[] pyArgs, java.lang.String[] keywords)
-
sortByColumn
public void sortByColumn(java.lang.String columnName)
-
sortByColumn
public void sortByColumn(java.lang.String columnName, boolean ascending)
-
sortOriginal
public void sortOriginal()
-
getDataAsHTML
public java.lang.String getDataAsHTML(java.lang.String title, int width)
-
exportHTML
public java.lang.String exportHTML(java.lang.String filename, java.lang.String title, int width)
-
getBackground
public java.awt.Color getBackground()
Table will be null on JScrollPane's constructor- Overrides:
getBackgroundin classjava.awt.Component
-
getForeground
public java.awt.Color getForeground()
Table will be null on JScrollPane's constructor- Overrides:
getForegroundin classjava.awt.Component
-
getFont
public java.awt.Font getFont()
Table will be null on JScrollPane's constructor- Specified by:
getFontin interfacejava.awt.MenuContainer- Overrides:
getFontin classjava.awt.Component
-
setBackground
public void setBackground(java.awt.Color color)
- Overrides:
setBackgroundin classjavax.swing.JComponent
-
setForeground
public void setForeground(java.awt.Color color)
Table will be null on JScrollPane's constructor- Overrides:
setForegroundin classjavax.swing.JComponent
-
isComponentEnabled
public boolean isComponentEnabled()
- Specified by:
isComponentEnabledin interfaceEnabledEx
-
setComponentEnabled
public void setComponentEnabled(boolean componentEnabled)
- Specified by:
setComponentEnabledin interfaceEnabledEx
-
evaluateEnabled
public void evaluateEnabled()
- Specified by:
evaluateEnabledin interfaceEnabledEx
-
getExtensionFunctions
public java.util.Map<java.lang.String,ExtensionFunction> getExtensionFunctions()
- Specified by:
getExtensionFunctionsin interfaceExtensibleComponent
-
setExtensionFunctions
public void setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
- Specified by:
setExtensionFunctionsin interfaceExtensibleComponent
-
getSelectionBackground
public java.awt.Color getSelectionBackground()
-
getSelectionForeground
public java.awt.Color getSelectionForeground()
-
setSelectionBackground
public void setSelectionBackground(java.awt.Color selectionBackground)
-
setSelectionForeground
public void setSelectionForeground(java.awt.Color selectionForeground)
-
setFont
public void setFont(java.awt.Font f)
Table will be null on JScrollPane's constructor- Overrides:
setFontin classjavax.swing.JComponent
-
getHeaderFont
public java.awt.Font getHeaderFont()
-
setHeaderFont
public void setHeaderFont(java.awt.Font headerFont)
-
getHeaderForeground
public java.awt.Color getHeaderForeground()
-
setHeaderForeground
public void setHeaderForeground(java.awt.Color headerForeground)
-
isTest
public boolean isTest()
-
setTest
public void setTest(boolean test)
-
setHideFirstColumn
@Deprecated public void setHideFirstColumn(boolean b)
Deprecated.This is included for backwards compatability. This will just set the 'hidden' property of the first column to true
-
fireColumnAttributesUpdated
protected void fireColumnAttributesUpdated()
-
getBackgroundColorMode
public int getBackgroundColorMode()
-
getOddBackground
public java.awt.Color getOddBackground()
-
setBackgroundColorMode
public void setBackgroundColorMode(int i)
-
setOddBackground
public void setOddBackground(java.awt.Color color)
-
getMappingTable
public ColorStateTable getMappingTable()
-
setMappingTable
public void setMappingTable(ColorStateTable table)
-
setMappingColumn
@Deprecated public void setMappingColumn(int i)
Deprecated.Included for backwards compatability
-
getMappingColumnId
public java.lang.String getMappingColumnId()
-
setMappingColumnId
public void setMappingColumnId(java.lang.String mappingColumnId)
-
getAutoResizeMode
public int getAutoResizeMode()
-
setAutoResizeMode
public void setAutoResizeMode(int i)
-
getColumnAttributes
public java.util.Map<java.lang.String,ColumnAttributes> getColumnAttributes()
- Specified by:
getColumnAttributesin interfaceCustomizableTable<ColumnAttributes>
-
updateWidths
public boolean updateWidths()
Description copied from interface:CustomizableTablemake sure that the widths on the ColumnAttributes represent the currently configured widths of the actual columns- Specified by:
updateWidthsin interfaceCustomizableTable<ColumnAttributes>
-
setColumnAttributes
public void setColumnAttributes(java.util.Map<java.lang.String,ColumnAttributes> columnAttributes)
- Specified by:
setColumnAttributesin interfaceCustomizableTable<ColumnAttributes>- Parameters:
columnAttributes- the columnAttributes to set
-
setColumnAttributesData
public void setColumnAttributesData(Dataset columnAttributesData)
- Parameters:
columnAttributesData- the columnAttributesData to set
-
getRenderer
public javax.swing.table.TableCellRenderer getRenderer()
-
setColumnConfiguration
@Deprecated public void setColumnConfiguration(PMITable.ColumnConfig config)
Deprecated.This sets the field so that
-
getSelectionMode
public int getSelectionMode()
-
setSelectionMode
public void setSelectionMode(int i)
-
getColumnSelectionAllowed
public boolean getColumnSelectionAllowed()
-
getRowSelectionAllowed
public boolean getRowSelectionAllowed()
-
setColumnSelectionAllowed
public void setColumnSelectionAllowed(boolean columnSelectionAllowed)
-
setRowSelectionAllowed
public void setRowSelectionAllowed(boolean rowSelectionAllowed)
-
getShowHorizontalLines
public boolean getShowHorizontalLines()
-
getShowVerticalLines
public boolean getShowVerticalLines()
-
getGridColor
public java.awt.Color getGridColor()
-
setShowHorizontalLines
public void setShowHorizontalLines(boolean showHorizontalLines)
-
setShowVerticalLines
public void setShowVerticalLines(boolean showVerticalLines)
-
setGridColor
public void setGridColor(java.awt.Color gridColor)
-
getClickCountToStart
public int getClickCountToStart()
- Specified by:
getClickCountToStartin interfaceTouchscreenEnabledTable
-
setClickCountToStart
public void setClickCountToStart(int clickCountToStart)
-
getSelectedColumn
public int getSelectedColumn()
-
columnIndexToModelIndex
public int columnIndexToModelIndex(int columnIndex)
Converts between a TableColumnModel index to the underlying dataset's column index
-
modelIndexToColumnIndex
public int modelIndexToColumnIndex(int modelIndex)
Converts between a column's model index to the TableColumnModel's index
-
setSelectedColumn
public void setSelectedColumn(int col)
-
getSelectedColumnCount
public int getSelectedColumnCount()
-
getSelectedColumns
public int[] getSelectedColumns()
-
getSelectedRowCount
public int getSelectedRowCount()
-
getRowsInViewOrder
public int[] getRowsInViewOrder()
-
getInitialRowSelection
public int getInitialRowSelection()
-
setInitialRowSelection
public void setInitialRowSelection(int initialRowSelection)
-
getSelectedRows
public int[] getSelectedRows()
-
isCellSelected
public boolean isCellSelected(int row, int column)
-
isColumnSelected
public boolean isColumnSelected(int column)
-
isRowSelected
public boolean isRowSelected(int row)
-
setColumnSelectionInterval
public boolean setColumnSelectionInterval(int index0, int index1)
-
setRowSelectionInterval
public boolean setRowSelectionInterval(int index0, int index1)
-
getPropertiesLoading
public int getPropertiesLoading()
- Specified by:
getPropertiesLoadingin interfaceLoadingMonitor
-
setPropertiesLoading
public void setPropertiesLoading(int i)
- Specified by:
setPropertiesLoadingin interfaceLoadingMonitor
-
getRowHeight
public int getRowHeight()
-
setRowHeight
public void setRowHeight(int rowHeight)
-
isHeaderVisible
public boolean isHeaderVisible()
-
setHeaderVisible
public void setHeaderVisible(boolean headerVisible)
-
isResizingAllowed
public boolean isResizingAllowed()
-
setResizingAllowed
public void setResizingAllowed(boolean resizingAllowed)
-
addTableSelectionListener
@Deprecated public void addTableSelectionListener(TableSelectionListener l)
Deprecated.The table selection listener stuff isn't used since custom listeners don't seems to serialize correctly b/c of classloader issue
-
removeTableSelectionListener
@Deprecated public void removeTableSelectionListener(TableSelectionListener l)
Deprecated.The table selection listener stuff isn't used since custom listeners don't seems to serialize correctly b/c of classloader issue
-
getTableSelectionListeners
@Deprecated public TableSelectionListener[] getTableSelectionListeners()
Deprecated.The table selection listener stuff isn't used since custom listeners don't seems to serialize correctly b/c of classloader issue
-
addCellListener
public void addCellListener(CellListener listener)
-
removeCellListener
public void removeCellListener(CellListener listener)
-
getCellListeners
public CellListener[] getCellListeners()
-
fireCellEditedEvent
public void fireCellEditedEvent(java.lang.Object oldValue, java.lang.Object newValue, int row, int column)
-
addRow
public void addRow(org.python.core.PySequence row)
-
insertRow
public void insertRow(org.python.core.PySequence row)
-
deleteRow
public void deleteRow(int row)
-
removeRow
public void removeRow(int row)
-
updateRow
public void updateRow(int row, org.python.core.PyDictionary changes)
-
setValue
public void setValue(int row, int col, org.python.core.PyObject value)
-
setValue
public void setValue(int row, java.lang.String col, org.python.core.PyObject value)
-
isOverlaysEnabled
public boolean isOverlaysEnabled()
-
setOverlaysEnabled
public void setOverlaysEnabled(boolean overlaysEnabled)
-
exportCSV
public java.lang.String exportCSV(java.lang.String filename, boolean showHeaders)
-
getTable
public javax.swing.JTable getTable()
-
getTableHeader
public javax.swing.table.JTableHeader getTableHeader()
-
getTouchscreenMode
public int getTouchscreenMode()
- Specified by:
getTouchscreenModein interfaceTouchscreenEnabledTable
-
setTouchscreenMode
public void setTouchscreenMode(int touchscreenMode)
-
-