oracle.ide.model
Class DefaultDirtyable
java.lang.Object
|
+--oracle.ide.model.DefaultDirtyable
- All Implemented Interfaces:
- Dirtyable
- Direct Known Subclasses:
- EmbeddedServerOptions
- public class DefaultDirtyable
- extends java.lang.Object
- implements Dirtyable
Default implementation of the Dirtyable
interface.
Method Summary |
static java.lang.String |
dirtyLabel(Dirtyable dirtyable,
java.lang.String label)
Returns the 'dirty' version of the specified label if the specified
Dirtyable object is dirty; otherwise, returns the label as
is. |
static java.lang.String |
dirtyLabel(java.lang.Object object,
java.lang.String label)
Returns the 'dirty' version of the specified label if the specified
Object is a Dirtyable object and that object is
dirty; otherwise, returns the label as is. |
static java.lang.String |
dirtyLabel(java.lang.String label)
Returns the 'dirty' version of the specified label. |
boolean |
isDirty()
True if the data in the object has been modified. |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDirtyable
public DefaultDirtyable()
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.
dirtyLabel
public static java.lang.String dirtyLabel(java.lang.String label)
- Returns the 'dirty' version of the specified label. Dirty status is
typically indicated by appending a "*" to the label.
dirtyLabel
public static java.lang.String dirtyLabel(Dirtyable dirtyable,
java.lang.String label)
- Returns the 'dirty' version of the specified label if the specified
Dirtyable
object is dirty; otherwise, returns the label as
is.
dirtyLabel
public static java.lang.String dirtyLabel(java.lang.Object object,
java.lang.String label)
- Returns the 'dirty' version of the specified label if the specified
Object
is a Dirtyable
object and that object is
dirty; otherwise, returns the label as is.