Class SNMPHostInfoDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class SNMPHostInfoDialog extends JDialog implements ActionListener
See Also:
  • Field Details

  • Constructor Details

    • SNMPHostInfoDialog

      public SNMPHostInfoDialog(Frame owner, String title)
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
    • SNMPHostInfoDialog

      public SNMPHostInfoDialog(Frame owner, String title, com.nt.udc.admin.TrapHost host)
      Constructor which populates information in the dialog box with values contained in the given TrapHost Object.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      host - Information to populate the text fields with
  • Method Details

    • getInfo

      public static com.nt.udc.admin.TrapHost getInfo(Frame owner, String title, com.nt.udc.admin.TrapHost host)
      Displays this dialog populated with information from info and returns the user modified information.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      host - Information to populate the text fields with
      Returns:
      TrapHost Object containing the information that the user modified. null, if the user cancels the operation.
    • getInfo

      public static com.nt.udc.admin.TrapHost getInfo(Frame owner, String title)
      Displays this dialog and returns the information that the user has entered.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      Returns:
      TrapHost Object containing the information that the user entered. null, if the user cancels the operation.
    • addGUIComponents

      protected void addGUIComponents()
      Lays out the components of this dialog.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener