oracle.jdeveloper.library
Class AbstractLibrary
java.lang.Object
|
+--oracle.ide.model.DefaultDisplayable
|
+--oracle.ide.model.DefaultElement
|
+--oracle.ide.model.DataElement
|
+--oracle.jdeveloper.library.AbstractLibrary
- All Implemented Interfaces:
- Copyable, Data, Dirtyable, Displayable, Element, Library, SubDirtyable, Subject
- Direct Known Subclasses:
- AbstractDerivedLibrary, JLibrary
- public abstract class AbstractLibrary
- extends DataElement
- implements Library
AbstractLibrary
class.
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. |
protected void |
copyToImpl(AbstractLibrary copy)
|
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. |
boolean |
equals(java.lang.Object o)
|
protected boolean |
equalsImpl(AbstractLibrary other)
|
java.lang.String |
getName()
|
protected Dirtyable |
getOwner()
|
java.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user. |
boolean |
isDirty()
True if the data in the object has been modified. |
boolean |
isLocked()
|
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state. |
void |
notifyObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
void |
setLocked(boolean isLocked)
|
void |
setName(java.lang.String name)
|
void |
setOwner(Dirtyable owner)
This method should be called to set the document in which a
SubDirtyable implementation will be persisted. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.model.Data |
getData |
AbstractLibrary
public AbstractLibrary()
- Default constructor. Required for JavaBean status.
getName
public java.lang.String getName()
- Specified by:
getName
in interface Library
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface Library
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interface Library
setLocked
public void setLocked(boolean isLocked)
- Specified by:
setLocked
in interface Library
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
- Overrides:
markDirty
in class DataElement
- Following copied from interface:
oracle.ide.model.Dirtyable
- Parameters:
dirty
- If true
, sets the object as being
dirty; if false
, sets the object as being up-to-date.
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
- Overrides:
isDirty
in class DataElement
- Following copied from interface:
oracle.ide.model.Dirtyable
- Returns:
true
if the data in the object has been modified.
setOwner
public void setOwner(Dirtyable owner)
- 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
- Following copied from interface:
oracle.ide.model.SubDirtyable
- Parameters:
owner
- The Dirtyable
object in which this
SubDirtyable
will be saved.
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
- Following copied from interface:
oracle.ide.addin.Subject
- Parameters:
subject
- the subject whose state has changed.change
- what changed.
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
- Following copied from interface:
oracle.ide.addin.Subject
- Parameters:
observer
- the Observer
disinterested in change
notification messages.
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
- Following copied from interface:
oracle.ide.addin.Subject
- Parameters:
observer
- the Observer
interested in change notification
messages.
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
- Overrides:
getShortLabel
in class DefaultDisplayable
- Following copied from interface:
oracle.ide.model.Displayable
- Returns:
- a short descriptive label of the
Displayable
that can be shown to the user.
copyToImpl
protected final void copyToImpl(AbstractLibrary copy)
getOwner
protected Dirtyable getOwner()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equalsImpl
protected final boolean equalsImpl(AbstractLibrary other)