Class JTableShape
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
A RMShape subclass for JTable.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEditor method - overrides default implementation to indicate children should super select immediately.protected voidconfigureComponent(JBuilder aBldr, JComponent aComp) Configures the component.voidcreateComponentDeep(JBuilder aBldr, JComponent aComp) Override to add children as TableColumns.voidfromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.booleanReturns whether to auto create row sorter.intReturns the auto resize mode.Returns the auto resize mode for the given JTable as a simple string.intReturns the number of columns.booleanReturns whether column selection is allowed.getColumnShape(int anIndex) Returns the column shape at given index.Class<? extends JComponent>Returns the component class for this component shape.Returns grid color.Returns the intercell spacing.intReturns the row height.booleanReturns whether row selection is allowed.intReturns the selection mode.Returns the selection mode string for a table.booleanReturns whether to show header.booleanReturns whether to show horizontal lines.booleanReturns whether to show vertical lines.protected voidPerforms layout.voidsetAutoCreateRowSorter(boolean aValue) Sets whether to auto create row sorter.voidsetAutoResizeMode(int aValue) Sets the auto resize mode.voidsetAutoResizeModeString(String aString) Set the auto resize mode for a table from the given string.voidsetColumnSelectionAllowed(boolean aValue) Sets whether row selection is allowed.voidsetGridColor(RMColor aValue) Sets grid color.voidsetIntercellSpacing(Dimension aValue) Sets the intercell spacing.voidsetRowHeight(int aValue) Sets the row height.voidsetRowSelectionAllowed(boolean aValue) Sets whether row selection is allowed.voidsetSelectionMode(int aValue) Sets the selection mode.voidsetSelectionModeString(String aString) Sets the selection mode for a table from given string.voidsetShowHeader(boolean aValue) Sets whether to show header.voidsetShowHorizontalLines(boolean aValue) Sets whether to show horizontal lines.voidsetShowVerticalLines(boolean aValue) Sets whether to show vertical lines.booleanEditor method - overrides default implementation to indicate shape is super selectable.toXMLShape(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.swing.shape.JComponentShapeacceptsMouse, clone, createComponent, dispatchEventToComponent, firePropertyChange, getAction, getAutoscrolls, getBackground, getBorder, getClientProperty, getComponent, getFont, getForeground, getItemDisplayKey, getRealClassName, getSendActionOnFocusLost, getToolTipText, isEnabled, isFontSet, isOpaque, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintShape, putClientProperty, setAction, setAutoscrolls, setBackground, setBorder, setEnabled, setFont, setForeground, setItemDisplayKey, setOpaque, setRealClassName, setSendActionOnFocusLost, setToolTipText, toXMLChildrenMethods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXMLMethods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
JTableShapepublic JTableShape()
 
- 
- 
Method Details- 
getShowHeaderpublic boolean getShowHeader()Returns whether to show header.
- 
setShowHeaderpublic void setShowHeader(boolean aValue) Sets whether to show header.
- 
getRowSelectionAllowedpublic boolean getRowSelectionAllowed()Returns whether row selection is allowed.
- 
setRowSelectionAllowedpublic void setRowSelectionAllowed(boolean aValue) Sets whether row selection is allowed.
- 
getColumnSelectionAllowedpublic boolean getColumnSelectionAllowed()Returns whether column selection is allowed.
- 
setColumnSelectionAllowedpublic void setColumnSelectionAllowed(boolean aValue) Sets whether row selection is allowed.
- 
getAutoResizeModepublic int getAutoResizeMode()Returns the auto resize mode.
- 
setAutoResizeModepublic void setAutoResizeMode(int aValue) Sets the auto resize mode.
- 
getAutoResizeModeStringReturns the auto resize mode for the given JTable as a simple string.
- 
setAutoResizeModeStringSet the auto resize mode for a table from the given string.
- 
getSelectionModepublic int getSelectionMode()Returns the selection mode.
- 
setSelectionModepublic void setSelectionMode(int aValue) Sets the selection mode.
- 
getSelectionModeStringReturns the selection mode string for a table.
- 
setSelectionModeStringSets the selection mode for a table from given string.
- 
getShowHorizontalLinespublic boolean getShowHorizontalLines()Returns whether to show horizontal lines.
- 
setShowHorizontalLinespublic void setShowHorizontalLines(boolean aValue) Sets whether to show horizontal lines.
- 
getShowVerticalLinespublic boolean getShowVerticalLines()Returns whether to show vertical lines.
- 
setShowVerticalLinespublic void setShowVerticalLines(boolean aValue) Sets whether to show vertical lines.
- 
getAutoCreateRowSorterpublic boolean getAutoCreateRowSorter()Returns whether to auto create row sorter.
- 
setAutoCreateRowSorterpublic void setAutoCreateRowSorter(boolean aValue) Sets whether to auto create row sorter.
- 
getGridColorReturns grid color.
- 
setGridColorSets grid color.
- 
getRowHeightpublic int getRowHeight()Returns the row height.
- 
setRowHeightpublic void setRowHeight(int aValue) Sets the row height.
- 
getIntercellSpacingReturns the intercell spacing.
- 
setIntercellSpacingSets the intercell spacing.
- 
getColumnCountpublic int getColumnCount()Returns the number of columns.
- 
getColumnShapeReturns the column shape at given index.
- 
superSelectablepublic boolean superSelectable()Editor method - overrides default implementation to indicate shape is super selectable.- Overrides:
- superSelectablein class- RMShape
 
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Editor method - overrides default implementation to indicate children should super select immediately.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
- 
layoutChildrenprotected void layoutChildren()Performs layout.- Overrides:
- layoutChildrenin class- RMParentShape
 
- 
getComponentClassReturns the component class for this component shape.- Overrides:
- getComponentClassin class- JComponentShape
 
- 
configureComponentConfigures the component.- Overrides:
- configureComponentin class- JComponentShape
 
- 
createComponentDeepOverride to add children as TableColumns.- Overrides:
- createComponentDeepin class- JComponentShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- JComponentShape
 
- 
fromXMLShapeXML unarchival.- Overrides:
- fromXMLShapein class- JComponentShape
 
 
-