public class propertyDialog2
extends javax.swing.JDialog
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.WindowListener
The class propertyDialog is used to set the SNMPv3 properties. A user can add an actionListener to be notified when the "Apply" or "OK" button is pressed.
The user can configure
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
actionPerformedListener |
protected int |
aprotocol |
protected java.lang.String |
bindAddr |
protected byte[] |
contextEngineId |
protected java.lang.String |
contextName |
protected boolean |
doAuthentication |
protected boolean |
doPrivacy |
protected javax.swing.JFileChooser |
fileChooser |
protected java.lang.String |
host |
protected java.lang.String |
port |
protected int |
pprotocol |
protected java.lang.String |
socketType |
protected java.lang.String |
userAuthPassw |
protected java.lang.String |
userName |
protected java.lang.String |
userPrivPassw |
protected Util |
util |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
propertyDialog2() |
propertyDialog2(javax.swing.JFrame frame) |
propertyDialog2(javax.swing.JFrame frame,
Util u) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
void |
addActionListener(java.awt.event.ActionListener l)
Adds an action listener to be notified when the "Apply" or "OK" button
is pressed.
|
void |
fillinFromUtil(Util u) |
protected void |
fireActionPerformed(java.awt.event.ActionEvent evt)
Fires a action event when the "Apply" or "OK"
button is pressed.
|
int |
getAProtocol() |
java.lang.String |
getBindAddress()
Returns the local bind address
|
byte[] |
getContextEngineId() |
java.lang.String |
getContextName() |
static java.awt.GridBagConstraints |
getGridBagConstraints2(int x,
int y,
int w,
int h,
double wx,
double wy,
int anchor,
int fill,
java.awt.Insets ins,
int ix,
int iy) |
java.lang.String |
getHost()
Returns the host string
|
java.lang.String |
getPort()
Returns the port string
|
int |
getPProtocol() |
java.lang.String |
getSocketType() |
java.lang.String |
getUserAuthPassw() |
java.lang.String |
getUserName() |
java.lang.String |
getUserPrivPassw() |
boolean |
isAuthentication() |
boolean |
isPrivacy() |
void |
itemStateChanged(java.awt.event.ItemEvent evt) |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an action listener.
|
void |
setAProtocol(int newVar) |
void |
setAuthentication(boolean newVar) |
void |
setBindAddress(java.lang.String newVar)
Sets the local bind address
|
void |
setContextEngineId(byte[] newVar) |
void |
setContextName(java.lang.String newVar) |
void |
setHost(java.lang.String newVar)
Sets the host string.
|
void |
setPort(java.lang.String newVar)
Sets the port string.
|
void |
setPProtocol(int newVar) |
void |
setPrivacy(boolean newVar) |
void |
setSocketType(java.lang.String newVar) |
void |
setUserAuthPassw(java.lang.String newVar) |
void |
setUserName(java.lang.String newVar) |
void |
setUserPrivPassw(java.lang.String newVar) |
void |
windowActivated(java.awt.event.WindowEvent evt) |
void |
windowClosed(java.awt.event.WindowEvent evt) |
void |
windowClosing(java.awt.event.WindowEvent evt) |
void |
windowDeactivated(java.awt.event.WindowEvent evt) |
void |
windowDeiconified(java.awt.event.WindowEvent evt) |
void |
windowIconified(java.awt.event.WindowEvent evt) |
void |
windowOpened(java.awt.event.WindowEvent evt) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.util.Vector actionPerformedListener
protected java.lang.String host
protected java.lang.String bindAddr
protected java.lang.String port
protected byte[] contextEngineId
protected java.lang.String contextName
protected java.lang.String userName
protected boolean doAuthentication
protected boolean doPrivacy
protected java.lang.String userAuthPassw
protected java.lang.String userPrivPassw
protected java.lang.String socketType
protected int aprotocol
protected int pprotocol
protected javax.swing.JFileChooser fileChooser
protected Util util
public propertyDialog2()
public propertyDialog2(javax.swing.JFrame frame)
public propertyDialog2(javax.swing.JFrame frame, Util u)
public java.lang.String getHost()
public java.lang.String getBindAddress()
public java.lang.String getPort()
public byte[] getContextEngineId()
public java.lang.String getContextName()
public java.lang.String getUserName()
public java.lang.String getUserAuthPassw()
public java.lang.String getSocketType()
public boolean isAuthentication()
public int getAProtocol()
public boolean isPrivacy()
public java.lang.String getUserPrivPassw()
public int getPProtocol()
public void setHost(java.lang.String newVar)
newVar
- the stringpublic void setBindAddress(java.lang.String newVar)
newVar
- the stringpublic void setPort(java.lang.String newVar)
newVar
- the stringpublic void setSocketType(java.lang.String newVar)
public void setContextEngineId(byte[] newVar)
public void setContextName(java.lang.String newVar)
public void setUserName(java.lang.String newVar)
public void setAuthentication(boolean newVar)
public void setUserAuthPassw(java.lang.String newVar)
public void setAProtocol(int newVar)
public void setPrivacy(boolean newVar)
public void setUserPrivPassw(java.lang.String newVar)
public void setPProtocol(int newVar)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged
in interface java.awt.event.ItemListener
public void fillinFromUtil(Util u)
public void addActionListener(java.awt.event.ActionListener l)
public void removeActionListener(java.awt.event.ActionListener l)
protected void fireActionPerformed(java.awt.event.ActionEvent evt)
removeActionListener(java.awt.event.ActionListener)
,
addActionListener(java.awt.event.ActionListener)
,
ActionEvent
,
ActionListener
public static java.awt.GridBagConstraints getGridBagConstraints2(int x, int y, int w, int h, double wx, double wy, int anchor, int fill, java.awt.Insets ins, int ix, int iy)
public void windowActivated(java.awt.event.WindowEvent evt)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent evt)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent evt)
windowClosing
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent evt)
windowClosed
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent evt)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent evt)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent evt)
windowOpened
in interface java.awt.event.WindowListener