Overview  Package   Class  Tree  Index 

be.lassi.base
Class SaveableObject

java.lang.Object
  extended by be.lassi.base.SaveableObject
Direct Known Subclasses:
AttributeDefinition, AttributeValue, Cue, CueCollection, FixtureDefinition, Fixtures, Group, Groups, NamedObject, NamedObjects, PresetDefinition, PresetValueDefinition

public class SaveableObject
extends java.lang.Object

Instances of subclasses of this class can be marked dirty when their state changes, so that we know whether the instance is eligible for a save operation.


Constructor Summary
SaveableObject(Dirty dirty)
          Constructs a new instance.
 
Method Summary
protected  void doNotMarkDirty()
           
 Dirty getDirty()
          Gets the dirty indicator.
 boolean isDirty()
          Indicates whether this object is dirty (has changed since the most recent save operation).
protected  void markDirty()
          Marks this object as 'dirty', meaning that its state has changed and should be saved.
 void setDirty(Dirty dirty)
          Sets the dirty indicator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveableObject

public SaveableObject(Dirty dirty)
Constructs a new instance.

Parameters:
dirty - the dirty indicator
Method Detail

doNotMarkDirty

protected void doNotMarkDirty()

getDirty

public Dirty getDirty()
Gets the dirty indicator.


isDirty

public boolean isDirty()
Indicates whether this object is dirty (has changed since the most recent save operation).

Returns:
true if this object is dirty

markDirty

protected void markDirty()
Marks this object as 'dirty', meaning that its state has changed and should be saved. Any method that changes the object state should call this method.


setDirty

public void setDirty(Dirty dirty)
Sets the dirty indicator.

Parameters:
dirty - the dirty indicator

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2