|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockingPathModel
This is an interface for a collection of DockingPath
s
that are used in an application.
Information on using docking path models is in How to Use Docking Paths in The Sanaware Developer Guide.
The docking path model should be given to the docking manager with the method:
DockingManager.setDockingPathModel(DockingPathModel)
.
All the docking paths should have a different ID. If a docking path is added, that has an ID for which there is already a docking path. Then the existing docking path is replaced by the new one.
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. |
Method Detail |
---|
void add(DockingPath dockingPath)
dockingPath
- The docking path that is added to the model.DockingPath getDockingPath(java.lang.String id)
id
- The ID of the docking path that is retrieved.
java.util.Iterator getIDs()
void remove(DockingPath dockingPath)
dockingPath
- The docking path that is removed from the model.void loadProperties(java.lang.String prefix, java.util.Properties properties, java.util.Map docks)
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.
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
).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.
The property names for this docking path model should start with the given prefix.
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 |