"WEBNMS_5 API Docs"

com.adventnet.nms.startclient
Class NmsCustomPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.adventnet.nms.startclient.AbstractBaseNmsPanel
                      extended by com.adventnet.nms.startclient.NmsCustomPanel
All Implemented Interfaces:
NmsPanel, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible
Direct Known Subclasses:
AlertApplet, NmsListView

public abstract class NmsCustomPanel
extends AbstractBaseNmsPanel
implements java.lang.Runnable, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.FocusListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 int alignment
           
protected  java.util.Vector allPropertyVector
           
 javax.swing.JApplet applet
           
protected  java.lang.String argumentForMainPanel
           
protected  java.util.Properties attributeList
           
protected  com.adventnet.nms.startclient.PageLengthCombo c
           
protected  CustomClient cclient
           
protected  java.util.Vector choiceElementsVector
           
protected  boolean choiceRequired
           
protected  java.lang.String columnsToRenderer
           
static long dateDiff
           
protected  java.lang.String direction
           
protected  java.lang.String displayType
           
protected  java.util.Hashtable displayTypeVsColumns
           
 NmsMenuItem doubleClickMenuItem
           
protected  java.lang.String endSpecification
           
protected  java.util.Hashtable endSpecificationHash
           
protected  java.util.Properties filterProp
           
protected  java.util.Hashtable filterprophash
           
protected  javax.swing.JButton firstbutton
           
protected  javax.swing.ImageIcon[] imageIcons
           
static java.lang.String jan1_98
           
protected  java.lang.String keyForIncrements
           
protected  javax.swing.JButton lastbutton
           
protected  javax.swing.JLabel List_label
           
protected  java.util.Hashtable menu_ht
           
protected  javax.swing.JMenuBar menuBar
           
protected  java.util.Vector menusVector
           
protected  javax.swing.JCheckBox minButton
           
protected  javax.swing.JLabel minusLabel
           
protected  javax.swing.JButton nextbutton
           
protected  boolean nextprevButtonRequired
           
protected  javax.swing.JPanel p
           
protected  java.lang.String panelkey
           
 java.util.Hashtable panelVsOperatorKey
           
 java.util.Hashtable panelVsSearchKey
           
 java.lang.String parentNameInTreeView
           
protected  java.lang.String popupmenu
           
protected  java.lang.String preferredDirection
           
protected  int preferredViewLength
           
protected  javax.swing.JButton previousbutton
           
 int prevValues1
           
 int prevValues2
           
protected  java.util.Hashtable proplisthash
           
protected  javax.swing.JLabel rangeLabel
           
 javax.swing.JPanel rangePanel
           
protected  javax.swing.JTextField rangeTextField1
           
protected  javax.swing.JTextField rangeTextField2
           
protected  java.util.Vector removedCvs
           
protected  boolean reorderColumns
           
protected  java.lang.String retValueOfHandleEvent
           
protected  Search search
           
protected  java.util.Vector SearchElements
           
static java.util.Hashtable searchHistory
           
static java.util.Vector searchHistoryVector
           
protected  java.util.Hashtable selectedRowsHash
           
protected  javax.swing.JButton showallbutton
           
protected  java.util.Properties shownProperties
           
protected  java.util.Hashtable sortColumnHash
           
protected  java.lang.String sortOrderColumn
           
protected  java.lang.String sortOrderDir
           
protected  boolean started
           
protected  javax.swing.JButton stopButton
           
protected  boolean stopButtonRequired
           
protected  boolean temporaryFilterOn
           
protected  javax.swing.JTextField tf
           
protected  javax.swing.JPanel topPanel
           
protected  javax.swing.JLabel totallabel
           
protected  int totalLength
           
protected  java.util.Hashtable totalLengthHash
           
protected  java.util.Vector treelist
           
static java.util.Hashtable typeVsName
           
 int viewLength
           
protected  java.util.Hashtable viewLengthHash
           
 
Fields inherited from class com.adventnet.nms.startclient.AbstractBaseNmsPanel
tree_popup_menus, treePopupMenuName
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.adventnet.nms.startclient.NmsPanel
ADD_LEAF_TO_MENU, ALERT_ACTION_EVENT, ALERT_COUNT_ACTION_EVENT, BROWSE_ACTION_EVENT, CHANGE_PANEL_EVENT, CHANGE_TREE_SELECTION, CLOSE_EXTERNAL_FRAME, CLOSE_PANEL_EVENT, DETACH_FRAME, EVENT_ACTION_EVENT, EXECUTE_ACTION, LISTINTERFACES_ACTION_EVENT, LISTNODES_ACTION_EVENT, MAP_ACTION_EVENT, MAP_DOUBLECLICK_EVENT, MODIFY_TREE_ICON, MODIFY_TREE_LABEL, MODIFY_TREE_NODE_PROPERTIES, MOVE_NODE_TO_NEWINDEX, MOVE_TREE_NODE, NMS_ACTION_EVENT, REMOVE_LEAF_FROM_MENU, SET_APPLET_PROPERTY, SET_PANEL_PROPS, TREE_STATUS_UPDATE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
NmsCustomPanel()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          The default implementation of the ActionListener method.
 java.lang.String addNewFilter(java.util.Properties p, java.lang.String nameoffilter)
           
 java.lang.String addNewFilter(java.util.Properties p, java.lang.String nameoffilter, java.lang.String parentleaf)
           
 java.lang.String addNewFilter(java.util.Properties prop, java.lang.String nameOfFilter, java.lang.String parentleaf, boolean sync)
          This method adds or modifies a Custom View with the name nameOfFilter.
 java.lang.String addNewFilter(java.util.Properties prop, java.lang.String nameOfFilter, java.lang.String parentleaf, boolean sync, boolean isTabView)
           
 java.lang.String addNewTempFilter(java.util.Properties prop, java.lang.String filterName, java.lang.String parentNodeId, boolean addToTree)
           
abstract  void addObjects(java.util.Vector obvector)
           
protected  void addShowAllButton()
           
 void addTempToTree(java.lang.String filterID, java.lang.String parent, java.util.Properties attributeList, java.util.Properties criteriaProps, boolean addToTree)
           
 void addToRemovedCvs(java.lang.String viewId)
           
 void addToTreeView(java.lang.String disp)
           
 void addToTreeView(java.lang.String disp, java.lang.String parent)
           
 void addToTreeView(java.util.Vector v)
           
protected  void addToViewIdList()
           
protected static void adjustDate()
           
 void adjustTheEdges(java.lang.String edge)
           
 void busyCursor()
          change to busy cursor
abstract  void changeColumnsOfTable(java.lang.String displayType, java.lang.String tableColumns)
           
 void changeTheTreeView(java.lang.String disp)
           
 boolean checkMenuFile(java.lang.String menuName)
           
static long correctTimeInLong(long li)
          This method can be called to give the correct date in long if the browser date and the server dates do not match This should be called before the browser tries to convert evt.time to string format and shows it on screen
 void correctTotalNumbers(NmsTableModelEvent tableModelEvent)
           
abstract  void createMenuBar()
           
abstract  void customizeThePanel()
           
 void destroy()
          destroy the panel
protected  void doRefresh()
           
abstract  void doTheUpdate(NmsTableModelEvent event)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 int getAlignment(java.lang.String align)
          This method returns the alignment on which the ListView instance to be aligned.
protected  void getAndSetSortColumn()
          This method sets the column on which a list panel has to be sorted and stores the information as a record of (column#,order) in sortColumnHash HashTable.
 java.util.Properties getCustomViewPropertiesSync(java.lang.String viewName)
          This method returns the properties of the Custom View with the name viewName.
 java.lang.String getDisplayName(java.lang.String str)
           
 java.lang.String getDisplayType()
           
 java.lang.String getEndSpecification()
           
 java.util.Properties getFilterProp()
           
 java.util.Properties getFilterProp(java.lang.String fname)
           
 javax.swing.JFrame getFrame(java.awt.Component comp)
           
 javax.swing.JMenuBar getPanelMenuBar()
          Get the MenuBar for this panel
 java.util.Hashtable getPanelVsOperatorKey()
           
 java.util.Hashtable getPanelVsSearchKey()
           
 java.util.Properties getParameters(java.lang.String doc)
           
static java.util.Vector getSearchHistory(java.lang.String searchString)
           
abstract  java.lang.String getTableColumnWidths()
           
 int getTotalLength()
           
 int getViewLength()
           
 XMLNode getXMLNode(java.lang.String nodeID)
           
 XMLNode getXMLNode(XMLNode parent, java.lang.String match)
           
 void handleAllTypeOfSorting(java.lang.String[] sortInfo)
           
abstract  void handleCallForFilter(java.lang.String command)
          This method has to be implemented by the extending class to handle user specified customizable Data forms for Add and Modifying Custom Views.
 boolean hidePropsUI()
           
 void init(javax.swing.JApplet a)
          Abstract declaration of the corresponding method defined in the NmsPanel interface.
 void init(java.util.Properties prop)
          This method is used to pass the common properties defined for the Panel in the Tree.xml or NmsPanels.conf configuration file to this instance.
 boolean isInitialized()
          isInitialized implemented here to tell mainpanel whether the panels have been initialized
 java.lang.String isMultipleCustomView()
           
 boolean isTopPanelNeeded()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 java.lang.String key()
          Returns a name for the Panel
 void keyPressed(java.awt.event.KeyEvent ke)
           
 void keyReleased(java.awt.event.KeyEvent ke)
           
 void keyTyped(java.awt.event.KeyEvent ke)
           
 void mouseClicked(java.awt.event.MouseEvent me)
           
 void mouseEntered(java.awt.event.MouseEvent me)
           
 void mouseExited(java.awt.event.MouseEvent me)
           
 void mousePressed(java.awt.event.MouseEvent me)
           
 void mouseReleased(java.awt.event.MouseEvent me)
           
 void normalCursor()
          change to normal cursor
 java.lang.String parseVal(java.util.Properties p, java.lang.String val)
           
 void putFilterProp()
           
 void putFilterProp(java.util.Properties p, java.lang.String fname)
           
 boolean removeFilter(java.lang.String viewName, boolean sync)
          This method removes the Custom View with the name viewName.
 void removeFilterView(java.lang.String dType)
           
protected  void removeShowAllButton()
           
 boolean removeTabViewFilters(java.lang.String viewName, boolean sync)
           
 boolean renameTreeNode(java.lang.String nodeID, java.lang.String newTreeName)
          rename the node in the tree .
static long reverseCorrectTimeInLong(long li)
          This method can be called to give the correct date in long if the browser date and the server dates do not match This should be called before the browser tries to write into evt.time for sending to server .
 void run()
           
 boolean saveFilter(java.lang.String viewName, boolean sync)
          This method saves the Custom View with the name viewName.
 boolean saveFilterState(java.lang.String viewName, boolean sync)
          This method saves the Custom View State with the name viewName.
 void selectNextButton(boolean flag)
           
 void selectPreviousButton(boolean flag)
           
abstract  void selectRowsOfTable(int[] rows)
           
 void setCurrentNodeProperties(java.util.Hashtable nodeProperties)
          This method will be invoked to pass the attributes of the current tree node selected, to which this panel instance is associated.
 void setIncrements()
           
 void setPanelMenuBar(javax.swing.JMenuBar mb)
          Get the MenuBar for this panel
 void setPanelVsOperatorKey(java.lang.String panelName, java.util.Hashtable ht)
           
 void setPanelVsSearchKey(java.lang.String panelName, java.util.Vector keys)
           
 void setProperties(java.util.Properties prop)
          To set the (argumnets) for the panel before doing a change to that panel
 void setReorderColumns(boolean state)
           
static void setSearchHistory(java.util.Properties prop)
           
abstract  int setSortColumn(int serverSortColumn, boolean serverSortOrder, int clientSortColumn, boolean clientSortOrder, java.lang.String columnName)
          This method sets the column on which the ListView instance has to be sorted.
 void setTheParameters(java.lang.String dtype, int totalno, int vlength, int startIndex, java.lang.String sortedColumn, boolean sortedOrder)
           
 void setTheResultsOfFreezeUpdates(boolean flag)
           
 void setTopPanelNeeded(boolean needed)
           
 void setValidSortColumns(java.util.Vector validColumns)
           
 void sortOnServerSide(java.lang.String sortedColumn, boolean sortedOrder)
           
 void sortOnServerSide(java.lang.String sortedColumn, boolean sortedOrder, java.util.Properties rowProps)
           
 void start()
          Stub Implementation of the corresponding method in NmsPanel interface.
 void stop()
          stop the panel operations
 
Methods inherited from class com.adventnet.nms.startclient.AbstractBaseNmsPanel
addNmsPanelEventListener, destroy, fireNmsPanelEvent, getCurrentNodeProperties, getObjectMenus, getPanelCommonProperties, getTreePopupMenu, removeNmsPanelEventListener
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

panelkey

protected java.lang.String panelkey

argumentForMainPanel

protected java.lang.String argumentForMainPanel

parentNameInTreeView

public java.lang.String parentNameInTreeView

nextprevButtonRequired

protected boolean nextprevButtonRequired

choiceRequired

protected boolean choiceRequired

stopButtonRequired

protected boolean stopButtonRequired

preferredDirection

protected java.lang.String preferredDirection

preferredViewLength

protected int preferredViewLength

retValueOfHandleEvent

protected java.lang.String retValueOfHandleEvent

applet

public javax.swing.JApplet applet

cclient

protected CustomClient cclient

menuBar

protected javax.swing.JMenuBar menuBar

shownProperties

protected java.util.Properties shownProperties

p

protected javax.swing.JPanel p

topPanel

protected javax.swing.JPanel topPanel

tf

protected javax.swing.JTextField tf

rangePanel

public javax.swing.JPanel rangePanel

nextbutton

protected javax.swing.JButton nextbutton

previousbutton

protected javax.swing.JButton previousbutton

showallbutton

protected javax.swing.JButton showallbutton

firstbutton

protected javax.swing.JButton firstbutton

lastbutton

protected javax.swing.JButton lastbutton

stopButton

protected javax.swing.JButton stopButton

totallabel

protected javax.swing.JLabel totallabel

rangeLabel

protected javax.swing.JLabel rangeLabel

minusLabel

protected javax.swing.JLabel minusLabel

List_label

protected javax.swing.JLabel List_label

imageIcons

protected javax.swing.ImageIcon[] imageIcons

rangeTextField1

protected javax.swing.JTextField rangeTextField1

rangeTextField2

protected javax.swing.JTextField rangeTextField2

c

protected com.adventnet.nms.startclient.PageLengthCombo c

choiceElementsVector

protected java.util.Vector choiceElementsVector

viewLength

public int viewLength

totalLength

protected int totalLength

direction

protected java.lang.String direction

allPropertyVector

protected java.util.Vector allPropertyVector

filterProp

protected java.util.Properties filterProp

proplisthash

protected java.util.Hashtable proplisthash

treelist

protected java.util.Vector treelist

filterprophash

protected java.util.Hashtable filterprophash

sortColumnHash

protected java.util.Hashtable sortColumnHash

selectedRowsHash

protected java.util.Hashtable selectedRowsHash

displayTypeVsColumns

protected java.util.Hashtable displayTypeVsColumns

endSpecification

protected java.lang.String endSpecification

endSpecificationHash

protected java.util.Hashtable endSpecificationHash

viewLengthHash

protected java.util.Hashtable viewLengthHash

totalLengthHash

protected java.util.Hashtable totalLengthHash

displayType

protected java.lang.String displayType

started

protected boolean started

temporaryFilterOn

protected boolean temporaryFilterOn

jan1_98

public static java.lang.String jan1_98

dateDiff

public static long dateDiff

menusVector

protected java.util.Vector menusVector

keyForIncrements

protected java.lang.String keyForIncrements

typeVsName

public static java.util.Hashtable typeVsName

SearchElements

protected java.util.Vector SearchElements

attributeList

protected java.util.Properties attributeList

prevValues1

public int prevValues1

prevValues2

public int prevValues2

search

protected Search search

doubleClickMenuItem

public NmsMenuItem doubleClickMenuItem

columnsToRenderer

protected java.lang.String columnsToRenderer

sortOrderColumn

protected java.lang.String sortOrderColumn

sortOrderDir

protected java.lang.String sortOrderDir

searchHistory

public static java.util.Hashtable searchHistory

searchHistoryVector

public static java.util.Vector searchHistoryVector

panelVsSearchKey

public java.util.Hashtable panelVsSearchKey

panelVsOperatorKey

public java.util.Hashtable panelVsOperatorKey

reorderColumns

protected boolean reorderColumns

popupmenu

protected java.lang.String popupmenu

alignment

public int alignment

minButton

protected javax.swing.JCheckBox minButton

menu_ht

protected java.util.Hashtable menu_ht

removedCvs

protected java.util.Vector removedCvs
Constructor Detail

NmsCustomPanel

public NmsCustomPanel()
Method Detail

setReorderColumns

public void setReorderColumns(boolean state)

setTopPanelNeeded

public void setTopPanelNeeded(boolean needed)

isTopPanelNeeded

public boolean isTopPanelNeeded()

init

public void init(javax.swing.JApplet a)
Description copied from class: AbstractBaseNmsPanel
Abstract declaration of the corresponding method defined in the NmsPanel interface. Inheriting classes should definitely implement this method.

Specified by:
init in interface NmsPanel
Specified by:
init in class AbstractBaseNmsPanel
See Also:
NmsMainApplet

getSearchHistory

public static java.util.Vector getSearchHistory(java.lang.String searchString)

setSearchHistory

public static void setSearchHistory(java.util.Properties prop)

init

public void init(java.util.Properties prop)
Description copied from class: AbstractBaseNmsPanel
This method is used to pass the common properties defined for the Panel in the Tree.xml or NmsPanels.conf configuration file to this instance. For any NmsPanel defined a common set of attributes can be associated to it either by defining them in the configuration file NmsPanels.conf or Tree.xml.

The common attributes will taken as the one defined in the NmsPanels.conf if the panel class has an entry in it. If there is entry only in Tree.xml then the attributes associated with the corresponding tree node will be taken as the common set. If the panel entry is defined in both the files, the setting present in NmsPanels.conf will taken as the common properties set.

This method will be invoked just after instantiation of this class after the invocation of the method init(Applet) defined in the NmsPanel interface. This method will be invoked only for the classes that extend AbstractBaseNmPanel.

Overrides:
init in class AbstractBaseNmsPanel
Parameters:
prop - This argument will contain the common properties of the panel associated with either the Tree.xml or NmsPanels.conf configuration files.
See Also:
AbstractBaseNmsPanel.getPanelCommonProperties()

isInitialized

public boolean isInitialized()
isInitialized implemented here to tell mainpanel whether the panels have been initialized

Overrides:
isInitialized in class AbstractBaseNmsPanel
Returns:
This method by default returns true. If the method returns true then it indicates that the panel has got initialized or else it indicates that the panel has not yet initialized completely.

adjustDate

protected static void adjustDate()

correctTimeInLong

public static long correctTimeInLong(long li)
This method can be called to give the correct date in long if the browser date and the server dates do not match This should be called before the browser tries to convert evt.time to string format and shows it on screen


reverseCorrectTimeInLong

public static long reverseCorrectTimeInLong(long li)
This method can be called to give the correct date in long if the browser date and the server dates do not match This should be called before the browser tries to write into evt.time for sending to server . especially in case of filtering .


customizeThePanel

public abstract void customizeThePanel()

createMenuBar

public abstract void createMenuBar()

addObjects

public abstract void addObjects(java.util.Vector obvector)

doTheUpdate

public abstract void doTheUpdate(NmsTableModelEvent event)

handleCallForFilter

public abstract void handleCallForFilter(java.lang.String command)
This method has to be implemented by the extending class to handle user specified customizable Data forms for Add and Modifying Custom Views.


getTableColumnWidths

public abstract java.lang.String getTableColumnWidths()

start

public void start()
Description copied from class: AbstractBaseNmsPanel
Stub Implementation of the corresponding method in NmsPanel interface. The implementation does nothing.

Specified by:
start in interface NmsPanel
Overrides:
start in class AbstractBaseNmsPanel
See Also:
NmsPanel.stop()

stop

public void stop()
stop the panel operations

Specified by:
stop in interface NmsPanel
Overrides:
stop in class AbstractBaseNmsPanel
See Also:
NmsPanel.start()

destroy

public void destroy()
destroy the panel


key

public java.lang.String key()
Returns a name for the Panel

Specified by:
key in interface NmsPanel
Overrides:
key in class AbstractBaseNmsPanel
Returns:
The method will return the key of this panel instance based on the attribute setting PANEL-KEY defined in either the Tree.xml or NmsPanels.conf for this panel.

setProperties

public void setProperties(java.util.Properties prop)
To set the (argumnets) for the panel before doing a change to that panel

Specified by:
setProperties in interface NmsPanel
Specified by:
setProperties in class AbstractBaseNmsPanel
Parameters:
prop - The Properties object that contains the associated properties of the panel to be passed when the panel gains the focus.

removeShowAllButton

protected void removeShowAllButton()

addShowAllButton

protected void addShowAllButton()

setPanelMenuBar

public void setPanelMenuBar(javax.swing.JMenuBar mb)
Get the MenuBar for this panel

Specified by:
setPanelMenuBar in interface NmsPanel
Overrides:
setPanelMenuBar in class AbstractBaseNmsPanel
Parameters:
mb - The Menubar that is constructed from the attribute setting MENU-FILE-NAME will be passed as parameter. The menu bar will contain no menus if the MENU-FILE-NAME is not specified.
See Also:
AbstractBaseNmsPanel.getPanelMenuBar()

getPanelMenuBar

public javax.swing.JMenuBar getPanelMenuBar()
Get the MenuBar for this panel

Specified by:
getPanelMenuBar in interface NmsPanel
Overrides:
getPanelMenuBar in class AbstractBaseNmsPanel
Returns:
The method returns a JMenuBar reference that contains the JMenus that are specific to this panel. It will return a JMenuBar with no menus in it if the MENU-FILE-NAME attribute is not specified.
See Also:
AbstractBaseNmsPanel.setPanelMenuBar(javax.swing.JMenuBar)

selectNextButton

public void selectNextButton(boolean flag)

selectPreviousButton

public void selectPreviousButton(boolean flag)

sortOnServerSide

public void sortOnServerSide(java.lang.String sortedColumn,
                             boolean sortedOrder)

sortOnServerSide

public void sortOnServerSide(java.lang.String sortedColumn,
                             boolean sortedOrder,
                             java.util.Properties rowProps)

adjustTheEdges

public void adjustTheEdges(java.lang.String edge)

correctTotalNumbers

public void correctTotalNumbers(NmsTableModelEvent tableModelEvent)

changeTheTreeView

public void changeTheTreeView(java.lang.String disp)

addToTreeView

public void addToTreeView(java.util.Vector v)

addToTreeView

public void addToTreeView(java.lang.String disp)

addToTreeView

public void addToTreeView(java.lang.String disp,
                          java.lang.String parent)

removeFilterView

public void removeFilterView(java.lang.String dType)

addToRemovedCvs

public void addToRemovedCvs(java.lang.String viewId)

putFilterProp

public void putFilterProp()

putFilterProp

public void putFilterProp(java.util.Properties p,
                          java.lang.String fname)

getFilterProp

public java.util.Properties getFilterProp()

getFilterProp

public java.util.Properties getFilterProp(java.lang.String fname)

setValidSortColumns

public void setValidSortColumns(java.util.Vector validColumns)

setTheResultsOfFreezeUpdates

public void setTheResultsOfFreezeUpdates(boolean flag)

setTheParameters

public void setTheParameters(java.lang.String dtype,
                             int totalno,
                             int vlength,
                             int startIndex,
                             java.lang.String sortedColumn,
                             boolean sortedOrder)

run

public void run()
Specified by:
run in interface java.lang.Runnable

busyCursor

public void busyCursor()
change to busy cursor


normalCursor

public void normalCursor()
change to normal cursor


getFrame

public javax.swing.JFrame getFrame(java.awt.Component comp)

addNewFilter

public java.lang.String addNewFilter(java.util.Properties p,
                                     java.lang.String nameoffilter)

addNewFilter

public java.lang.String addNewFilter(java.util.Properties p,
                                     java.lang.String nameoffilter,
                                     java.lang.String parentleaf)

addNewFilter

public java.lang.String addNewFilter(java.util.Properties prop,
                                     java.lang.String nameOfFilter,
                                     java.lang.String parentleaf,
                                     boolean sync)
This method adds or modifies a Custom View with the name nameOfFilter. This method differs from the above two in the way that it accepts an extra parameter sync which determines whether the call will be synchronous or asynchronous. In the previous two methods the call is asynchronous

The call will be synchronous if sync parameter is set to true else asynchronous.

Parameters:
prop - The properties object with which the new Custom View has to be created or modified.
nameOfFilter - The name of the Custom View which has to be added or modified.
parentleaf - The parent Custom View under which the new Custom View has to be created or under which the Custom View to be modified exists.
sync - boolean variable to indicate whether the call should be synchronous or not. A value of true will make the call synchronous else asynchronous.
Returns:
The method will return the Custom View ID created for the given Custom View Name. If call was unsucessfull it returns null

addNewFilter

public java.lang.String addNewFilter(java.util.Properties prop,
                                     java.lang.String nameOfFilter,
                                     java.lang.String parentleaf,
                                     boolean sync,
                                     boolean isTabView)

addNewTempFilter

public java.lang.String addNewTempFilter(java.util.Properties prop,
                                         java.lang.String filterName,
                                         java.lang.String parentNodeId,
                                         boolean addToTree)

addTempToTree

public void addTempToTree(java.lang.String filterID,
                          java.lang.String parent,
                          java.util.Properties attributeList,
                          java.util.Properties criteriaProps,
                          boolean addToTree)

getXMLNode

public XMLNode getXMLNode(XMLNode parent,
                          java.lang.String match)

getXMLNode

public XMLNode getXMLNode(java.lang.String nodeID)

removeFilter

public final boolean removeFilter(java.lang.String viewName,
                                  boolean sync)
This method removes the Custom View with the name viewName. The call will be synchronous if sync parameter is set true else asynchronous.

Parameters:
viewName - The name of the Custom View to be removed
sync - boolean variable to indicate whether the call should be synchronous or not.
Returns:
The method returns true if the call is successfull else false

removeTabViewFilters

public final boolean removeTabViewFilters(java.lang.String viewName,
                                          boolean sync)

saveFilter

public final boolean saveFilter(java.lang.String viewName,
                                boolean sync)
This method saves the Custom View with the name viewName. The call will be synchronous if sync parameter is set true else asynchronous.

Parameters:
viewName - The name of the Custom View to be saved
sync - boolean variable to indicate whether the call should be synchronous or not.
Returns:
The method returns true if the call is successfull else false

saveFilterState

public boolean saveFilterState(java.lang.String viewName,
                               boolean sync)
This method saves the Custom View State with the name viewName. The call will be synchronous if sync parameter is set true else asynchronous.

Parameters:
viewName - The name of the Custom View to be saved
Returns:
The method returns true if the call is successfull else false

getCustomViewPropertiesSync

public final java.util.Properties getCustomViewPropertiesSync(java.lang.String viewName)
This method returns the properties of the Custom View with the name viewName. The call will be synchronous. The call will return the properties object of the custom view or null if error.

Parameters:
viewName - The name of the Custom View whose properties are needed
Returns:
The method returns properties object if the call is successfull else null.

keyPressed

public void keyPressed(java.awt.event.KeyEvent ke)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent ke)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent ke)
Specified by:
keyTyped in interface java.awt.event.KeyListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent me)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent me)
Specified by:
mouseExited in interface java.awt.event.MouseListener

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from class: AbstractBaseNmsPanel
The default implementation of the ActionListener method. The implementation handles the actions of some of the important menu items and tool bar buttons that are present for every panel. These include:

 * 'Back' and 'Forward' navigation tool bar actions.
 * 'Close' and 'Close All' internal frame actions.
 * 'Detach' of internal frames.
 * 'Cascade' and 'Tile' actions of internal frames.
 * 'Show Tool bar' action. 
 

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AbstractBaseNmsPanel

