com.adventnet.snmp.beans
Class PropertyCustomPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.adventnet.snmp.beans.PropertyCustomPanel

public class PropertyCustomPanel
extends javax.swing.JPanel

This is the custom panel for v3 settings for all AdventNet Snmp Beans.

See Also:
Serialized Form

Inner Class Summary
(package private)  class PropertyCustomPanel.selectionListener
           
(package private)  class PropertyCustomPanel.UserAddEditor
           
(package private)  class PropertyCustomPanel.UserTableModel
           
 
Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardBinding, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  java.lang.String aPass
           
(package private)  javax.swing.JComboBox authProtChoice
           
(package private)  java.lang.String authProtocol
           
(package private)  int currentUser
           
(package private)  SnmpEngineTable engineTable
           
(package private)  java.lang.String host
           
(package private)  java.awt.Font lfont
           
(package private)  int port
           
(package private)  java.lang.String pPass
           
(package private)  javax.swing.JComboBox privProtChoice
           
(package private)  javax.swing.JScrollPane scrpan
           
(package private)  java.lang.String secLevel
           
(package private)  javax.swing.JComboBox secLevelChoice
           
(package private)  javax.swing.JLabel statlabel
           
(package private)  java.beans.PropertyChangeSupport support
           
(package private)  javax.swing.JTable table
           
(package private)  CustomizerTemplate target
           
(package private)  java.lang.String uName
           
(package private)  PropertyCustomPanel.UserAddEditor useraddpanel
           
(package private)  java.util.Vector usersVec
           
(package private)  USMUserTable usmTable
           
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, listenerList, paintingChild, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
 
Constructor Summary
PropertyCustomPanel(java.lang.Object o, java.beans.PropertyChangeSupport support)
           
 
Method Summary
(package private)  void addUsers()
           
(package private) static int authToInt(java.lang.String auth)
           
(package private) static java.lang.String authToString(int auth)
           
(package private)  void deleteUsers()
           
(package private)  void fillUsersData(boolean update)
           
(package private)  void modifyUsers()
           
(package private) static java.lang.String privToString(int priv)
           
(package private) static byte secToByte(java.lang.String secLevel)
           
(package private) static java.lang.String secToString(byte secLevel)
           
 void updateEditor()
          this will refesh the USM Table entry in JTable
 
Methods inherited from class javax.swing.JPanel
, getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, alwaysOnTop, bindingForKeyStroke, checkIfChildObscuredBySibling, computeVisibleRect, computeVisibleRect, contains, createToolTip, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getLayout, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setCursor, setFocusOwner, setLayout, transferFocus, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocale, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

CustomizerTemplate target

usersVec

java.util.Vector usersVec

host

java.lang.String host

port

int port

scrpan

javax.swing.JScrollPane scrpan

support

java.beans.PropertyChangeSupport support

useraddpanel

PropertyCustomPanel.UserAddEditor useraddpanel

usmTable

USMUserTable usmTable

engineTable

SnmpEngineTable engineTable

lfont

java.awt.Font lfont

table

javax.swing.JTable table

currentUser

int currentUser

authProtChoice

javax.swing.JComboBox authProtChoice

privProtChoice

javax.swing.JComboBox privProtChoice

secLevelChoice

javax.swing.JComboBox secLevelChoice

statlabel

javax.swing.JLabel statlabel

uName

java.lang.String uName

aPass

java.lang.String aPass

pPass

java.lang.String pPass

secLevel

java.lang.String secLevel

authProtocol

java.lang.String authProtocol
Constructor Detail

PropertyCustomPanel

public PropertyCustomPanel(java.lang.Object o,
                           java.beans.PropertyChangeSupport support)
Method Detail

updateEditor

public void updateEditor()
this will refesh the USM Table entry in JTable

addUsers

void addUsers()

modifyUsers

void modifyUsers()

deleteUsers

void deleteUsers()

fillUsersData

void fillUsersData(boolean update)

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)