WebNMS 5 API Specification

com.adventnet.beans.chassis
Class ChassisHelper

java.lang.Object
  |
  +--com.adventnet.beans.chassis.BaseHelper
        |
        +--com.adventnet.beans.chassis.ChassisHelper
Direct Known Subclasses:
ChassisPoller

public class ChassisHelper
extends BaseHelper

An extended version of com.adventnet.beans.chassis.BaseHelper that adds support for placing the shelves in their respective parent panels during the runtime. This Class takes care of passing the ManagedObject name to the Shelf Objects.

See Also:
BaseHelper

Fields inherited from class com.adventnet.beans.chassis.BaseHelper
applet, debug, DUMMY_ARRAY, holders, parentComponent
 
Constructor Summary
ChassisHelper()
          Default Constructor to create ChassisHelper object.
ChassisHelper(java.applet.Applet appletArg)
          Applet Constructor to instantiate the ChassisHelper Object
ChassisHelper(java.applet.Applet appletArg, java.lang.String instanceNameArg)
          Constructor for passing the applet as well as the instanceName, to create the ChassisHelper object
ChassisHelper(java.lang.String instanceNameArg)
          Constructor for creating an instance of ChassisHelper object with the instance name as argument.
 
Method Summary
 void setAvailableShelfs(java.lang.String[] shelfClassNamesArg)
          Required to pass an array of available shelf names, to create an instance of the Shelf Objects, for each value in the array.
 
Methods inherited from class com.adventnet.beans.chassis.BaseHelper
debug, getChassisComponent, getInstance, getPlaceHolders, reinitialize, setApplet, setChassisComponent, setDebug, setInstanceName, setPlaceHolders, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChassisHelper

public ChassisHelper()
Default Constructor to create ChassisHelper object.

ChassisHelper

public ChassisHelper(java.lang.String instanceNameArg)
Constructor for creating an instance of ChassisHelper object with the instance name as argument.
Parameters:
instanceNameArg - Used as an identifier while debug messages are printed out to the console

ChassisHelper

public ChassisHelper(java.applet.Applet appletArg)
Applet Constructor to instantiate the ChassisHelper Object

ChassisHelper

public ChassisHelper(java.applet.Applet appletArg,
                     java.lang.String instanceNameArg)
Constructor for passing the applet as well as the instanceName, to create the ChassisHelper object
Parameters:
appletArg - Applet to be passed to the ChassisHelper object
instanceNameArg - Used as an identifier while debug messages are printed out to the console
Method Detail

setAvailableShelfs

public void setAvailableShelfs(java.lang.String[] shelfClassNamesArg)
                        throws java.lang.Exception
Required to pass an array of available shelf names, to create an instance of the Shelf Objects, for each value in the array. The passed array length should match with the holders array, set on this Object using setPlaceHolders. The class names are instantiated and placed on the corresponding holder panels.
Parameters:
shelfClassNamesArg -  
Throws:
java.lang.Exception - If the ShelfClass Names passed as arguments mismatches with the Holders Array or if the Holders array is null, an IllegalArgument Exception is thrown.

WebNMS 5 API Specification