doRefresh

protected void doRefresh()

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

getDisplayType

public java.lang.String getDisplayType()

getViewLength

public int getViewLength()

getEndSpecification

public java.lang.String getEndSpecification()

getTotalLength

public int getTotalLength()

changeColumnsOfTable

public abstract void changeColumnsOfTable(java.lang.String displayType,
                                          java.lang.String tableColumns)

setIncrements

public void setIncrements()

getAndSetSortColumn

protected void getAndSetSortColumn()
This method sets the column on which a list panel has to be sorted and stores the information as a record of (column#,order) in sortColumnHash HashTable.


setSortColumn

public abstract int setSortColumn(int serverSortColumn,
                                  boolean serverSortOrder,
                                  int clientSortColumn,
                                  boolean clientSortOrder,
                                  java.lang.String columnName)
This method sets the column on which the ListView instance has to be sorted.


selectRowsOfTable

public abstract void selectRowsOfTable(int[] rows)

getDisplayName

public java.lang.String getDisplayName(java.lang.String str)

renameTreeNode

public boolean renameTreeNode(java.lang.String nodeID,
                              java.lang.String newTreeName)
rename the node in the tree . This method is invoked when a node in the tree is renamed.

Overrides:
renameTreeNode in class AbstractBaseNmsPanel
Parameters:
nodeID - the ID of the tree node
newTreeName - the new "TREE-NAME" to the tree node.//No Internationalisation
Returns:
returns true if handled or false if not .

parseVal

public java.lang.String parseVal(java.util.Properties p,
                                 java.lang.String val)

getParameters

public java.util.Properties getParameters(java.lang.String doc)

checkMenuFile

public boolean checkMenuFile(java.lang.String menuName)

handleAllTypeOfSorting

public void handleAllTypeOfSorting(java.lang.String[] sortInfo)

hidePropsUI

public boolean hidePropsUI()

setCurrentNodeProperties

public void setCurrentNodeProperties(java.util.Hashtable nodeProperties)
Description copied from class: AbstractBaseNmsPanel
This method will be invoked to pass the attributes of the current tree node selected, to which this panel instance is associated. The attributes of the tree node should have been defined in the configuration file Tree.xml. This method will be invoked every time the panel receives the focus, just before the invocation of the setProperties(Properties) method in the NmsPanel interface. This method is applicable only for the panels that extend this class.

This method can be of much use if the same panel instance is associated with more than one tree node (similar to custom views). In this scenario this method could be used to receive the currently selected tree node properties and use them for any behaviourial changes in the panel. For example, in the case of custom views the same panel instance is associated for each of the custom view created of the same type, namely Events, Alarms etc.,. In this case, the current node properties set by this method is used to modify the properties of the panel shown according the custom view selected currently.

Any implementation class can access the current node properties using the method getCurrentNodeProperties() present in this class. It should also be noted that this method will be invoked only for the panels that are associated with a client tree node.

Overrides:
setCurrentNodeProperties in class AbstractBaseNmsPanel
Parameters:
nodeProperties - The attributes of the current tree node selected, to which this panel instance is associated, will be passed in the Hashtable.
See Also:
AbstractBaseNmsPanel.getCurrentNodeProperties()

isMultipleCustomView

public java.lang.String isMultipleCustomView()

addToViewIdList

protected void addToViewIdList()

setPanelVsSearchKey

public void setPanelVsSearchKey(java.lang.String panelName,
                                java.util.Vector keys)

getPanelVsSearchKey

public java.util.Hashtable getPanelVsSearchKey()

setPanelVsOperatorKey

public void setPanelVsOperatorKey(java.lang.String panelName,
                                  java.util.Hashtable ht)

getPanelVsOperatorKey

public java.util.Hashtable getPanelVsOperatorKey()

getAlignment

public int getAlignment(java.lang.String align)
This method returns the alignment on which the ListView instance to be aligned. This value can be set in NmsPanels.conf file using TABLE_TEXT_ALIGN parameter. Default value is LEFT


"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.