com.adventnet.snmp.ui
Class NodeData

java.lang.Object
  extended by com.adventnet.snmp.ui.NodeData

public class NodeData
extends java.lang.Object

This class contains all the information about the nodes in the MibTree.


Field Summary
(package private)  java.applet.Applet applet
           
(package private)  java.util.Vector childList
           
(package private)  java.util.Vector childrenVector
           
protected  javax.swing.ImageIcon collapsedIcon
          Icon to use when the item is collapsed.
protected  java.awt.Color color
          Color used for text.
protected  javax.swing.ImageIcon expandedIcon
          Icon to use when the item is expanded.
protected  boolean externalIndex
           
protected  java.awt.Font font
          Font used for drawing.
static java.lang.String IMAGE_FILE_DIR_APPLET
           
static java.lang.String IMAGE_FILE_DIR_FRAME
           
(package private)  boolean isRoot
           
protected  boolean isRootNode
          flag to find out whether the currnet node is root or leaf
(package private)  boolean isTCList
           
protected  java.lang.String mibName
           
(package private)  MibTC mibTC
           
(package private)  MibTrap mibTrap
           
(package private)  boolean mibTrapList
           
protected  MibNode node
           
(package private)  java.util.Vector oidVector
           
protected static java.awt.Color selectedBackgroundColor
          Color to use for the background when selected.
protected  java.lang.String string
          Value to display.
 
Constructor Summary
NodeData(java.awt.Font newFont, java.awt.Color newColor, MibNode root, java.lang.String mibName, boolean isRootNode)
          Constructs a new instance of NodeData with the passed in arguments.
 
Method Summary
(package private) static void addCustomizedIcon(java.lang.String moduleName, javax.swing.ImageIcon icon)
           
(package private)  javax.swing.ImageIcon convertImage_to_Icon(java.lang.String image_name)
           
(package private)  java.util.Vector getChildList(MibOperations mibOps)
           
 javax.swing.ImageIcon getCollapsedIcon()
           
 java.awt.Color getColor()
          Returns the color used to draw the text.
 javax.swing.ImageIcon getExpandedIcon()
           
 boolean getExternalIndex()
           
 java.awt.Font getFont()
          Returns the Font used to represent this object.
 MibTC getMibTC()
          Returns the MibTC instance .
 MibTrap getMibTrap()
          Returns the MibTrap instance .
 MibNode getUserObject()
          Returns the MibNode of selected TreeNode in MibTree
 boolean isMibTC()
           
 boolean isMibTCList()
           
 boolean isMibTrap()
           
 boolean isMibTrapList()
           
(package private) static void removeCustomizedIcon(java.lang.String moduleName)
           
 void setCollapsedIcon(javax.swing.ImageIcon collapse)
           
 void setColor(java.awt.Color newColor)
          Sets the color used to draw the text.
 void setExpandedIcon(javax.swing.ImageIcon expand)
           
 void setExternalIndex(boolean flag)
           
 void setFont(java.awt.Font newFont)
          Sets the font that is used to represent this object.
 void setImageIcons()
           
 void setMibTC(MibTC tc)
          Setter for the MibTC.
 void setMibTCList(boolean val)
          Represent this as a MibTC List if true
 void setMibTrap(MibTrap trap)
          Setter for the MibTrap.
 void setMibTrapList(boolean val)
          Represents this as MibTrap List if true
 void setString(java.lang.String newString)
          Sets the string to display for this object.
 java.lang.String string()
          Returns the string to display for this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

font

protected java.awt.Font font
Font used for drawing.


applet

java.applet.Applet applet

color

protected java.awt.Color color
Color used for text.


string

protected java.lang.String string
Value to display.


childrenVector

java.util.Vector childrenVector

oidVector

java.util.Vector oidVector

node

protected MibNode node

collapsedIcon

protected javax.swing.ImageIcon collapsedIcon
Icon to use when the item is collapsed.


expandedIcon

protected javax.swing.ImageIcon expandedIcon
Icon to use when the item is expanded.


selectedBackgroundColor

protected static final java.awt.Color selectedBackgroundColor
Color to use for the background when selected.


isRootNode

protected boolean isRootNode
flag to find out whether the currnet node is root or leaf


IMAGE_FILE_DIR_FRAME

public static java.lang.String IMAGE_FILE_DIR_FRAME

IMAGE_FILE_DIR_APPLET

public static java.lang.String IMAGE_FILE_DIR_APPLET

mibName

protected java.lang.String mibName

isRoot

boolean isRoot

childList

java.util.Vector childList

mibTrapList

boolean mibTrapList

mibTrap

MibTrap mibTrap

isTCList

boolean isTCList

mibTC

MibTC mibTC

externalIndex

protected boolean externalIndex
Constructor Detail

NodeData

public NodeData(java.awt.Font newFont,
                java.awt.Color newColor,
                MibNode root,
                java.lang.String mibName,
                boolean isRootNode)
Constructs a new instance of NodeData with the passed in arguments.

Method Detail

setFont

public void setFont(java.awt.Font newFont)
Sets the font that is used to represent this object.


getFont

public java.awt.Font getFont()
Returns the Font used to represent this object.


setColor

public void setColor(java.awt.Color newColor)
Sets the color used to draw the text.


getColor

public java.awt.Color getColor()
Returns the color used to draw the text.


getUserObject

public MibNode getUserObject()
Returns the MibNode of selected TreeNode in MibTree


setString

public void setString(java.lang.String newString)
Sets the string to display for this object. Note: Now it is a dummy method


string

public java.lang.String string()
Returns the string to display for this object.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setCollapsedIcon

public void setCollapsedIcon(javax.swing.ImageIcon collapse)

setExpandedIcon

public void setExpandedIcon(javax.swing.ImageIcon expand)

getCollapsedIcon

public javax.swing.ImageIcon getCollapsedIcon()

getExpandedIcon

public javax.swing.ImageIcon getExpandedIcon()

setImageIcons

public void setImageIcons()

convertImage_to_Icon

javax.swing.ImageIcon convertImage_to_Icon(java.lang.String image_name)

getChildList

java.util.Vector getChildList(MibOperations mibOps)

isMibTrapList

public boolean isMibTrapList()
Returns:
true if this is a MibTrap List

setMibTrapList

public void setMibTrapList(boolean val)
Represents this as MibTrap List if true


getMibTrap

public MibTrap getMibTrap()
Returns the MibTrap instance . This will be useful for getting the details about this trap


setMibTrap

public void setMibTrap(MibTrap trap)
Setter for the MibTrap. This is set if this NodeData represents a Trap


isMibTrap

public boolean isMibTrap()
Returns:
true if this NodeData holds a MibTrap

isMibTCList

public boolean isMibTCList()
Returns:
true if this is a MibTC List

setMibTCList

public void setMibTCList(boolean val)
Represent this as a MibTC List if true


setMibTC

public void setMibTC(MibTC tc)
Setter for the MibTC. This is set if this NodeData represents a TC


getMibTC

public MibTC getMibTC()
Returns the MibTC instance . This will be useful for getting the details about this tc


isMibTC

public boolean isMibTC()
Returns:
true if this NodeData holds a MibTC

getExternalIndex

public boolean getExternalIndex()

setExternalIndex

public void setExternalIndex(boolean flag)

addCustomizedIcon

static void addCustomizedIcon(java.lang.String moduleName,
                              javax.swing.ImageIcon icon)

removeCustomizedIcon

static void removeCustomizedIcon(java.lang.String moduleName)