|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gui.properties.GUIProperty
ptolemy.actor.gui.properties.Separator
public class Separator
A GUI property that encloses a JSeparator component.
Red (tfeng) |
Red (tfeng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
StringParameter |
orientation
The orientation of the JSeparator, which should be either "Horizontal" or "Vertical". |
Fields inherited from class ptolemy.actor.gui.properties.GUIProperty |
---|
preferredSize |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
Separator(NamedObj container,
java.lang.String name)
Construct a GUI property with the given name contained by the specified entity. |
|
Separator(NamedObj container,
java.lang.String name,
javax.swing.JComponent component)
Construct a GUI property with the given name contained by the specified entity with the given Java Swing component. |
|
Separator(NamedObj container,
java.lang.String name,
javax.swing.JComponent component,
java.lang.Object constraint)
Construct a GUI property with the given name contained by the specified entity with the given Java Swing component and the given layout constraint. |
|
Separator(NamedObj container,
java.lang.String name,
java.lang.Object constraint)
Construct a GUI property with the given name contained by the specified entity with the given layout constraint. |
Method Summary | |
---|---|
protected javax.swing.JComponent |
_createComponent()
Create a new JSeparator component. |
private void |
_init()
Initialize this separator. |
void |
attributeChanged(Attribute attribute)
React to a change in an attribute. |
Methods inherited from class ptolemy.actor.gui.properties.GUIProperty |
---|
getComponent, setContainer |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public StringParameter orientation
Constructor Detail |
---|
public Separator(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.
IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.
NameDuplicationException
- If the name coincides with
an attribute already in the container.public Separator(NamedObj container, java.lang.String name, javax.swing.JComponent component) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.component
- The Java Swing component.
IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.
NameDuplicationException
- If the name coincides with
an attribute already in the container.public Separator(NamedObj container, java.lang.String name, javax.swing.JComponent component, java.lang.Object constraint) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.component
- The Java Swing component.constraint
- The layout constraint.
IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.
NameDuplicationException
- If the name coincides with
an attribute already in the container.public Separator(NamedObj container, java.lang.String name, java.lang.Object constraint) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.constraint
- The layout constraint.
IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.
NameDuplicationException
- If the name coincides with
an attribute already in the container.Method Detail |
---|
public void attributeChanged(Attribute attribute) throws IllegalActionException
orientation
, then the orientation of the JSeparator
component in this GUI property is adjusted accordingly.
attributeChanged
in class GUIProperty
attribute
- The attribute that changed.
IllegalActionException
- If the change is not acceptable
to this container (not thrown in this base class).protected javax.swing.JComponent _createComponent() throws IllegalActionException
_createComponent
in class GUIProperty
IllegalActionException
- Not thrown in this base class.private void _init() throws IllegalActionException, NameDuplicationException
IllegalActionException
- If the parameter is not of an
acceptable class for the container.
NameDuplicationException
- If the name coincides with
a parameter already in the container.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |