public class TableIcon extends DynamicEditorIcon
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected static double |
_HORIZONTAL_PADDING
The amount of padding to use around the edges.
|
protected static java.awt.Font |
_labelFont
The font used.
|
protected static double |
_VERTICAL_PADDING
The amount of padding to use around the edges.
|
ColorAttribute |
boxColor
Color of the box.
|
StringParameter |
colorKey
A column name to use as a color key.
|
Parameter |
fields
The fields to display in the table.
|
Parameter |
maxRows
The maximum number of rows to display.
|
StringParameter |
variableName
The name of the variable in the container
whose value should be displayed in the icon.
|
_figures
_containerToBe, _iconCache
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TableIcon(NamedObj container,
java.lang.String name)
Create a new icon with the given name in the given container.
|
Modifier and Type | Method and Description |
---|---|
Figure |
createBackgroundFigure()
Create a new background figure.
|
_addLiveFigure, _liveFigureIterator, _trimLiveFigures, clone
_createDefaultBackgroundFigure, _isPropertySet, _recreateFigure, createFigure, createIcon, getContainerOrContainerToBe, setContainerToBe
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public ColorAttribute boxColor
public StringParameter colorKey
public Parameter fields
public Parameter maxRows
public StringParameter variableName
protected static final java.awt.Font _labelFont
protected static final double _HORIZONTAL_PADDING
protected static final double _VERTICAL_PADDING
public TableIcon(NamedObj container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container for this attribute.name
- The name of this attribute.IllegalActionException
- If thrown by the parent
class or while setting an attributeNameDuplicationException
- If the name coincides with
an attribute already in the container.public Figure createBackgroundFigure()
createBackgroundFigure
in class EditorIcon