Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.co.westhawk.examplev3
Class propertyDialog2

    java.lang.Object
      |
      +--java.awt.Component
            |
            +--java.awt.Container
                  |
                  +--java.awt.Window
                        |
                        +--java.awt.Dialog
                              |
                              +--javax.swing.JDialog
                                    |
                                    +--uk.co.westhawk.examplev3.propertyDialog2

All Implemented Interfaces:
  javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, java.awt.event.WindowListener

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

- the host name
- the port number
- the socket type
- the local bind address
- the user name
- whether to use authentication or not
- the user authentication password
- the authentication protocol
- whether to use privacy or not
- the user privacy password
- the context engine id
- the context name

Version:
  $Revision: 1.4 $ $Date: 2006/01/26 12:47:19 $
Author:
  Birgit Arkesteijn
See Also:
  Serialized Form

Field Summary
`protected java.util.Vector` | `actionPerformedListener`
`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` | `protocol`
`protected java.lang.String` | `socketType`
`protected java.lang.String` | `userAuthPassw`
`protected java.lang.String` | `userName`
`protected java.lang.String` | `userPrivPassw`
`protected Util` | `util`

Fields inherited from class javax.swing.JDialog
`accessibleContext, rootPane, rootPaneCheckingEnabled`

Fields inherited from class java.awt.Component
`BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT`

Fields inherited from interface javax.swing.WindowConstants
`DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE`

Fields inherited from interface java.awt.image.ImageObserver
`ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH`

Constructor Summary
`propertyDialog2()`
`propertyDialog2(javax.swing.JFrame frame)`
`propertyDialog2(javax.swing.JFrame frame, Util u)`

Method Summary
`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.
`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` | `getProtocol()`
`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` | `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` | `setPrivacy(boolean newVar)`
`void` | `setProtocol(int 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)`

Methods inherited from class javax.swing.JDialog
`addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update`

Methods inherited from class java.awt.Dialog
`addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show`

Methods inherited from class java.awt.Window
`addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront`

Methods inherited from class java.awt.Container
`add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree`

Methods inherited from class java.awt.Component
`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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle`

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### actionPerformedListener

    protected java.util.Vector actionPerformedListener

### host

    protected java.lang.String host

### bindAddr

    protected java.lang.String bindAddr

### port

    protected java.lang.String port

### contextEngineId

    protected byte[] contextEngineId

### contextName

    protected java.lang.String contextName

### userName

    protected java.lang.String userName

### doAuthentication

    protected boolean doAuthentication

### doPrivacy

    protected boolean doPrivacy

### userAuthPassw

    protected java.lang.String userAuthPassw

### userPrivPassw

    protected java.lang.String userPrivPassw

### socketType

    protected java.lang.String socketType

### protocol

    protected int protocol

### fileChooser

    protected javax.swing.JFileChooser fileChooser

### util

    protected Util util

Constructor Detail

### propertyDialog2

    public propertyDialog2()

### propertyDialog2

    public propertyDialog2(javax.swing.JFrame frame)

### propertyDialog2

    public propertyDialog2(javax.swing.JFrame frame,
                           Util u)

Method Detail

### getHost

    public java.lang.String getHost()

  Returns the host string

  Returns:
    the string

### getBindAddress

    public java.lang.String getBindAddress()

  Returns the local bind address

  Returns:
    the string
  Since:
    4_14

### getPort

    public java.lang.String getPort()

  Returns the port string

  Returns:
    the string

### getContextEngineId

    public byte[] getContextEngineId()

### getContextName

    public java.lang.String getContextName()

### getUserName

    public java.lang.String getUserName()

### getUserAuthPassw

    public java.lang.String getUserAuthPassw()

### getSocketType

    public java.lang.String getSocketType()

### isAuthentication

    public boolean isAuthentication()

### getProtocol

    public int getProtocol()

### isPrivacy

    public boolean isPrivacy()

### getUserPrivPassw

    public java.lang.String getUserPrivPassw()

### setHost

    public void setHost(java.lang.String newVar)

  Sets the host string.

  Parameters:
    `newVar` - the string

### setBindAddress

    public void setBindAddress(java.lang.String newVar)

  Sets the local bind address

  Parameters:
    `newVar` - the string
  Since:
    4_14

### setPort

    public void setPort(java.lang.String newVar)

  Sets the port string.

  Parameters:
    `newVar` - the string

### setSocketType

    public void setSocketType(java.lang.String newVar)

### setContextEngineId

    public void setContextEngineId(byte[] newVar)

### setContextName

    public void setContextName(java.lang.String newVar)

### setUserName

    public void setUserName(java.lang.String newVar)

### setAuthentication

    public void setAuthentication(boolean newVar)

### setUserAuthPassw

    public void setUserAuthPassw(java.lang.String newVar)

### setProtocol

    public void setProtocol(int newVar)

### setPrivacy

    public void setPrivacy(boolean newVar)

### setUserPrivPassw

    public void setUserPrivPassw(java.lang.String newVar)

### actionPerformed

    public void actionPerformed(java.awt.event.ActionEvent evt)

  Specified by:
    `actionPerformed` in interface `java.awt.event.ActionListener`

### itemStateChanged

    public void itemStateChanged(java.awt.event.ItemEvent evt)

  Specified by:
    `itemStateChanged` in interface `java.awt.event.ItemListener`

### fillinFromUtil

    public void fillinFromUtil(Util u)

### addActionListener

    public void addActionListener(java.awt.event.ActionListener l)

  Adds an action listener to be notified when the "Apply" or "OK" button is pressed.

  See Also:
    `removeActionListener(java.awt.event.ActionListener)`

### removeActionListener

    public void removeActionListener(java.awt.event.ActionListener l)

  Removes an action listener.

  See Also:
    `addActionListener(java.awt.event.ActionListener)`

### fireActionPerformed

    protected void fireActionPerformed(java.awt.event.ActionEvent evt)

  Fires a action event when the "Apply" or "OK" button is pressed.

  See Also:
    `removeActionListener(java.awt.event.ActionListener)`, `addActionListener(java.awt.event.ActionListener)`, `ActionEvent`, `ActionListener`

### getGridBagConstraints2

    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)

### windowActivated

    public void windowActivated(java.awt.event.WindowEvent evt)

  Specified by:
    `windowActivated` in interface `java.awt.event.WindowListener`

### windowDeactivated

    public void windowDeactivated(java.awt.event.WindowEvent evt)

  Specified by:
    `windowDeactivated` in interface `java.awt.event.WindowListener`

### windowClosing

    public void windowClosing(java.awt.event.WindowEvent evt)

  Specified by:
    `windowClosing` in interface `java.awt.event.WindowListener`

### windowClosed

    public void windowClosed(java.awt.event.WindowEvent evt)

  Specified by:
    `windowClosed` in interface `java.awt.event.WindowListener`

### windowIconified

    public void windowIconified(java.awt.event.WindowEvent evt)

  Specified by:
    `windowIconified` in interface `java.awt.event.WindowListener`

### windowDeiconified

    public void windowDeiconified(java.awt.event.WindowEvent evt)

  Specified by:
    `windowDeiconified` in interface `java.awt.event.WindowListener`

### windowOpened

    public void windowOpened(java.awt.event.WindowEvent evt)

  Specified by:
    `windowOpened` in interface `java.awt.event.WindowListener`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD