Package com.nomagic.magicdraw.properties
Class PageFormatProperty
- java.lang.Object
-
- com.nomagic.magicdraw.properties.Property
-
- com.nomagic.magicdraw.properties.PageFormatProperty
-
- All Implemented Interfaces:
PropertyVisitorAcceptor
,java.lang.Cloneable
@OpenApiAll public class PageFormatProperty extends Property
The property for storingjava.awt.print.PageFormat
value. Current implementation does not provide some editor for this value.- See Also:
PageFormat
-
-
Field Summary
-
Fields inherited from class com.nomagic.magicdraw.properties.Property
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
-
-
Constructor Summary
Constructors Constructor Description PageFormatProperty()
Default constructor.PageFormatProperty(java.lang.String id, java.awt.print.PageFormat value)
The property constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PropertyVisitor v)
Accepts the given visitor.PageFormatProperty
clone()
Clones the property.java.lang.String
getClassType()
Returns property class type.java.awt.print.PageFormat
getPageFormat()
Returns value asPageFormat
.-
Methods inherited from class com.nomagic.magicdraw.properties.Property
_getValue, _isFrozen, _setFrozen, _setValue, addPropertyChangeListener, addSource, addSources, areValuesEqual, checkFrozen, checkFrozen, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getFirstElementFromSources, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSourceAsElement, getSources, getSourcesAsStream, getUndefinedString, getUndefinedString, getValue, getValueStringRepresentation, hashCode, isEditable, isUndefinedState, isValueCompatible, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, setValue, toString
-
-
-
-
Constructor Detail
-
PageFormatProperty
public PageFormatProperty()
Default constructor. Value of the property will be null. ID will be empty string.
-
PageFormatProperty
public PageFormatProperty(java.lang.String id, java.awt.print.PageFormat value)
The property constructor.- Parameters:
id
- the ID of property.value
- the PageFormat value of the property.
-
-
Method Detail
-
accept
public void accept(PropertyVisitor v) throws java.lang.Exception
Description copied from class:Property
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classProperty
- Parameters:
v
- the PropertyVisitor.- Throws:
java.lang.Exception
-
getPageFormat
public java.awt.print.PageFormat getPageFormat()
Returns value asPageFormat
.- Returns:
- value as
PageFormat
.
-
getClassType
public java.lang.String getClassType()
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classProperty
- Returns:
- PropertyID.PAGE_FORMAT
- See Also:
PropertyID.PAGE_FORMAT
-
clone
public PageFormatProperty clone()
Description copied from class:Property
Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.
-
-