|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.opennms.bb.eui.admin.snmp.panels.SnmpConfigPanel
SnmpConfigPanel is the core panel for the 'SnmpConfig'
This creates the tabbedpanes, the menu, toolbar to operate on the tables of these tabbed panes
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent, JComponent.ActionStandin, JComponent.IntVector, JComponent.KeyboardState |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Fields inherited from class javax.swing.JPanel |
defaultLayout, uiClassID |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, needsPaint, printing, printingThreads, serialVersionUID |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
Constructor Summary | |
SnmpConfigPanel(JFrame frame,
String userID)
|
Method Summary | |
void |
actionPerformed(ActionEvent e)
Handles actions for all the menu items and the toolbar buttons |
void |
columnAdded(TableColumnModelEvent e)
|
void |
columnMarginChanged(ChangeEvent e)
|
void |
columnMoved(TableColumnModelEvent e)
|
void |
columnRemoved(TableColumnModelEvent e)
|
void |
columnSelectionChanged(ListSelectionEvent e)
Table(s) column selection listener to set status |
protected BBTabbedPane |
createBBTabbedPanes()
Creates the tabbed pane by reading data from the xml file |
protected void |
createDefaultPanel(SnmpXmlParser parser)
Creates the 'Default' panel |
protected JMenuBar |
createMenu()
Creates the menubar |
protected void |
createRangesPanel(SnmpXmlParser parser)
Creates the 'Ranges' panel |
protected void |
createSpecificDevicesPanel(SnmpXmlParser parser)
Creates the 'Specific Devices' panel |
protected JLabel |
createStatusBar()
Creates the statusbar |
protected JToolBar |
createToolBar()
Creates the toolbar |
protected void |
createUrlConfigPanel(SnmpXmlParser parser)
Creates the 'Url' panel |
private void |
disableCopyDelete()
|
private void |
enableCopyDelete()
|
private void |
handleAdd()
|
private void |
handleCopy()
|
private void |
handleDelete()
|
private void |
handleExit()
|
(package private) void |
handleMenuToolBarActions(String actionStr)
|
private void |
handlePaste()
|
private void |
handleSave()
|
void |
handleWindowClose()
Exits only if tabbedpane is clean |
void |
handleWindowOpen()
Sets intial focus to first cell of the default panel |
protected void |
readUserProfile()
Reads the user preferences from the user profile file |
protected void |
saveUserProfile()
Handles the storing of user preferences to the user profile file. |
private void |
setLookAndFeel(String str)
|
private void |
setStatus()
|
protected void |
setTabTitles(String[] titles)
Set the tab titles from the array |
protected void |
setUserPosDimPreferences()
Sets the (x,y) and size preferences of the user |
protected void |
SnmpConfigInit(JFrame frame,
String userID)
|
void |
tableChanged(TableModelEvent e)
Table(s) model listener to set status and enable/diable 'delete' |
protected boolean |
validateValuesInTables()
|
void |
valueChanged(ListSelectionEvent e)
Table(s) row selection model listener to enable/disable copy and delete |
Methods inherited from class javax.swing.JPanel |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
JFrame snmpFrame
boolean bParseException
BBTabbedPane snmpTabbedPane
DefaultManipPanel dPanel
IPRangesManipPanel iprPanel
SpecificDevicesManipPanel sdPanel
UrlConfigManipPanel ucPanel
final int DEF_MANIP_PANEL
final int IPR_MANIP_PANEL
final int SD_MANIP_PANEL
final int UC_MANIP_PANEL
final String tabPaneID
BBTabbedPaneMenuItem copyMenuItem
BBTabbedPaneMenuItem pasteMenuItem
BBTabbedPaneMenuItem addMenuItem
BBTabbedPaneMenuItem deleteMenuItem
BBTabbedPaneTBButton copyButton
BBTabbedPaneTBButton pasteButton
BBTabbedPaneTBButton addButton
BBTabbedPaneTBButton deleteButton
private Vector clipBoardVector
private int iCopyPanel
private int iCurrentActivePanel
private int iLastActivePanel
private ListSelectionModel iprRowSM
private ListSelectionModel sdRowSM
private ListSelectionModel ucRowSM
private TableColumnModel iprColM
private TableColumnModel sdColM
private TableColumnModel ucColM
JLabel statusLabel
String userID
final String XPOS
final String YPOS
final String WIDTH
final String HEIGHT
final String LOOKNFEEL
boolean bLandFAtStartUp
Hashtable userProfile
Constructor Detail |
public SnmpConfigPanel(JFrame frame, String userID)
Method Detail |
protected void SnmpConfigInit(JFrame frame, String userID)
public void handleWindowOpen()
public void handleWindowClose()
protected void readUserProfile()
protected void setUserPosDimPreferences()
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
public void columnSelectionChanged(ListSelectionEvent e)
columnSelectionChanged
in interface TableColumnModelListener
public void columnAdded(TableColumnModelEvent e)
columnAdded
in interface TableColumnModelListener
public void columnMoved(TableColumnModelEvent e)
columnMoved
in interface TableColumnModelListener
public void columnRemoved(TableColumnModelEvent e)
columnRemoved
in interface TableColumnModelListener
public void columnMarginChanged(ChangeEvent e)
columnMarginChanged
in interface TableColumnModelListener
private void setStatus()
private void disableCopyDelete()
private void enableCopyDelete()
protected void setTabTitles(String[] titles)
protected JMenuBar createMenu()
protected JToolBar createToolBar()
protected JLabel createStatusBar()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
void handleMenuToolBarActions(String actionStr)
private void setLookAndFeel(String str)
private void handleCopy()
private void handleDelete()
private void handlePaste()
private void handleExit()
protected void saveUserProfile()
Handles the storing of user preferences to the user profile file. If the write into the profile file fails, the step is retried thrice as a minimum mechanism to offset the possiblity of a different application currently writing into the profile
private void handleAdd()
private void handleSave()
protected boolean validateValuesInTables()
protected BBTabbedPane createBBTabbedPanes()
protected void createDefaultPanel(SnmpXmlParser parser)
protected void createRangesPanel(SnmpXmlParser parser)
protected void createSpecificDevicesPanel(SnmpXmlParser parser)
protected void createUrlConfigPanel(SnmpXmlParser parser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |