java.lang.Object
org.modama.ModelStates
org.modama.Model
org.modama.framework.AbstractFrameworkModel
- public abstract class AbstractFrameworkModel
- extends org.modama.Model
the modelclass for the framework
adds to the model:
- names for events
- load/save/delete methoddeclarations
IMPORTANT: the create and delete methods should also call the put/delete methods of the world
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_NAME
public static final java.lang.String PROP_NAME
- See Also:
- Constant Field Values
name
protected java.lang.String name
- the name of the object
AbstractFrameworkModel
public AbstractFrameworkModel()
create
protected abstract void create()
- initial creation of the object. place code here, that is needed for every instance of your object
call the put method of the world, otherwise the object will not be shown by the gui
delete
public abstract void delete()
throws org.modama.framework.exceptions.DeleteCancelledException
- delete the object. place code here, to clear up
call the remove method of the world, otherwise the object will not be removed by the gui
load
public abstract boolean load(java.net.URL url)
throws java.io.IOException
- load data for the object
save
public abstract void save(java.net.URL url)
throws java.io.IOException
- save data for the object
getName
public java.lang.String getName()
- getter for name
setName
public void setName(java.lang.String name)
- setter for name. causes firePropertyChange