|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.mapdb.MapSymbol
com.adventnet.nms.mapdb.MapContainer
public class MapContainer
MapContainer is one of the core objects of map server.
It extends MapSymbol.
Its client side equivalent is MapContainerComponent.
This object is capable of encapsulating child map symbols into
itself. MapContainer, as the name suggests, is a light weight
component very similar in functionality to a java.awt.Container
component. Each container object can have its own layout associated with
its children.
For example, a map can be constructed with four or five container objects in it, each with different layouts. Map links across MapContainers are also possible. A MapContainer can also contain a MapContainer within itself.
The MapContainer can also be a representation of a ManagedObject. Though it sounds logical to make MapContainer represent ManagedObjects which are containers, and ContainerInterface objects only, it can be associated with any ManagedObject present in the database.
The MapContainer object provides persistence through the relational database storage.
Being a MapSymbol, it can hold user properties too. The standard properties of this
object are stored in the MapContainer table, whereas all the user
properties are stored in MAPUSERPROPS table.
| Field Summary | |
|---|---|
protected boolean |
containment
Holds the containment boolean. |
protected java.lang.String |
currentTopology
Holds the value of the current topology that will be applied for the map. |
protected java.lang.String |
topology
Holds a comma separated list of all the layouts applicable to this objects. |
| Fields inherited from class com.adventnet.nms.mapdb.MapSymbol |
|---|
anchored, groupName, iconName, id, label, locationX, locationY, mapHeight, mapName, mapWidth, menuName, name, objName, objType, objTypes, ownerName, parentName, status, symbolHeight, symbolWidth, type, webNMS |
| Constructor Summary | |
|---|---|
MapContainer()
A Default constructor which initializes all properties to their default values. |
|
MapContainer(java.lang.String name)
Constructor which takes the name of this container. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a MapContainer which is a clone of this MapContainer. |
boolean |
getContainment()
Returns the value of the containment property that has been set for this container object. |
java.lang.String |
getCurrentTopology()
Returns the value of the currentTopology property. |
java.util.Properties |
getProperties()
Returns the properties of the MapContainer in the form of key-value pairs. |
java.lang.String |
getProperty(java.lang.String str)
Returns the value of given property identified by the argument. |
java.lang.String |
getTopology()
Returns the value of the topology property of this container. |
void |
setContainment(boolean value)
Sets the value of the containment property to the specified boolean. |
void |
setCurrentTopology(java.lang.String s)
Sets the value of the currentTopology property. |
void |
setParameter(java.lang.String nam,
java.lang.String val)
Sets the symbol parameters based on specified name and value. |
void |
setProperties(java.util.Properties p)
Applies the given set of properties over the MapContainer. |
void |
setTopology(java.lang.String s)
Sets the value of the topology property of this container. |
| Methods inherited from class com.adventnet.nms.mapdb.MapSymbol |
|---|
addObjTypes, getAnchored, getDynamicUserProperty, getGroupName, getHeight, getIconName, getId, getIntObjType, getKey, getKeyName, getLabel, getMapHeight, getMapKey, getMapName, getMappedProperties, getMapWidth, getMenuName, getName, getObjKey, getObjName, getObjType, getOwnerName, getParentName, getSeverityNames, getStatus, getStrObjType, getType, getUserProperties, getUserProperty, getWebNMS, getWidth, getX, getY, removeUserProperty, setAnchored, setDynamicUserProperty, setGroupName, setHeight, setIconName, setId, setLabel, setMapHeight, setMapKey, setMapName, setMappedProperties, setMapWidth, setMenuName, setName, setObjName, setObjType, setOwnerName, setParentName, setStatus, setType, setUserProperty, setWebNMS, setWidth, setX, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String currentTopology
protected java.lang.String topology
Some of the known layouts part of Web NMS are grid,star,ring,flow,etc. In addition to this, users can have their own implementation of layout. The values given should be equal to the string returned in the getName() method of the layout implementation.
For example, a value of "grid,star,ring" would mean that only these three layouts can be applied. A value of "$grid" would mean that grid is the only possible layout for this map. A value of "grid" alone would result in all layouts being taken as applicable and grid being taken as the default one.
Default value of this property is "grid".
AutoLayout.getName()protected boolean containment
| Constructor Detail |
|---|
public MapContainer()
public MapContainer(java.lang.String name)
name - the name that will identify the container| Method Detail |
|---|
public void setContainment(boolean value)
value - the boolean value that should be set for containment propertycontainment,
getContainment()public boolean getContainment()
containment,
setContainment(boolean)public java.lang.String getTopology()
String representing the topology.topology,
setTopology(java.lang.String)public java.lang.String getCurrentTopology()
String representing the name of the layout which has
been currently set for the container.currentTopology,
setCurrentTopology(java.lang.String)public void setTopology(java.lang.String s)
s - a String that is to be the topology list for this container.topology,
getTopology()public void setCurrentTopology(java.lang.String s)
s - the name of the layout from the topology property list which is to be set
as the current value.currentTopology,
getCurrentTopology()public java.lang.String getProperty(java.lang.String str)
"currentTopology", "containment", "topology" . Other than these, user properties, if any, can also be retrieved using this method.
getProperty in class MapSymbolstr - a String representing the key of the Map Symbol Property
Valid values for this argument could be any of the following.
"label", "name", "mapName", "ownerName", "status", "type", "managed", "iconName", "objName", "menuName", "objType", "groupName", "x", "y", "width", "height", "webNMS", "parentName", "anchored". Other than these, user property keys, if any, can also be given.
String representing the value associated with the key
specified .It returns null when there is no such property.public java.util.Properties getProperties()
"currentTopology", "containment", "topology" Other than these, user properties, if any, will also be part of it.
getProperties in interface DBInterfacegetProperties in class MapSymbolsetProperties(java.util.Properties)public void setProperties(java.util.Properties p)
setProperties in interface DBInterfacesetProperties in class MapSymbolp - a Properties object which contains the properties
to be set for this MapContainer.MapSymbol.getProperties(),
getProperties()
public void setParameter(java.lang.String nam,
java.lang.String val)
MapSymbol
setParameter in class MapSymbolnam - Name of the parameter.val - Value of the parameter.public java.lang.Object clone()
clone in interface DBInterfaceclone in class MapSymbolMapContainer object, which is a clone of this map.
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||