| java.lang.Object net.infonode.docking.util.AbstractViewMap net.infonode.docking.util.ViewMap
ViewMap | public class ViewMap extends AbstractViewMap (Code) | | A map of views that handles view serialization by assigning an integer 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 $ |
Constructor Summary | |
public | ViewMap() Constructor. | public | ViewMap(View[] views) Utility constructor that creates a map with a number of views. |
ViewMap | public ViewMap()(Code) | | Constructor.
|
ViewMap | public ViewMap(View[] views)(Code) | | Utility constructor that creates a map with a number of views.
A view gets it's index in the array as id.
Parameters: views - the views to add to the map |
addView | public void addView(int id, View view)(Code) | | Adds a view to the map.
Parameters: id - the view id Parameters: view - the view |
getView | public View getView(int id)(Code) | | Returns the view with a specific id.
Parameters: id - the view id the view with the id |
removeView | public void removeView(int id)(Code) | | Removes a view with a specific id from the map.
Parameters: id - the view id |
|
|