public class DeployElement extends HashStructureAdapter implements Subject, LinkedDirtyable, Element, Displayable, Deployable
DefaultElement
that also implements the LinkedDirtyable
interface._hash
Constructor and Description |
---|
DeployElement()
Default constructor required for JavaBean status.
|
DeployElement(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the
Subject interface changes. |
void |
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the
Subject interface changes. |
Attributes |
getAttributes()
Part of the
Element interface. |
java.util.Iterator |
getChildren()
Part of the
Element interface. |
java.lang.Object |
getData()
Part of the
Data interface. |
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
java.lang.String |
getLongLabel()
This implementation delegates to
getShortLabel() . |
java.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user.
|
java.lang.String |
getToolTipText()
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this
Displayable . |
boolean |
isDirty()
True if the data in the object has been modified.
|
void |
linkContainingDirtyable(Dirtyable containing) |
void |
linkEmbeddedDirtyable(Dirtyable embedded) |
void |
linkEmbeddedDirtyable(LinkedDirtyable embedded) |
void |
linkEmbeddedDirtyables(LinkedDirtyable[] embedded) |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
boolean |
mayHaveChildren()
Part of the
Element interface. |
void |
notifyObservers(java.lang.Object subject, UpdateMessage change)
Notifies all observers that the state of the subject has changed.
|
void |
setOwner(Dirtyable containing)
This method should be called to set the document in which a
SubDirtyable implementation will be persisted. |
java.lang.String |
toString()
This implementation delegates to
getShortLabel() . |
void |
unlinkContainingDirtyable(Dirtyable containing) |
void |
unlinkEmbeddedDirtyable(Dirtyable embedded) |
void |
unlinkEmbeddedDirtyable(LinkedDirtyable embedded) |
void |
unlinkEmbeddedDirtyables(LinkedDirtyable[] embedded) |
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
public DeployElement()
public DeployElement(HashStructure hash)
public java.lang.String getToolTipText()
Displayable
Displayable
. In many cases it may be appropriate for this method to return the same value as Displayable.getLongLabel()
.getToolTipText
in interface Displayable
Displayable
.public void attach(Observer observer)
Subject
Subject
interface changes. Implementors should do nothing when the same observer is added more than once.public void detach(Observer observer)
Subject
Subject
interface changes. Implementors should do nothing when the same observer is removed more than once.public void notifyObservers(java.lang.Object subject, UpdateMessage change)
Subject
notifyObservers
in interface Subject
subject
- the subject whose state has changed.change
- what changed.public boolean isDirty()
Dirtyable
public void markDirty(boolean dirty)
Dirtyable
markDirty(...)
instead of setDirty(...)
so that the JavaBeans Introspector
will not mistakenly identify "dirty" as a JavaBean property.public void setOwner(Dirtyable containing)
SubDirtyable
SubDirtyable
implementation will be persisted.setOwner
in interface SubDirtyable
containing
- The Dirtyable
object in which this SubDirtyable
will be saved.public void linkContainingDirtyable(Dirtyable containing)
linkContainingDirtyable
in interface LinkedDirtyable
public void unlinkContainingDirtyable(Dirtyable containing)
unlinkContainingDirtyable
in interface LinkedDirtyable
public void linkEmbeddedDirtyable(Dirtyable embedded)
linkEmbeddedDirtyable
in interface LinkedDirtyable
public void unlinkEmbeddedDirtyable(Dirtyable embedded)
unlinkEmbeddedDirtyable
in interface LinkedDirtyable
public void linkEmbeddedDirtyable(LinkedDirtyable embedded)
public void unlinkEmbeddedDirtyable(LinkedDirtyable embedded)
public void linkEmbeddedDirtyables(LinkedDirtyable[] embedded)
public void unlinkEmbeddedDirtyables(LinkedDirtyable[] embedded)
public java.lang.Object getData()
Data
interface. This implementation returns this
.public boolean mayHaveChildren()
Element
interface. This implementation always returns false
.mayHaveChildren
in interface Element
true
if this Element
may contain child Element
s.Element.mayHaveChildren()
public java.util.Iterator getChildren()
Element
interface. This implementation always returns null
.getChildren
in interface Element
Iterator
over any child Element
s contained by this Element
. If there are no children, null
is returned.Element.getChildren()
public Attributes getAttributes()
Element
interface. This implementation always returns ElementAttributes.DELETEABLE
.getAttributes
in interface Element
Element.getAttributes()
public java.lang.String getShortLabel()
Displayable
String
is considered translatable and should therefore be placed in an appropriate resource file. When possible, the returned label should be reasonably short enough to show in the navigator or explorer windows but long enough to clearly identify and distinguish the Displayable
.getShortLabel
in interface Displayable
Displayable
that can be shown to the user.public java.lang.String getLongLabel()
getShortLabel()
.getLongLabel
in interface Displayable
Displayable
that can be shown to the user.Displayable.getLongLabel()
public javax.swing.Icon getIcon()
getIcon
in interface Displayable
Icon
to be displayed for the Displayable
.Displayable.getIcon()
public java.lang.String toString()
getShortLabel()
.toString
in interface Displayable
toString
in class java.lang.Object
Displayable.toString()