public class JTableShape extends JComponentShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
Constructor and Description |
---|
JTableShape() |
Modifier and Type | Method and Description |
---|---|
boolean |
childrenSuperSelectImmediately()
Editor method - overrides default implementation to indicate children should super select immediately.
|
protected void |
configureComponent(JBuilder aBldr,
javax.swing.JComponent aComp)
Configures the component.
|
void |
createComponentDeep(JBuilder aBldr,
javax.swing.JComponent aComp)
Override to add children as TableColumns.
|
void |
fromXMLShape(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
boolean |
getAutoCreateRowSorter()
Returns whether to auto create row sorter.
|
int |
getAutoResizeMode()
Returns the auto resize mode.
|
java.lang.String |
getAutoResizeModeString()
Returns the auto resize mode for the given JTable as a simple string.
|
int |
getColumnCount()
Returns the number of columns.
|
boolean |
getColumnSelectionAllowed()
Returns whether column selection is allowed.
|
JTableColumnShape |
getColumnShape(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.
|
RMColor |
getGridColor()
Returns grid color.
|
java.awt.Dimension |
getIntercellSpacing()
Returns the intercell spacing.
|
int |
getRowHeight()
Returns the row height.
|
boolean |
getRowSelectionAllowed()
Returns whether row selection is allowed.
|
int |
getSelectionMode()
Returns the selection mode.
|
java.lang.String |
getSelectionModeString()
Returns the selection mode string for a table.
|
boolean |
getShowHeader()
Returns whether to show header.
|
boolean |
getShowHorizontalLines()
Returns whether to show horizontal lines.
|
boolean |
getShowVerticalLines()
Returns whether to show vertical lines.
|
protected void |
layoutChildren()
Performs layout.
|
void |
setAutoCreateRowSorter(boolean aValue)
Sets whether to auto create row sorter.
|
void |
setAutoResizeMode(int aValue)
Sets the auto resize mode.
|
void |
setAutoResizeModeString(java.lang.String aString)
Set the auto resize mode for a table from the given string.
|
void |
setColumnSelectionAllowed(boolean aValue)
Sets whether row selection is allowed.
|
void |
setGridColor(RMColor aValue)
Sets grid color.
|
void |
setIntercellSpacing(java.awt.Dimension aValue)
Sets the intercell spacing.
|
void |
setRowHeight(int aValue)
Sets the row height.
|
void |
setRowSelectionAllowed(boolean aValue)
Sets whether row selection is allowed.
|
void |
setSelectionMode(int aValue)
Sets the selection mode.
|
void |
setSelectionModeString(java.lang.String aString)
Sets the selection mode for a table from given string.
|
void |
setShowHeader(boolean aValue)
Sets whether to show header.
|
void |
setShowHorizontalLines(boolean aValue)
Sets whether to show horizontal lines.
|
void |
setShowVerticalLines(boolean aValue)
Sets whether to show vertical lines.
|
boolean |
superSelectable()
Editor method - overrides default implementation to indicate shape is super selectable.
|
RXElement |
toXMLShape(RXArchiver anArchiver)
XML archival.
|
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
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
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
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public boolean getShowHeader()
public void setShowHeader(boolean aValue)
public boolean getRowSelectionAllowed()
public void setRowSelectionAllowed(boolean aValue)
public boolean getColumnSelectionAllowed()
public void setColumnSelectionAllowed(boolean aValue)
public int getAutoResizeMode()
public void setAutoResizeMode(int aValue)
public java.lang.String getAutoResizeModeString()
public void setAutoResizeModeString(java.lang.String aString)
public int getSelectionMode()
public void setSelectionMode(int aValue)
public java.lang.String getSelectionModeString()
public void setSelectionModeString(java.lang.String aString)
public boolean getShowHorizontalLines()
public void setShowHorizontalLines(boolean aValue)
public boolean getShowVerticalLines()
public void setShowVerticalLines(boolean aValue)
public boolean getAutoCreateRowSorter()
public void setAutoCreateRowSorter(boolean aValue)
public RMColor getGridColor()
public void setGridColor(RMColor aValue)
public int getRowHeight()
public void setRowHeight(int aValue)
public java.awt.Dimension getIntercellSpacing()
public void setIntercellSpacing(java.awt.Dimension aValue)
public int getColumnCount()
public JTableColumnShape getColumnShape(int anIndex)
public boolean superSelectable()
superSelectable
in class RMShape
public boolean childrenSuperSelectImmediately()
childrenSuperSelectImmediately
in class RMShape
protected void layoutChildren()
layoutChildren
in class RMParentShape
public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
getComponentClass
in class JComponentShape
protected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
configureComponent
in class JComponentShape
public void createComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp)
createComponentDeep
in class JComponentShape
public RXElement toXMLShape(RXArchiver anArchiver)
toXMLShape
in class JComponentShape
public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
fromXMLShape
in class JComponentShape