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, useObjectEqualsclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributedLabelpublic DeployElement()
public DeployElement(HashStructure hash)
public java.lang.String getToolTipText()
DisplayableDisplayable.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel().getToolTipText in interface DisplayableDisplayable.public void attach(Observer observer)
SubjectSubject interface
changes.
Implementors should do nothing when the same observer is added more
than once.public void detach(Observer observer)
SubjectSubject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.public void notifyObservers(java.lang.Object subject,
UpdateMessage change)
SubjectnotifyObservers in interface Subjectsubject - the subject whose state has changed.change - what changed.public boolean isDirty()
Dirtyablepublic void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.public void setOwner(Dirtyable containing)
SubDirtyableSubDirtyable implementation will be persisted.setOwner in interface SubDirtyablecontaining - The Dirtyable object in which this
SubDirtyable will be saved.public void linkContainingDirtyable(Dirtyable containing)
linkContainingDirtyable in interface LinkedDirtyablepublic void unlinkContainingDirtyable(Dirtyable containing)
unlinkContainingDirtyable in interface LinkedDirtyablepublic void linkEmbeddedDirtyable(Dirtyable embedded)
linkEmbeddedDirtyable in interface LinkedDirtyablepublic void unlinkEmbeddedDirtyable(Dirtyable embedded)
unlinkEmbeddedDirtyable in interface LinkedDirtyablepublic 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 Elementtrue if this Element may contain
child Elements.Element.mayHaveChildren()public java.util.Iterator getChildren()
Element interface. This implementation always
returns null.getChildren in interface ElementIterator over any child Elements
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 ElementElement.getAttributes()public java.lang.String getShortLabel()
DisplayableString 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 DisplayableDisplayable
that can be shown to the user.public java.lang.String getLongLabel()
getShortLabel().getLongLabel in interface DisplayableDisplayable that
can be shown to the user.Displayable.getLongLabel()public javax.swing.Icon getIcon()
getIcon in interface DisplayableIcon to be displayed for the
Displayable.Displayable.getIcon()public java.lang.String toString()
getShortLabel().toString in interface DisplayabletoString in class java.lang.ObjectDisplayable.toString()