All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.network.snmp.ui.UserInterface
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.ibm.network.snmp.ui.UserInterface
- public class UserInterface
- extends Panel
- implements Serializable, ActionListener, WindowListener, ResponseListener, StatusListener, TrapListener
A class which implements the User Interface taking in all
the required parameters for sending SNMP Message and
displaying the Results.
-
UserInterface()
- Constructor for User Interface
-
actionPerformed(ActionEvent)
- The ActionListener Interface method.
-
addAgent(String, String)
- Add a agent to the List of Agents.
-
addMessageListener(MessageListener)
- Add a Listener for Message Event.
-
addObjectIdentifier(String, String, String)
- Add an Object Identifier to the list of Object Identifiers.
-
clearLog()
- Clear the Response Log Area.
-
getAgentAddress()
- Returns the IP Address of the Agent to which the
Message is being sent.
-
getAgentsFile()
- The file Name where Agent Names are stored.
-
getAllTypes()
- All the Object Types supported.
-
getButtonsBackground()
- The Background Color of Buttons in the User Interface
-
getButtonsFont()
- The Font of Buttons in the User Interface
-
getButtonsForeground()
- The Foreground Color of Buttons in the User Interface
-
getChoicesBackground()
- The Background Color of Choices in the User Interface
-
getChoicesFont()
- The Font of Choices in the User Interface
-
getChoicesForeground()
- The Foreground Color of Choices in the User Interface
-
getCommunityName()
- The Community Name in Message Object
-
getListsBackground()
- The Background Color of Lists in the User Interface
-
getListsFont()
- The Font of Lists in the User Interface
-
getListsForeground()
- The Foreground Color of Lists in the User Interface
-
getLongValue()
- Object Value in case its not a String.
-
getMessageObject()
- The reference to the Message Object.
-
getObjectIdentifier()
- The Object Identifier in the Message Object
-
getObjectsFile()
- Returns the Objects File Name.
-
getObjectType()
- Object Type in Byte.
-
getRequestID()
- Returns Requested ID
-
getRequestType()
- Returns Request Type as Byte.
-
getStringValue()
- The Object Value returned as String
-
getTextFieldBackground()
- The Background Color of Text Fields in the User Interface
-
getTextFieldFont()
- The Font of Text Fields in the User Interface
-
getTextFieldForeground()
- The Foreground Color of Text Fields in the User Interface
-
getUIBackground()
- The Background Color of of the User Interface
-
getUIFont()
- The Font of of the User Interface
-
getUIForeground()
- The Foreground Color of of the User Interface
-
handleResponse(ResponseObject)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
-
handleResponse(String, String, String, long, String)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
-
handleStatus(String)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
-
handleTrap(String, String, String, String, String, String, String)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
-
handleTrap(TrapObject)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
-
processResponseEvent(ResponseEvent)
- This method takes in a Response Event and processes it
-
processStatusEvent(StatusEvent)
- This method takes in a Status Event and processes it
-
processTrapEvent(TrapEvent)
- This method takes in a Trap Event and processes it
-
removeAgent(String, String)
- Removes an Agent from the Agents List
-
removeMessageListener(MessageListener)
- Unregister the Message Event Listener.
-
removeObjectIdentifier(String)
- Removes an Object Identifier from the ObjectIdentifier List
-
selectAgent(String, String)
- Select Agent with this IP Address.
-
selectObject(String)
- Select Object with this Object Identifer.
-
setAgentsFile(String)
- Set file name to load Agent Names.
-
setButtonsBackground(Color)
- Set Buttons Background Color to specified Value
-
setButtonsFont(Font)
- Set Buttons Font to specified Value
-
setButtonsForeground(Color)
- Set Buttons Foreground Color to specified Value
-
setChoicesBackground(Color)
- Set Choices Background Color to specified Value
-
setChoicesFont(Font)
- Set Choices Font to specified Value
-
setChoicesForeground(Color)
- Set Choices Foreground Color to specified Value
-
setCommunityName(String)
- Set Community Name to specified value.
-
setListsBackground(Color)
- Set Lists Background Color to specified Value
-
setListsFont(Font)
- Set Lists Font to specified Value
-
setListsForeground(Color)
- Set Lists Foreground Color to specified Value
-
setLog(String)
- Set the Text in Log Area to specified Text.
-
setObjectsFile(String)
- Set file name to load Object Names.
-
setTextFieldBackground(Color)
- Set TextField Background Color to specified Value
-
setTextFieldFont(Font)
- Set TextField Font to specified Value
-
setTextFieldForeground(Color)
- Set TextField Foreground Color to specified Value
-
setUIBackground(Color)
- Set UserInterface Background Color to specified Value
-
setUIFont(Font)
- Set UserInterface Font to specified Value
-
setUIForeground(Color)
- Set UserInterface Foreground Color to specified Value
-
windowActivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosed(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosing(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeactivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeiconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowIconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowOpened(WindowEvent)
- Method to handle events for the WindowListener interface.
UserInterface
public UserInterface()
- Constructor for User Interface
actionPerformed
public void actionPerformed(ActionEvent e)
- The ActionListener Interface method.
- Parameters:
- e - java.awt.event.ActionEvent
addAgent
public void addAgent(String agentIP,
String agentName) throws SNMPUIBeanException
- Add a agent to the List of Agents.
- Parameters:
- agentIP - java.lang.String
- agentName - java.lang.String
- Throws: SNMPUIBeanException
- if a wrong entry is given
addMessageListener
public void addMessageListener(MessageListener rl)
- Add a Listener for Message Event.
- Parameters:
- rl - com.ibm.network.snmp.ui.MessageListener
- See Also:
- MessageEvent
addObjectIdentifier
public void addObjectIdentifier(String oid,
String objectName,
String objType) throws SNMPUIBeanException
- Add an Object Identifier to the list of Object Identifiers.
- Parameters:
- oid - java.lang.String
- objectName - java.lang.String
- objType - java.lang.String
- Throws: SNMPUIBeanException
- in case an Invalid Object Identifier
is given
clearLog
public void clearLog()
- Clear the Response Log Area.
getAgentAddress
public String getAgentAddress()
- Returns the IP Address of the Agent to which the
Message is being sent.
- Returns:
- The Agent IP Address
getAgentsFile
public String getAgentsFile()
- The file Name where Agent Names are stored.
- Returns:
- AgentsFileName or " " in case of loading from Resource
getAllTypes
public String[] getAllTypes()
- All the Object Types supported.
- Returns:
- All Object Types
getButtonsBackground
public Color getButtonsBackground()
- The Background Color of Buttons in the User Interface
- Returns:
- Buttons Background
getButtonsFont
public Font getButtonsFont()
- The Font of Buttons in the User Interface
- Returns:
- Buttons Font
getButtonsForeground
public Color getButtonsForeground()
- The Foreground Color of Buttons in the User Interface
- Returns:
- Buttons Foreground
getChoicesBackground
public Color getChoicesBackground()
- The Background Color of Choices in the User Interface
- Returns:
- Choices Background
getChoicesFont
public Font getChoicesFont()
- The Font of Choices in the User Interface
- Returns:
- Choices Font
getChoicesForeground
public Color getChoicesForeground()
- The Foreground Color of Choices in the User Interface
- Returns:
- Choices Foreground
getCommunityName
public String getCommunityName()
- The Community Name in Message Object
- Returns:
- The Community Name
getListsBackground
public Color getListsBackground()
- The Background Color of Lists in the User Interface
- Returns:
- Lists Background
getListsFont
public Font getListsFont()
- The Font of Lists in the User Interface
- Returns:
- Lists Font
getListsForeground
public Color getListsForeground()
- The Foreground Color of Lists in the User Interface
- Returns:
- Lists Foreground
getLongValue
public long getLongValue()
- Object Value in case its not a String.
- Returns:
- Value as long
getMessageObject
public MessageObject getMessageObject()
- The reference to the Message Object.
- Returns:
- MessageObject
getObjectIdentifier
public String getObjectIdentifier()
- The Object Identifier in the Message Object
- Returns:
- Object Identifier
getObjectsFile
public String getObjectsFile()
- Returns the Objects File Name.
- Returns:
- ObjectsFileName or " " in case of loading from Resource
getObjectType
public byte getObjectType()
- Object Type in Byte.
- Returns:
- Object Type in Byte
getRequestID
public byte getRequestID()
- Returns Requested ID
- Returns:
- Request ID
getRequestType
public byte getRequestType()
- Returns Request Type as Byte.
- Returns:
- Request Type as Byte
getStringValue
public String getStringValue()
- The Object Value returned as String
- Returns:
- String Value
getTextFieldBackground
public Color getTextFieldBackground()
- The Background Color of Text Fields in the User Interface
- Returns:
- Text Field Background
getTextFieldFont
public Font getTextFieldFont()
- The Font of Text Fields in the User Interface
- Returns:
- Text Field Font
getTextFieldForeground
public Color getTextFieldForeground()
- The Foreground Color of Text Fields in the User Interface
- Returns:
- Text Field Foreground
getUIBackground
public Color getUIBackground()
- The Background Color of of the User Interface
- Returns:
- UserInterfaceBackground
getUIFont
public Font getUIFont()
- The Font of of the User Interface
- Returns:
- UserInterfaceFont
getUIForeground
public Color getUIForeground()
- The Foreground Color of of the User Interface
- Returns:
- UserInterfaceForeground
handleResponse
public void handleResponse(ResponseObject responseObject)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
- Parameters:
- responseObject - com.ibm.network.snmp.protocol.ResponseObject
handleResponse
public void handleResponse(String objectIdentifier,
String objectValue,
String agentAdd,
long reqID,
String communityName)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
- Parameters:
- objectIdentifer - java.lang.String
- objectValue - java.lang.String
- agentAdd - java.lang.String
- reqID - long
- communityName - java.lang.String
handleStatus
public void handleStatus(String status)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
- Parameters:
- status - java.lang.String The Status Message
handleTrap
public void handleTrap(TrapObject trapObject)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
- Parameters:
- trapObject - com.ibm.network.snmp.protocol.TrapObject
handleTrap
public void handleTrap(String enterpriseOID,
String sendingAgent,
String genericTrap,
String specificTrap,
String timeStamp,
String infoOID,
String infoValue)
- This method is used for Visual Linking of UserInterfaceBean to ProtocolBean.
- Parameters:
- enterpriseOID - java.lang.String
- sendingAgent - java.lang.String
- genericTrap - java.lang.String
- specificTrap - java.lang.String
- timeStamp - java.lang.String
- infoOID - java.lang.String
- infoValue - java.lang.String
processResponseEvent
public void processResponseEvent(ResponseEvent evt)
- This method takes in a Response Event and processes it
- Parameters:
- e - com.ibm.network.snmp.protocol.ResponseEvent
processStatusEvent
public void processStatusEvent(StatusEvent evt)
- This method takes in a Status Event and processes it
- Parameters:
- evt - com.ibm.network.snmp.protocol.StatusEvent
processTrapEvent
public void processTrapEvent(TrapEvent evt)
- This method takes in a Trap Event and processes it
- Parameters:
- evt - com.ibm.network.snmp.protocol.TrapEvent
removeAgent
public void removeAgent(String agentIP,
String name) throws SNMPUIBeanException
- Removes an Agent from the Agents List
- Parameters:
- agentIP - java.lang.String
- name - java.lang.String
- Throws: SNMPUIBeanException
- In case no such Agent exists
removeMessageListener
public void removeMessageListener(MessageListener rl)
- Unregister the Message Event Listener.
- Parameters:
- rl - com.ibm.network.snmp.ui.MessageListener
removeObjectIdentifier
public void removeObjectIdentifier(String oid) throws SNMPUIBeanException
- Removes an Object Identifier from the ObjectIdentifier List
- Throws: SNMPUIBeanException
- if no such OID exists
selectAgent
public void selectAgent(String agentIP,
String name) throws SNMPUIBeanException
- Select Agent with this IP Address.
- Parameters:
- agentIP - java.lang.String
- name - java.lang.String
- Throws: SNMPUIBeanException
- if no such Agent exists
selectObject
public void selectObject(String objectIdentifier) throws SNMPUIBeanException
- Select Object with this Object Identifer.
- Parameters:
- objectIdentifier - java.lang.String
- Throws: SNMPUIBeanException
- if no such Object exists
setAgentsFile
public void setAgentsFile(String file) throws SNMPUIBeanException
- Set file name to load Agent Names.
- Parameters:
- file - java.lang.String
- Throws: SNMPUIBeanException
- in case an Invalid File name is given
setButtonsBackground
public void setButtonsBackground(Color c)
- Set Buttons Background Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setButtonsFont
public void setButtonsFont(Font f)
- Set Buttons Font to specified Value
- Parameters:
- f - java.awt.Font
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setButtonsForeground
public void setButtonsForeground(Color c)
- Set Buttons Foreground Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setChoicesBackground
public void setChoicesBackground(Color c)
- Set Choices Background Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setChoicesFont
public void setChoicesFont(Font f)
- Set Choices Font to specified Value
- Parameters:
- f - java.awt.Font
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setChoicesForeground
public void setChoicesForeground(Color c)
- Set Choices Foreground Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setCommunityName
public void setCommunityName(String communityName)
- Set Community Name to specified value.
- Parameters:
- communityName - java.lang.String
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setListsBackground
public void setListsBackground(Color c)
- Set Lists Background Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setListsFont
public void setListsFont(Font f)
- Set Lists Font to specified Value
- Parameters:
- f - java.awt.Font
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setListsForeground
public void setListsForeground(Color c)
- Set Lists Foreground Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setLog
public void setLog(String logText)
- Set the Text in Log Area to specified Text.
- Parameters:
- logText - java.lang.String
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setObjectsFile
public void setObjectsFile(String file) throws SNMPUIBeanException
- Set file name to load Object Names.
- Parameters:
- file - java.lang.String
- Throws: SNMPUIBeanException
- in case a Invalid File is passed
setTextFieldBackground
public void setTextFieldBackground(Color c)
- Set TextField Background Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setTextFieldFont
public void setTextFieldFont(Font f)
- Set TextField Font to specified Value
- Parameters:
- f - java.awt.Font
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setTextFieldForeground
public void setTextFieldForeground(Color c)
- Set TextField Foreground Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setUIBackground
public void setUIBackground(Color c)
- Set UserInterface Background Color to specified Value
- Parameters:
- c - java.awt.Color
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setUIFont
public void setUIFont(Font f)
- Set UserInterface Font to specified Value
- Parameters:
- f - java.awt.Font
- Throws: IllegalArgumentException
- in case an Illegal Argument is passed
setUIForeground
public void setUIForeground(Color c)
- Set UserInterface Foreground Color to specified Value
- Parameters:
- c - java.awt.Color
exception IllegalArgumentException in case an Illegal Argument is passed
windowActivated
public void windowActivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosed
public void windowClosed(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosing
public void windowClosing(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowIconified
public void windowIconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowOpened
public void windowOpened(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
All Packages Class Hierarchy This Package Previous Next Index