Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.jdeveloper.deploy.dt
Class DeployElement

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.deploy.dt.DeployElement
All Implemented Interfaces:
Displayable, Element, SubDirtyable, Subject, Dirtyable, Deployable, LinkedDirtyable
Direct Known Subclasses:
PlsqlMethod, Profile

public class DeployElement
extends HashStructureAdapter
implements Subject, LinkedDirtyable, Element, Displayable, Deployable

An extension of DefaultElement that also implements the LinkedDirtyable interface.


Field Summary
 
Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash
 
Constructor Summary
DeployElement()
          Default constructor required for JavaBean status.
DeployElement(HashStructure hash)
           
 
Method Summary
 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)
           
 
Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployElement

public DeployElement()
Default constructor required for JavaBean status.


DeployElement

public DeployElement(HashStructure hash)
Method Detail

getToolTipText

public java.lang.String getToolTipText()
Description copied from interface: Displayable
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable. In many cases it may be appropriate for this method to return the same value as Displayable.getLongLabel().

Specified by:
getToolTipText in interface Displayable
Returns:
the tooltip to show when the mouse pointer pauses over a UI component that represents this Displayable.

attach

public void attach(Observer observer)
Description copied from interface: Subject
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface changes. Implementors should do nothing when the same observer is added more than once.

Specified by:
attach in interface Subject
Parameters:
observer - the Observer interested in change notification messages.

detach

public void detach(Observer observer)
Description copied from interface: Subject
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject interface changes. Implementors should do nothing when the same observer is removed more than once.

Specified by:
detach in interface Subject
Parameters:
observer - the Observer disinterested in change notification messages.

notifyObservers

public void notifyObservers(java.lang.Object subject,
                            UpdateMessage change)
Description copied from interface: Subject
Notifies all observers that the state of the subject has changed.

Specified by:
notifyObservers in interface Subject
Parameters:
subject - the subject whose state has changed.
change - what changed.

isDirty

public boolean isDirty()
Description copied from interface: Dirtyable
True if the data in the object has been modified.

Specified by:
isDirty in interface Dirtyable
Returns:
true if the data in the object has been modified.

markDirty

public void markDirty(boolean dirty)
Description copied from interface: Dirtyable
Marks the data with the specified dirty state. This method is called markDirty(...) instead of setDirty(...) so that the JavaBeans Introspector will not mistakenly identify "dirty" as a JavaBean property.

Specified by:
markDirty in interface Dirtyable
Parameters:
dirty - If true, sets the object as being dirty; if false, sets the object as being up-to-date.

setOwner

public void setOwner(Dirtyable containing)
Description copied from interface: SubDirtyable
This method should be called to set the document in which a SubDirtyable implementation will be persisted.

Specified by:
setOwner in interface SubDirtyable
Parameters:
containing - The Dirtyable object in which this SubDirtyable will be saved.

linkContainingDirtyable

public void linkContainingDirtyable(Dirtyable containing)
Specified by:
linkContainingDirtyable in interface LinkedDirtyable

unlinkContainingDirtyable

public void unlinkContainingDirtyable(Dirtyable containing)
Specified by:
unlinkContainingDirtyable in interface LinkedDirtyable

linkEmbeddedDirtyable

public void linkEmbeddedDirtyable(Dirtyable embedded)
Specified by:
linkEmbeddedDirtyable in interface LinkedDirtyable

unlinkEmbeddedDirtyable

public void unlinkEmbeddedDirtyable(Dirtyable embedded)
Specified by:
unlinkEmbeddedDirtyable in interface LinkedDirtyable

linkEmbeddedDirtyable

public void linkEmbeddedDirtyable(LinkedDirtyable embedded)

unlinkEmbeddedDirtyable

public void unlinkEmbeddedDirtyable(LinkedDirtyable embedded)

linkEmbeddedDirtyables

public void linkEmbeddedDirtyables(LinkedDirtyable[] embedded)

unlinkEmbeddedDirtyables

public void unlinkEmbeddedDirtyables(LinkedDirtyable[] embedded)

getData

public java.lang.Object getData()
Part of the Data interface. This implementation returns this.

Specified by:
getData in interface Element
Returns:
the data object associated with this Element instance.
See Also:
Data#getData()

mayHaveChildren

public boolean mayHaveChildren()
Part of the Element interface. This implementation always returns false.

Specified by:
mayHaveChildren in interface Element
Returns:
true if this Element may contain child Elements.
See Also:
Element.mayHaveChildren()

getChildren

public java.util.Iterator getChildren()
Part of the Element interface. This implementation always returns null.

Specified by:
getChildren in interface Element
Returns:
an Iterator over any child Elements contained by this Element. If there are no children, null is returned.
See Also:
Element.getChildren()

getAttributes

public Attributes getAttributes()
Part of the Element interface. This implementation always returns ElementAttributes.DELETEABLE.

Specified by:
getAttributes in interface Element
See Also:
Element.getAttributes()

getShortLabel

public java.lang.String getShortLabel()
Description copied from interface: Displayable
Returns a short label that can be displayed to the user. Generally, the value of the returned 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.

Specified by:
getShortLabel in interface Displayable
Returns:
a short descriptive label of the Displayable that can be shown to the user.

getLongLabel

public java.lang.String getLongLabel()
This implementation delegates to getShortLabel().

Specified by:
getLongLabel in interface Displayable
Returns:
a long descriptive label of the Displayable that can be shown to the user.
See Also:
Displayable.getLongLabel()

getIcon

public javax.swing.Icon getIcon()
This implementation returns a plain document icon.

Specified by:
getIcon in interface Displayable
Returns:
the Icon to be displayed for the Displayable.
See Also:
Displayable.getIcon()

toString

public java.lang.String toString()
This implementation delegates to getShortLabel().

Specified by:
toString in interface Displayable
Overrides:
toString in class java.lang.Object
See Also:
Displayable.toString()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.