|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.model.DefaultDockingPathModel
public class DefaultDockingPathModel
This is an implementation for DockingPathModel
that uses a java.util.HashMap.
Field Summary | |
---|---|
java.util.Map |
dockingPaths
|
Constructor Summary | |
---|---|
DefaultDockingPathModel()
|
Method Summary | |
---|---|
void |
add(DockingPath dockingPath)
Adds the given docking path to the model. |
DockingPath |
getDockingPath(java.lang.String id)
Gets the docking path of this model that has the given id as ID. |
java.util.Iterator |
getIDs()
Gets an iterator that iterates over the IDs of all the docking paths of the model. |
void |
loadProperties(java.lang.String prefix,
java.util.Properties properties,
java.util.Map docks)
Loads the properties for this docking path model. |
void |
remove(DockingPath dockingPath)
Removes the given docking path from the model. |
void |
saveProperties(java.lang.String prefix,
java.util.Properties properties,
java.util.Map dockKeys)
Saves the properties of this docking path model in the given properties object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Map dockingPaths
Constructor Detail |
---|
public DefaultDockingPathModel()
Method Detail |
---|
public void add(DockingPath dockingPath)
DockingPathModel
add
in interface DockingPathModel
dockingPath
- The docking path that is added to the model.public java.util.Iterator getIDs()
DockingPathModel
getIDs
in interface DockingPathModel
public DockingPath getDockingPath(java.lang.String id)
DockingPathModel
getDockingPath
in interface DockingPathModel
id
- The ID of the docking path that is retrieved.
public void remove(DockingPath dockingPath)
DockingPathModel
remove
in interface DockingPathModel
dockingPath
- The docking path that is removed from the model.public void loadProperties(java.lang.String prefix, java.util.Properties properties, java.util.Map docks)
DockingPathModel
Loads the properties for this docking path model. The properties can be found in the given properties object and the property names for this dock model start with the given prefix.
The docks that should be used inside this docking path can be found in the given docks mapping.
This method should be called after the empty constructor to create the content of the docking path model. Don't call this method for a docking path model that already has a content.
loadProperties
in interface DockingPathModel
prefix
- The prefix for the property names that have been intended for this docking path model.properties
- The properties object that contains the properties for this docking path model. It can contain also
properties for other objects, but they will have another prefix.docks
- A mapping between the dock keys of the docks that are already loaded and the docks.
Dock
).public void saveProperties(java.lang.String prefix, java.util.Properties properties, java.util.Map dockKeys)
DockingPathModel
Saves the properties of this docking path model in the given properties object.
The property names for this docking path model should start with the given prefix.
saveProperties
in interface DockingPathModel
prefix
- The prefix for the property names.properties
- The properties object to which the properties should be added.dockKeys
- A mapping between the docks that are already saved and the keys that are used for the save.
Dock
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |