Class JTableShape
- java.lang.Object
-
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
public class JTableShape extends JComponentShape
A RMShape subclass for JTable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
-
Constructor Summary
Constructors Constructor Description JTableShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchildrenSuperSelectImmediately()Editor method - overrides default implementation to indicate children should super select immediately.protected voidconfigureComponent(JBuilder aBldr, javax.swing.JComponent aComp)Configures the component.voidcreateComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp)Override to add children as TableColumns.voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.booleangetAutoCreateRowSorter()Returns whether to auto create row sorter.intgetAutoResizeMode()Returns the auto resize mode.java.lang.StringgetAutoResizeModeString()Returns the auto resize mode for the given JTable as a simple string.intgetColumnCount()Returns the number of columns.booleangetColumnSelectionAllowed()Returns whether column selection is allowed.JTableColumnShapegetColumnShape(int anIndex)Returns the column shape at given index.java.lang.Class<? extends javax.swing.JComponent>getComponentClass()Returns the component class for this component shape.RMColorgetGridColor()Returns grid color.java.awt.DimensiongetIntercellSpacing()Returns the intercell spacing.intgetRowHeight()Returns the row height.booleangetRowSelectionAllowed()Returns whether row selection is allowed.intgetSelectionMode()Returns the selection mode.java.lang.StringgetSelectionModeString()Returns the selection mode string for a table.booleangetShowHeader()Returns whether to show header.booleangetShowHorizontalLines()Returns whether to show horizontal lines.booleangetShowVerticalLines()Returns whether to show vertical lines.protected voidlayoutChildren()Performs layout.voidsetAutoCreateRowSorter(boolean aValue)Sets whether to auto create row sorter.voidsetAutoResizeMode(int aValue)Sets the auto resize mode.voidsetAutoResizeModeString(java.lang.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(java.awt.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(java.lang.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.booleansuperSelectable()Editor method - overrides default implementation to indicate shape is super selectable.RXElementtoXMLShape(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.swing.shape.JComponentShape
acceptsMouse, 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, toXMLChildren
-
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShape
addChild, 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, toXML
-
Methods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, 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, y
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getShowHeader
public boolean getShowHeader()
Returns whether to show header.
-
setShowHeader
public void setShowHeader(boolean aValue)
Sets whether to show header.
-
getRowSelectionAllowed
public boolean getRowSelectionAllowed()
Returns whether row selection is allowed.
-
setRowSelectionAllowed
public void setRowSelectionAllowed(boolean aValue)
Sets whether row selection is allowed.
-
getColumnSelectionAllowed
public boolean getColumnSelectionAllowed()
Returns whether column selection is allowed.
-
setColumnSelectionAllowed
public void setColumnSelectionAllowed(boolean aValue)
Sets whether row selection is allowed.
-
getAutoResizeMode
public int getAutoResizeMode()
Returns the auto resize mode.
-
setAutoResizeMode
public void setAutoResizeMode(int aValue)
Sets the auto resize mode.
-
getAutoResizeModeString
public java.lang.String getAutoResizeModeString()
Returns the auto resize mode for the given JTable as a simple string.
-
setAutoResizeModeString
public void setAutoResizeModeString(java.lang.String aString)
Set the auto resize mode for a table from the given string.
-
getSelectionMode
public int getSelectionMode()
Returns the selection mode.
-
setSelectionMode
public void setSelectionMode(int aValue)
Sets the selection mode.
-
getSelectionModeString
public java.lang.String getSelectionModeString()
Returns the selection mode string for a table.
-
setSelectionModeString
public void setSelectionModeString(java.lang.String aString)
Sets the selection mode for a table from given string.
-
getShowHorizontalLines
public boolean getShowHorizontalLines()
Returns whether to show horizontal lines.
-
setShowHorizontalLines
public void setShowHorizontalLines(boolean aValue)
Sets whether to show horizontal lines.
-
getShowVerticalLines
public boolean getShowVerticalLines()
Returns whether to show vertical lines.
-
setShowVerticalLines
public void setShowVerticalLines(boolean aValue)
Sets whether to show vertical lines.
-
getAutoCreateRowSorter
public boolean getAutoCreateRowSorter()
Returns whether to auto create row sorter.
-
setAutoCreateRowSorter
public void setAutoCreateRowSorter(boolean aValue)
Sets whether to auto create row sorter.
-
getGridColor
public RMColor getGridColor()
Returns grid color.
-
setGridColor
public void setGridColor(RMColor aValue)
Sets grid color.
-
getRowHeight
public int getRowHeight()
Returns the row height.
-
setRowHeight
public void setRowHeight(int aValue)
Sets the row height.
-
getIntercellSpacing
public java.awt.Dimension getIntercellSpacing()
Returns the intercell spacing.
-
setIntercellSpacing
public void setIntercellSpacing(java.awt.Dimension aValue)
Sets the intercell spacing.
-
getColumnCount
public int getColumnCount()
Returns the number of columns.
-
getColumnShape
public JTableColumnShape getColumnShape(int anIndex)
Returns the column shape at given index.
-
superSelectable
public boolean superSelectable()
Editor method - overrides default implementation to indicate shape is super selectable.- Overrides:
superSelectablein classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()
Editor method - overrides default implementation to indicate children should super select immediately.- Overrides:
childrenSuperSelectImmediatelyin classRMShape
-
layoutChildren
protected void layoutChildren()
Performs layout.- Overrides:
layoutChildrenin classRMParentShape
-
getComponentClass
public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
Returns the component class for this component shape.- Overrides:
getComponentClassin classJComponentShape
-
configureComponent
protected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
Configures the component.- Overrides:
configureComponentin classJComponentShape
-
createComponentDeep
public void createComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp)
Override to add children as TableColumns.- Overrides:
createComponentDeepin classJComponentShape
-
toXMLShape
public RXElement toXMLShape(RXArchiver anArchiver)
XML archival.- Overrides:
toXMLShapein classJComponentShape
-
fromXMLShape
public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Overrides:
fromXMLShapein classJComponentShape
-
-