AdventNet Web NMS 4 API Specification

com.adventnet.nms.startclient
Class AbstractNmsPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.adventnet.nms.startclient.AbstractBaseNmsPanel
                                |
                                +--com.adventnet.nms.startclient.AbstractNmsPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, NmsPanel, java.io.Serializable

public abstract class AbstractNmsPanel
extends AbstractBaseNmsPanel

This abstract class extends AbstractBaseNmsPanel class which in turn implements NmsPanel Interface. This class will be very useful for integrating panels with WebNMS.

This is a client side class and hence can be used only in the JVM as that of the client.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class com.adventnet.nms.startclient.AbstractBaseNmsPanel
tree_popup_menus, treePopupMenuName
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.adventnet.nms.startclient.NmsPanel
ADD_LEAF_TO_MENU, ALERT_ACTION_EVENT, ALERT_COUNT_ACTION_EVENT, BROWSE_ACTION_EVENT, CHANGE_PANEL_EVENT, CHANGE_TREE_SELECTION, CLOSE_EXTERNAL_FRAME, CLOSE_PANEL_EVENT, DETACH_FRAME, EVENT_ACTION_EVENT, EXECUTE_ACTION, LISTINTERFACES_ACTION_EVENT, LISTNODES_ACTION_EVENT, MAP_ACTION_EVENT, MAP_DOUBLECLICK_EVENT, MODIFY_TREE_ICON, MODIFY_TREE_LABEL, MODIFY_TREE_NODE_PROPERTIES, MOVE_NODE_TO_NEWINDEX, MOVE_TREE_NODE, NMS_ACTION_EVENT, REMOVE_LEAF_FROM_MENU, SET_APPLET_PROPERTY, SET_PANEL_PROPS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AbstractNmsPanel()
          Default constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Implements java.awt.event.ActionListener interface method.
 void destroy()
          Destroy the panel.
 java.lang.Object getInstance(java.lang.String classNameArg)
          Instantiate classNameArg class and return that object.
abstract  java.lang.String getPanelClassName()
          Panel class name.
 java.awt.Component getPanelInstance()
           
 javax.swing.JMenuBar getPanelMenuBar()
          Get the MenuBar for this panel.
 void init(javax.swing.JApplet arg0)
          Initialize the applet variable.
 void setPanelMenuBar(javax.swing.JMenuBar arg0)
          Set the MenuBar for this panel.
 void setProperties(java.util.Properties arg0)
          Set the properties for the panel before doing a change to that panel.
 void start()
          Start the panel operation.
 void stop()
          Stop the panel operation.
 
Methods inherited from class com.adventnet.nms.startclient.AbstractBaseNmsPanel
addNmsPanelEventListener, destroy, fireNmsPanelEvent, getCurrentNodeProperties, getObjectMenus, getPanelCommonProperties, getTreePopupMenu, init, isInitialized, key, removeNmsPanelEventListener, renameTreeNode, setCurrentNodeProperties
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractNmsPanel

public AbstractNmsPanel()
Default constructor.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Implements java.awt.event.ActionListener interface method.
Overrides:
actionPerformed in class AbstractBaseNmsPanel

destroy

public void destroy()
Destroy the panel.

getPanelMenuBar

public javax.swing.JMenuBar getPanelMenuBar()
Get the MenuBar for this panel.
Overrides:
getPanelMenuBar in class AbstractBaseNmsPanel
Returns:
a JMenuBar
See Also:
setPanelMenuBar(javax.swing.JMenuBar)

setPanelMenuBar

public void setPanelMenuBar(javax.swing.JMenuBar arg0)
Set the MenuBar for this panel.
Overrides:
setPanelMenuBar in class AbstractBaseNmsPanel
Parameters:
arg0 - The JMenuBar that is to be set.
See Also:
getPanelMenuBar()

init

public void init(javax.swing.JApplet arg0)
Initialize the applet variable.
Overrides:
init in class AbstractBaseNmsPanel
Following copied from interface: com.adventnet.nms.startclient.NmsPanel
Parameters:
applet - The client main applet reference will be passed as parameter.
See Also:
NmsMainApplet

setProperties

public void setProperties(java.util.Properties arg0)
Set the properties for the panel before doing a change to that panel.
Overrides:
setProperties in class AbstractBaseNmsPanel
Following copied from interface: com.adventnet.nms.startclient.NmsPanel
Parameters:
prop - The Properties object that contains the associated properties of the panel to be passed when the panel gains the focus.

start

public void start()
Start the panel operation.
Overrides:
start in class AbstractBaseNmsPanel
Following copied from interface: com.adventnet.nms.startclient.NmsPanel
See Also:
NmsPanel.stop()

stop

public void stop()
Stop the panel operation.
Overrides:
stop in class AbstractBaseNmsPanel
Following copied from interface: com.adventnet.nms.startclient.NmsPanel
See Also:
NmsPanel.start()

getInstance

public java.lang.Object getInstance(java.lang.String classNameArg)
Instantiate classNameArg class and return that object. If "Applet" constructor is available then instantiate the object using "Applet" constructor. Otherwise instantiate using default constructor. Return null if class not available or class instantiation was not successful.
Parameters:
classNameArg - The class to be instantiated.
Returns:
an Object.

getPanelClassName

public abstract java.lang.String getPanelClassName()
Panel class name.
Returns:
The panel class name

getPanelInstance

public java.awt.Component getPanelInstance()

AdventNet Web NMS 4 API Specification