|
||||||||||
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.operator.panels.OperatorInterfacePanel
OperatorInterfacePanel is the realtime console panel It contains the standard menu/tool bar options and also adds - external menu options from the 'ExternalMenu' file specified in the user profile file - external tool options from the 'ExternalTools' file specified in the user profile file The operator standard options allows the operator to - sort on name or severity - configure the folder tabs. i.e add/remove to/from the configured views from the list of views available to the user - bring up the event browser The operator can drill down to the various levels by double-click on a bar or jump to different levels by using the right-click popup menu on the bars The OperatorInterfacePanel automatically reads from the user profile file to restore user's last used configured views, tab placement, look and feel, size etc. and stores these on exit
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 | |
OperatorInterfacePanel(JFrame frame,
String inpUserID)
|
Method Summary | |
void |
configureTabbedPanes(Vector toConfigureList)
Reconfigure the tabbed panes after user changes the views he want configured |
protected Vector |
createAvailableViews()
Creates the available view vector from the xml file |
protected JPanel |
createStatusBarAndZoom()
Creates the status bar and the zoom radio buttons |
protected JPanel |
createStatusPanel()
Creates the statusbar |
protected JTabbedPane |
createTabbedPanes()
Creates the tabbed pane |
protected JPanel |
createZoomPanel()
Creates the zoom panel |
protected Vector |
getAvailableViews()
|
protected Vector |
getConfiguredViews()
|
String |
getCurTab()
|
String |
getUser()
|
protected Hashtable |
getUserProfile()
|
private void |
handleExit()
|
protected void |
handleMenuToolBarActions(String actionStr)
Handles actions for all the menu items and the toolbar buttons |
void |
handleWindowClose()
Store user preferences on exit |
void |
handleWindowOpen()
|
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. |
protected void |
setAllOptions(boolean b)
Enable/Disable all options |
void |
setCurrentActiveComponent(OperatorPanel newPanel)
Sets the currently selected tab to hold the new component - used by the bars to set the next component Also updates the stack of components for this tab |
private void |
setLookAndFeel(String str)
|
protected void |
setSortOptions(boolean b)
Enable/Disable the sort options |
private void |
setStatus(int statusHint)
Sets status from the ID depending on the level |
protected void |
setUp(boolean b)
Enable/Disable the 'move up' and 'Go top' options |
protected void |
setUpViewsToConfigure()
Creates a list of views to configure from the list of configured views the user was using the last time he ran. |
protected void |
setUserPosDimPreferences()
Sets the (x,y) and size preferences of the user |
Hashtable |
translateAvailableViewTitleToView(Object title)
|
Hashtable |
translateConfigViewTitleToView(Object title)
|
protected Hashtable |
translateViewTitleToView(Vector views,
Object title)
|
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 |
boolean bParseException
protected JTabbedPane opTabbedPane
protected JMenuItem upMenuItem
protected JMenuItem topLevelMenuItem
protected JMenuItem nameSortMenuItem
protected JMenuItem severityMenuItem
protected JMenuItem alertMenuItem
protected JMenuItem configureMenuItem
protected BBTBButton upButton
protected BBTBButton topLevelButton
protected BBTBButton nameSortButton
protected BBTBButton severityButton
protected BBTBButton alertButton
protected BBTBButton configureButton
protected JLabel navigationLabel
JRadioButton zoomRadio
JRadioButton persRadio
final int STATUS_DOWN
final int STATUS_UP
final int STATUS_CHANGE
protected Hashtable prevPanel
protected OperatorPanel curPanel
protected StringBuffer curTab
public final String VIEWS_LEVEL
public final String CATEGORY_LEVEL
public final String EVENTS_LEVEL
protected Vector availableViewsVector
protected Vector configViewsVector
Hashtable userProfile
String userID
final String XPOS
final String YPOS
final String WIDTH
final String HEIGHT
final String TAB_PLACE
final String LOOKNFEEL
final String VIEWS
final String LABEL
final String ENAME
final String EDESCR
boolean bLandFAtStartUp
boolean bLookAndFeelChanged
protected JFrame opFrame
Constructor Detail |
public OperatorInterfacePanel(JFrame frame, String inpUserID)
Method Detail |
public void handleWindowOpen()
public void handleWindowClose()
protected JPanel createStatusBarAndZoom()
protected JPanel createStatusPanel()
protected JPanel createZoomPanel()
private void setStatus(int statusHint)
protected void handleMenuToolBarActions(String actionStr)
private void setLookAndFeel(String str)
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
protected void readUserProfile()
protected void setUserPosDimPreferences()
protected JTabbedPane createTabbedPanes()
protected void setUpViewsToConfigure()
Creates a list of views to configure from the list of configured views the user was using the last time he ran. The list is checked against the available views to check the view is still available to the user If the last used list is unavailable, all available views are configured
protected Vector createAvailableViews()
public String getCurTab()
public void setCurrentActiveComponent(OperatorPanel newPanel)
public void configureTabbedPanes(Vector toConfigureList)
protected void setUp(boolean b)
protected void setSortOptions(boolean b)
protected void setAllOptions(boolean b)
public Hashtable translateAvailableViewTitleToView(Object title)
public Hashtable translateConfigViewTitleToView(Object title)
protected Hashtable translateViewTitleToView(Vector views, Object title)
protected Vector getAvailableViews()
protected Vector getConfiguredViews()
protected Hashtable getUserProfile()
public String getUser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |