oracle.ide.model
Class DefaultSubDirtyable
java.lang.Object
|
+--oracle.ide.model.DefaultSubDirtyable
- All Implemented Interfaces:
- Dirtyable, SubDirtyable
- Direct Known Subclasses:
- FilePath, JProjectConfiguration, JProjectSettings, LibraryListHelper, OjcConfiguration, RunConfiguration, URLPath
- public class DefaultSubDirtyable
- extends java.lang.Object
- implements SubDirtyable
Objects that implement the SubDirtyable
interface indicate
that they want to be saved as content of the document that owns
them. In general, content is never dirty. When content is marked
dirty, it marks its owner dirty.
Method Summary |
protected Dirtyable |
getOwner()
|
boolean |
isDirty()
True if the data in the object has been modified. |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSubDirtyable
public DefaultSubDirtyable()
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
- Following copied from interface:
oracle.ide.model.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
- 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.
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.
getOwner
protected Dirtyable getOwner()