| java.lang.Object net.infonode.docking.util.AbstractViewMap net.infonode.docking.util.StringViewMap
StringViewMap | public class StringViewMap extends AbstractViewMap (Code) | | A map of views that handles view serialization by assigning a string id to each view.
The id is unique for each view in the map. To guarantee serialization compatibility a view id must remain constant.
author: $Author: jesper $ version: $Revision: 1.7 $ since: IDW 1.1.0 |
Constructor Summary | |
public | StringViewMap() Constructor. | public | StringViewMap(View[] views) Utility constructor that creates a map with a number of views. |
StringViewMap | public StringViewMap()(Code) | | Constructor.
|
StringViewMap | public StringViewMap(View[] views)(Code) | | Utility constructor that creates a map with a number of views.
A view gets it's title as id.
Parameters: views - the views to add to the map |
addView | public void addView(View view)(Code) | | Adds a view to the map.
The view title is used as id.
Parameters: view - the view |
addView | public void addView(String id, View view)(Code) | | Adds a view to the map.
Parameters: id - the view id Parameters: view - the view |
getView | public View getView(String id)(Code) | | Returns the view with a specific id.
Parameters: id - the view id the view with the id |
removeView | public void removeView(String id)(Code) | | Removes a view with a specific id from the map.
Parameters: id - the view id |
|
|