com.agentpp.explorer.script.external
Interface GUI


public interface GUI

This interface describes methods for the "gui" context of the MIB Explorer script API. It allows a script to prompt input values such as strings or MIB object values.

Since:
1.5
Version:
2.0

Method Summary
 void promptForVariable(VariableBinding vb)
          Prompts for the value of a given variable binding with a modal dialog.
 java.lang.String promptString(java.lang.String message)
          Prompts the user for a String with a modal input dialog.
 java.util.Vector selectModules(java.lang.String message, boolean includeImported)
          Prompts for a list of MIB modules from the repository.
 void showErrorMessage(java.lang.String message, java.lang.String title)
          Displays an error message.
 void showWarningMessage(java.lang.String message, java.lang.String title)
          Displays a warning message.
 

Method Detail

promptString

java.lang.String promptString(java.lang.String message)
Prompts the user for a String with a modal input dialog.

Parameters:
message - the message text to be shown.
Returns:
a String if the user entered one, or null if the user pressed canceled the dialog.

promptForVariable

void promptForVariable(VariableBinding vb)
Prompts for the value of a given variable binding with a modal dialog.

Parameters:
vb - the VariableBinding to prompt for. The OID of the VB has to be set before. The new value will be stored into the VB when the user pressed OK.

selectModules

java.util.Vector selectModules(java.lang.String message,
                               boolean includeImported)
Prompts for a list of MIB modules from the repository.

Parameters:
message - the message text to be shown.
includeImported - if true imported
Returns:
a Vector that contains the selected MIB modules, or null if the user has canceled the dialog.

showErrorMessage

void showErrorMessage(java.lang.String message,
                      java.lang.String title)
Displays an error message.

Parameters:
message - the message to display.
title - the title of the message dialog.
Since:
2.0

showWarningMessage

void showWarningMessage(java.lang.String message,
                        java.lang.String title)
Displays a warning message.

Parameters:
message - the message to display.
title - the title of the message dialog.
Since:
2.0

Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com