com.adventnet.snmp.ui
Class SettingsDialog
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--com.adventnet.snmp.ui.SettingsDialog
- public class SettingsDialog
- extends javax.swing.JDialog
This class is the dialog containing all the properties of the bean which is
displayed
when we click the PropertySettings bean.
- See Also:
- Serialized Form
| Inner classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
| Fields inherited from class javax.swing.JDialog |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
modal,
resizable,
title |
| Fields inherited from class java.awt.Window |
inputContext,
OPENED,
ownedWindowList,
state,
warningString,
windowListener |
| Fields inherited from class java.awt.Container |
component,
containerListener,
layoutMgr,
ncomponents |
| Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
| Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
dialogInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setLocationRelativeTo,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.awt.Dialog |
,
addNotify,
constructComponentName,
dispose,
getTitle,
hide,
isModal,
isResizable,
setModal,
setResizable,
setTitle,
show |
| Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
eventEnabled,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isActive,
isShowing,
nextFocus,
pack,
postEvent,
postProcessKeyEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
removeOwnedWindow,
removeWindowListener,
setCursor,
setFocusOwner,
toBack,
toFront,
transferFocus |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
printHeavyweightComponents,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
updateCursor,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
hostLbl
javax.swing.JLabel hostLbl
portLbl
javax.swing.JLabel portLbl
timeoutLbl
javax.swing.JLabel timeoutLbl
retriesLbl
javax.swing.JLabel retriesLbl
versionLbl
javax.swing.JLabel versionLbl
pollIntLbl
javax.swing.JLabel pollIntLbl
hostTxt
javax.swing.JTextField hostTxt
portTxt
javax.swing.JTextField portTxt
timeoutTxt
javax.swing.JTextField timeoutTxt
retriesTxt
javax.swing.JTextField retriesTxt
pollIntTxt
javax.swing.JTextField pollIntTxt
versionChoice
javax.swing.JComboBox versionChoice
UNUSED
static final int UNUSED
USER_NAME
static final int USER_NAME
SECURITY_LEVEL
static final int SECURITY_LEVEL
AUTH_PROTOCOL
static final int AUTH_PROTOCOL
PRIV_PROTOCOL
static final int PRIV_PROTOCOL
HOST
static final int HOST
PORT
static final int PORT
NUM_COLUMNS
static final int NUM_COLUMNS
NUM_ROWS
static final int NUM_ROWS
usersdata
java.lang.String[][] usersdata
shadesGridPanel
ShadesGrid shadesGridPanel
usmTable
USMUserTable usmTable
engineTable
SnmpEngineTable engineTable
userNameTxt
javax.swing.JTextField userNameTxt
- Some of the textarea in the set parameter window.
authPasswdTxt
javax.swing.JPasswordField authPasswdTxt
privPasswdTxt
javax.swing.JPasswordField privPasswdTxt
userNameLbl
javax.swing.JLabel userNameLbl
authPasswdLbl
javax.swing.JLabel authPasswdLbl
privPasswdLbl
javax.swing.JLabel privPasswdLbl
sevLevelLbl
javax.swing.JLabel sevLevelLbl
authProtocolLbl
javax.swing.JLabel authProtocolLbl
authProtChoice
javax.swing.JComboBox authProtChoice
privProtChoice
javax.swing.JComboBox privProtChoice
secLevelChoice
javax.swing.JComboBox secLevelChoice
uName
java.lang.String uName
aPass
java.lang.String aPass
pPass
java.lang.String pPass
authProtocol
java.lang.String authProtocol
secLevel
java.lang.String secLevel
authPtcolBefore
java.lang.String authPtcolBefore
sLevel
byte sLevel
row
int row
host
java.lang.String host
port
int port
v3Panel
javax.swing.JPanel v3Panel
- The fonts to be used
OKPanel
javax.swing.JPanel OKPanel
cardPanel
javax.swing.JPanel cardPanel
dlg
javax.swing.JDialog dlg
SettingsDialog
SettingsDialog(java.beans.VetoableChangeSupport p,
java.lang.String title,
boolean modal,
SnmpEngineTable snmpengine,
USMUserTable usm)
updateDlg
void updateDlg(SnmpEngineTable etable,
USMUserTable utable)
getUSMTable
public USMUserTable getUSMTable()
- Get the reference to USMUserTable.
- Returns:
- the reference to USMUserTable.
getSnmpEngineTable
public SnmpEngineTable getSnmpEngineTable()
- Get the reference to SnmpEngineTable.
- Returns:
- the reference to SnmpEngineTable.
getParameters
void getParameters()
addUsers
public void addUsers()
- Method called for adding users to the table after setting all
the v3 parameters
updateParameters
public void updateParameters(int selectedrow)
- This method gets the v3 parameters for the selected row and
populates the text fields in the SettingsDialog.
deleteUsers
void deleteUsers(int selectedrow)
fillUsersData
void fillUsersData()
authToInt
static int authToInt(java.lang.String auth)
secToString
static java.lang.String secToString(byte secLevel)
secToByte
static byte secToByte(java.lang.String secLevel)
authToString
static java.lang.String authToString(int auth)
privToString
static java.lang.String privToString(int priv)
getUserNameTxt
public java.lang.String getUserNameTxt()
- To get the User name in SettingsDialog
getAuthPasswdTxt
public java.lang.String getAuthPasswdTxt()
- To get the AuthPassword in SettingsDialog
getAuthProtChoice
public int getAuthProtChoice()
- To get the AuthProtocol choice in SettingsDialog
getSecLevelChoice
public byte getSecLevelChoice()
- To get the Security Level in SettingsDialog
getPrivPasswdTxt
public java.lang.String getPrivPasswdTxt()
- To get the PrivPassword in SettingsDialog
versionToInt
static int versionToInt(java.lang.String version)
getHostTxt
public java.lang.String getHostTxt()
- To get the Hostname in SettingsDialog
getPortTxt
public int getPortTxt()
- To get the port in SettingsDialog
getTimeoutTxt
public int getTimeoutTxt()
- To get the Timeout in SettingsDialog
getRetriesTxt
public int getRetriesTxt()
- To get the Retries in SettingsDialog
getPollIntTxt
public int getPollIntTxt()
- To get the Poll interval in SettingsDialog
getSnmpVersion
public int getSnmpVersion()
- To get the Snmp Version in SettingsDialog