com.adventnet.snmp.ui
Class DefaultSnmpTablePanelModel

java.lang.Object
  extended by com.adventnet.snmp.beans.SnmpServer
      extended by com.adventnet.snmp.beans.SnmpTarget
          extended by com.adventnet.snmp.beans.SnmpTable
              extended by com.adventnet.snmp.beans.ClippedTable
                  extended by com.adventnet.snmp.ui.DefaultSnmpTablePanelModel
All Implemented Interfaces:
CustomizerTemplate, SnmpTablePanelModel, java.beans.VetoableChangeListener, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.swing.table.TableModel

 class DefaultSnmpTablePanelModel
extends ClippedTable
implements SnmpTablePanelModel

This is an implementation of SnmpTablePanelModel


Field Summary
(package private)  boolean isUpdateScrollBar
           
(package private)  java.util.Vector namesToIndex
           
 
Fields inherited from class com.adventnet.snmp.beans.ClippedTable
indeces
 
Fields inherited from class com.adventnet.snmp.beans.SnmpTable
SNMP_VARIABLE_BINDING_DATA, SNMP_VARIABLE_DATA, STRING_DATA
 
Fields inherited from class com.adventnet.snmp.beans.SnmpTarget
serialize, SNMPGET, SNMPGETBULK, SNMPGETNEXT, SNMPINFORM, SNMPREPORT, SNMPRESPONSE, SNMPSET, SNMPTRAP, SNMPV2TRAP, VERSION1, VERSION2C, VERSION3
 
Fields inherited from class com.adventnet.snmp.beans.SnmpServer
AUTH_NO_PRIV, AUTH_PRIV, CBC_3DES, CBC_DES, CFB_AES_128, CFB_AES_192, CFB_AES_256, MD5_AUTH, NO_AUTH, NO_AUTH_NO_PRIV, NO_PRIV, oidList, SHA_AUTH
 
Fields inherited from interface com.adventnet.snmp.ui.SnmpTablePanelModel
GRAPHABLE, NONGRAPHABLE
 
Constructor Summary
DefaultSnmpTablePanelModel()
          Constructs a DefaultSnmpTablePanelModel with 5 rows and 5 columns
DefaultSnmpTablePanelModel(java.applet.Applet applet)
          Constructs a DefaultSnmpTablePanelModel with 5 rows and 5 columns for applets
 
Method Summary
 void addRow(boolean entryStatus, SnmpOID[] oidList, java.lang.String[] values)
          add an row to table with specified objectid list and value and also with the status of table whether it is an entryStatus or rowStatus.
 void addTableModelListener(javax.swing.event.TableModelListener l)
          Add a listener to the list that's notified each time a change to the data model occurs.
 int convertColumnIndexToModel(int column)
           
 void deleteRows(int[] rows)
          deletes the rows specified with indexes.
(package private)  void enumintqSort(int left, int right)
           
 void fireColumnMoved(int fromIndex, int toIndex)
          Called from columnMoved() method in SnmpTablePanelUI.
 void fireScrollBarMoved(int value)
          Called from adjustmentValueChanged() method in SnmpTablePanelUI.
 java.lang.Class getColumnClass(int columnIndex)
          Returns the class to be used as renderer and editor for the column specified by the index.
 int getColumnCount()
          return the number of columns.
 int getColumnIndex(java.lang.String columnName)
          To get the column index from the column names
 java.util.Vector getColumnMibNodes()
          returns the vector of mibnodes for all columns of this table
 java.lang.String getColumnName(int columnIndex)
          returns the column name corresponding to the column index.
 java.util.Vector getColumnNames()
          ruturns the vector of column names for this table
 int getColumnsPerGet()
          Get the no of Columns Per Get
 boolean getColumnsSplit()
          get the flag ColumnSplit
 byte getColumnType(int columnIndex)
          returns whether column at the specified index can be graphable or not
 java.lang.String getDecodedInstanceStr(java.util.Vector values)
          returns the decoded instance string for the values of indexes
 void getEntriesFromNext()
          this will generate the entries of next page
 void getEntriesFromPrev()
          this will generate the entries of previous page
 void getEntriesFromRefresh()
          this will refresh the entries of current page
 void getEntriesFromStart(java.lang.String index)
          this will generate entries from the first row of the SnmpTable.
 java.lang.String getIndexField(int rowIndex)
          returns the index value for specified row
 java.util.Vector getIndexMibNodes()
          returns the vector of mibnodes for index columns of this table
 java.util.Vector getIndexNames()
          returns the vector of index names for this table
 java.lang.String[][] getNotAccessibleIndex()
          Get the Not Accessible Index values.
 java.util.Vector getNotAccessIndexColumns()
          Get the ColumnNames of Not Accessible Index values
 java.lang.String[] getObjectIDList()
          Returns an array of OIDList.
 int getPageNumber()
          returns the current page number.
 int getRowCount()
          returns the number of rows that are polled.
 SnmpTable getSnmpTable()
          returns the instanse of SnmpTable.
 SnmpTablePanel getSnmpTablePanel()
          Getting the instance of SnmpTablePanelUI for tableupdation
 java.util.Vector getSnmpVarVec(int row)
          returns the vector of SnmpVar objects for the spoecified row
 java.lang.String getTableOID()
          returns the tableoid
 int getTableViewColumnCount()
          returns number of columns to be visible in tablemodel
 int getTableViewRowCount()
          returns number of rows to be visible in tablemodel
 int getTotalColumnCount()
          returns the number of columns in the SnmpTable
 java.lang.Object getValueAt(int row, int col)
          returns the value for table cell at given row and column.
(package private)  void intqSort(int left, int right)
           
 boolean isAugmentedDisplay()
          returns the status of table whether it is agugmented table or of its original table .
 boolean isAugmentedTable()
          returns whether the table is augmented one or not
 boolean isCellEditable(int rowIndex, int columnIndex)
          Returns whether the cell at the location(rowIndex,columnIndex) is editable or not
 boolean isEntryStatus()
          returns whether the table is having entryStatus column or rowStatus column
 boolean isGetFromIndex()
          returns true if the table values is generated from the index .
 boolean isRetrievalMode()
          returns whether the table should be generated by getnext mode or getbulk mode.
 boolean isRowAddAndDel()
          returns whether the rows can be added and deleted
 boolean isUpdateScrollBar()
          tells whether the scroll bar should be updated or not.
(package private)  void logErrorMessage(java.lang.String error)
           
(package private)  void logInfoMessage(java.lang.String info)
           
 void prepareEntries()
          this will generate entries for table when the custom panel is disabled
(package private)  void qSort(int left, int right)
           
protected  void refresh()
          refreshes the table data
 void removeTableModelListener(javax.swing.event.TableModelListener l)
          Remove a listener from the list that's notified each time a change to the data model occurs.
 void setAugmentedDisplay(boolean isAugmented)
          set the status of table whether it is agugmented table or of its original table .set true if the visible table is its augmented table, set returns false if it is a original table what specified in setTableOID
 void setColumnNameAt(java.lang.String name, int columnIndex)
          set the header name at the given index.
 void setColumnOrder(int columnIndex)
          it will form the entries in ascending order based on the values at specified column.
 void setColumnsPerGet(int columnsPerGet)
          Set the no of Columns Per Get
 void setColumnsSplit(boolean split)
          Enables the TableColumns split option if the split is set to true
 void setGetFromIndex(boolean isFromIndex)
          set whether the values filled by the table should be starting with the given index or from first row in the original table.
 void setObjectIDList(java.lang.String[] s)
          Sets the object IDs
 void setRetrievalMode(boolean mode)
          set whether the table should be generated by getnext mode or getbulk mode.
 void setSnmpTablePanel(SnmpTablePanel panel)
          Getting the instance of SnmpTablePanelUI for tableupdation
 void setTableOID(java.lang.String oid)
          Set the table OID
 void setTablePanelUI(SnmpTablePanelUI panel)
          Getting the instance of SnmpTablePanelUI for tableupdation
 void setTableViewColumnCount(int viewColumns)
          set number of columns to be visible in tablemodel
 void setTableViewRowCount(int viewRows)
          set number of rows to be visible in tablemodel
 void setupCellEditor(javax.swing.JTable table)
          set the table cell editor for table .Called from tableUpdate() method in SnmpTablePanelUI.
 void setValueAt(java.lang.Object value, int row, int col)
          Sets the value at the cell specified by the row and column indexes.
protected  void showErrorMessage(java.lang.String str)
           
(package private)  void swap(int i, int j)
           
 
Methods inherited from class com.adventnet.snmp.beans.ClippedTable
addRow, emptyStack, emptyStackInd, finalize, getAllColumnNodes, getColumns, getCurrentPage, getHoles, getInstanceStr, getLeafSyntax, getModeOfGettingTable, getNext, getNumCols, getNumOfVisibleRows, getOverwriteCMI, getPageSize, getPolledNumRows, getSerializedMibFileName, getStringValueAt, getTableColumnNames, isEndOfTable, isLoadFromCompiledMibs, isLoadFromSerializedMibs, isReadDesc, isSerializeMibs, run, run1, setHeaderName, setIndex, setIndexForIndex, setIndexInd, setLoadFromCompiledMibs, setLoadFromSerializedMibs, setModeOfGettingTable, setNext_1, setNext, setNumCols, setNumOfVisibleRows, setOverwriteCMI, setReadDesc, setSerializedMibFileName, setSerializeMibs, setSnmpOIDList, setStringOID, setStringValueAt, setsubOidList, setvalue, stopCurrentThread, stopPolling
 
Methods inherited from class com.adventnet.snmp.beans.SnmpTable
addRow, addSnmpTableListener, checkDifferences, compareRow, deleteRow, deleteTableRow, genTableEvent, getCellValue, getColumn, getColumn, getColumnMibNode, getDataType, getIndices, getNotAccessibleIndexColumns, getPerformSets, getPerformSets, getPollInterval, getRetrievalMode, getRow, getRow, refreshTable, removeSnmpTableListener, setCellValue, setColumnsPolled, setDataType, setParams, setPollInterval, setTableOIDWoStart, startPollingTable, stopPollingTable
 
Methods inherited from class com.adventnet.snmp.beans.SnmpTarget
addLogClient, addLogClient, addObjectID, addResultListener, addSnmpOID, addSnmpPropertyListener, addUserError, addV3HandShakeResultListener, enableDebugForPDU, genEvent, genTimeoutEvent, getAttemptComplete, getAttemptPartial, getAuthPassword, getAuthProtocol, getCommunity, getCompleteResponse, getContextID, getContextName, getDebug, getEngineID, getErrorCode, getErrorCodes, getErrorIndex, getErrorString, getExceptionCode, getExceptionCodes, getIgnoreSpecificControlCodes, getMaxNumRows, getMaxRepetitions, getMibModules, getMibOperations, getNonRepeaters, getObjectID, getObjectID, getPduErrorIndex, getPrincipal, getPrivPassword, getPrivProtocol, getRetries, getSecurityLevel, getSecurityModel, getSendTimeoutEvents, getSnmpOID, getSnmpOIDList, getSnmpVersion, getTargetHost, getTargetPort, getTimeout, getUserErrorCode, getUserErrorString, getVarBindCount, getWriteCommunity, isInSubTree, isSerialize, loadMibs, releaseResources, removeLogClient, removeResultListener, removeSnmpPropertyListener, removeV3HandShakeListener, setAttemptComplete, setAttemptPartial, setAuthPassword, setAuthProtocol, setClientID, setCommunity, setContextID, setContextName, setDebug, setEngineID, setIgnoreSpecificControlCodes, setMaxNumRows, setMaxRepetitions, setMibModules, setNonRepeaters, setObjectID, setObjectID, setParams, setParams, setPrincipal, setPrivPassword, setPrivProtocol, setRetries, setSecurityLevel, setSecurityModel, setSendTimeoutEvents, setSnmpOID, setSnmpVersion, setTargetHost, setTargetPort, setTimeout, setVarBindCount, setWriteCommunity, snmpGet, snmpGet, snmpGetAllList, snmpGetAllVariableBindings, snmpGetAllVariables, snmpGetBulkList, snmpGetBulkVariableBindings, snmpGetBulkVariables, snmpGetList, snmpGetList, snmpGetNext, snmpGetNext, snmpGetNextList, snmpGetNextList, snmpGetNextVariable, snmpGetNextVariableBinding, snmpGetNextVariableBindings, snmpGetNextVariables, snmpGetVariable, snmpGetVariableBinding, snmpGetVariableBindings, snmpGetVariables, snmpSendInformAcknowledgement, snmpSendInformRequest, snmpSendInformRequest, snmpSendNotification, snmpSendNotification, snmpSendTrap, snmpSendTrap, snmpSet, snmpSet, snmpSetList, snmpSetVariable, snmpSetVariableList, snmpSetVariables, vetoableChange
 
Methods inherited from class com.adventnet.snmp.beans.SnmpServer
async_create_v3_tables, create_v3_tables, genEvent, getCharacterEncoding, getHostAddress, getLocalAddresses, getMibPath, getPacketBufferSize, getSecLevelForTimeSync, getSecurityProvider, getSecurityTable, getSimpleDateFormat, getSnmpEngineID, getSnmpEngineTable, getTimeoutInMilliSec, getTimeToWait, getUSMTable, getV3ConfigTable, getV3MsgMaxSize, initJdbcParams, initSecurityProvider, isBroadcastFeatureEnable, isLoadMibsFromDatabase, isOverwriteCMI, isOverwriteMibsInDatabase, isSendPDUByGroup, isSetAutoInformResponse, isSupportedSecurityModel, isV3DatabaseFlag, isValidateUser, manage_v3_tables, managing_v3_tables, setAutoInformResponse, setBroadcastFeatureEnable, setCharacterEncoding, setErrorFlagEnable, setLoadMibsFromDatabase, setMibOperations, setMibPath, setOverwriteMibsInDatabase, setPacketBufferSize, setReceiveBufferSize, setSecLevelForTimeSync, setSendPDUByGroup, setSimpleDateFormat, setSnmpEngineID, setTimeoutInMilliSec, setTimeToWait, setV3ConfigTable, setV3DatabaseFlag, setV3MsgMaxSize, validateUser
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.adventnet.snmp.ui.SnmpTablePanelModel
create_v3_tables, getAuthPassword, getAuthProtocol, getCharacterEncoding, getCommunity, getContextID, getContextName, getMibModules, getMibOperations, getOverwriteCMI, getPrincipal, getPrivPassword, getRetries, getSerializedMibFileName, getSnmpEngineTable, getSnmpVersion, getTargetHost, getTargetPort, getTimeout, getUSMTable, getWriteCommunity, initJdbcParams, isEndOfTable, isLoadFromCompiledMibs, isLoadFromSerializedMibs, isLoadMibsFromDatabase, isOverwriteMibsInDatabase, isReadDesc, isSerializeMibs, isV3DatabaseFlag, loadMibs, refreshTable, setAuthPassword, setAuthProtocol, setCharacterEncoding, setCommunity, setContextID, setContextName, setDebug, setEngineID, setLoadFromCompiledMibs, setLoadFromSerializedMibs, setLoadMibsFromDatabase, setMaxRepetitions, setMibModules, setOverwriteCMI, setOverwriteMibsInDatabase, setPrincipal, setPrivPassword, setReadDesc, setRetries, setSerializedMibFileName, setSerializeMibs, setSnmpVersion, setTargetHost, setTargetPort, setTimeout, setV3DatabaseFlag, setWriteCommunity, stopCurrentThread
 
Methods inherited from interface com.adventnet.snmp.beans.CustomizerTemplate
create_v3_tables, getSnmpEngineTable, getUSMTable, initSecurityProvider, isSupportedSecurityModel, manage_v3_tables
 

Field Detail

isUpdateScrollBar

boolean isUpdateScrollBar

namesToIndex

java.util.Vector namesToIndex
Constructor Detail

DefaultSnmpTablePanelModel

public DefaultSnmpTablePanelModel()
Constructs a DefaultSnmpTablePanelModel with 5 rows and 5 columns


DefaultSnmpTablePanelModel

public DefaultSnmpTablePanelModel(java.applet.Applet applet)
Constructs a DefaultSnmpTablePanelModel with 5 rows and 5 columns for applets

Method Detail

fireScrollBarMoved

public void fireScrollBarMoved(int value)
Called from adjustmentValueChanged() method in SnmpTablePanelUI. The changed scrollbar value is notified to the model to adjust its columns.

Specified by:
fireScrollBarMoved in interface SnmpTablePanelModel

convertColumnIndexToModel

public int convertColumnIndexToModel(int column)
Specified by:
convertColumnIndexToModel in interface SnmpTablePanelModel

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener l)
Add a listener to the list that's notified each time a change to the data model occurs.

Specified by:
addTableModelListener in interface SnmpTablePanelModel
Specified by:
addTableModelListener in interface javax.swing.table.TableModel
Parameters:
l - - the TableModelListener

removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener l)
Remove a listener from the list that's notified each time a change to the data model occurs.

Specified by:
removeTableModelListener in interface SnmpTablePanelModel
Specified by:
removeTableModelListener in interface javax.swing.table.TableModel
Parameters:
l - the TableModelListener

getColumnIndex

public int getColumnIndex(java.lang.String columnName)
To get the column index from the column names

Specified by:
getColumnIndex in interface SnmpTablePanelModel
Overrides:
getColumnIndex in class ClippedTable
Parameters:
columnName - column name of the table, e.g. ifType
Returns:
the index of the column name as an int value.

getColumnName

public java.lang.String getColumnName(int columnIndex)
returns the column name corresponding to the column index.

Specified by:
getColumnName in interface SnmpTablePanelModel
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class SnmpTable
Parameters:
columnIndex - index of the column in the table.
Returns:
the name of the column.

addRow

public void addRow(boolean entryStatus,
                   SnmpOID[] oidList,
                   java.lang.String[] values)
            throws DataException
add an row to table with specified objectid list and value and also with the status of table whether it is an entryStatus or rowStatus.

Specified by:
addRow in interface SnmpTablePanelModel
Parameters:
entryStatus - false if the table has RowStatus value and true if the table has EntryStatus value.
oidList - list of column oids.
values - the values to be set to the columns in this table
Throws:
DataException - if an invalid value or oid was given

deleteRows

public void deleteRows(int[] rows)
deletes the rows specified with indexes.

Specified by:
deleteRows in interface SnmpTablePanelModel
Parameters:
rows - an array of int which are all indexes of rows.

getColumnCount

public int getColumnCount()
return the number of columns.

Specified by:
getColumnCount in interface SnmpTablePanelModel
Specified by:
getColumnCount in interface javax.swing.table.TableModel
Overrides:
getColumnCount in class SnmpTable
Returns:
the number of columns available in the SnmpTable.

getRowCount

public int getRowCount()
returns the number of rows that are polled.

Specified by:
getRowCount in interface SnmpTablePanelModel
Specified by:
getRowCount in interface javax.swing.table.TableModel
Overrides:
getRowCount in class SnmpTable
Returns:
number of rows in the Table.

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
returns the value for table cell at given row and column.

Specified by:
getValueAt in interface SnmpTablePanelModel
Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class SnmpTable
Parameters:
row - index of the row
col - index of column
Returns:
the value for the cell as a String data.Null if TableOID is invalid.
See Also:
SnmpTable.setDataType(int type), SnmpTable.setValueAt(Object aValue, int rowIndex,int columnIndex)

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Sets the value at the cell specified by the row and column indexes.

Specified by:
setValueAt in interface SnmpTablePanelModel
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class SnmpTable
Parameters:
value - value to be set
row - row index
column - column index
See Also:
SnmpTable.getValueAt(int rowIndex, int columnIndex), ErrorMessages, SnmpTarget.getErrorCode(), SnmpTarget.getErrorString()

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Returns the class to be used as renderer and editor for the column specified by the index.

Specified by:
getColumnClass in interface SnmpTablePanelModel
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class SnmpTable
Parameters:
columnIndex - index of the column in the table
Returns:
the Class to be used as renderer and editor for the column and null if the columnIndex is invalid.

setColumnNameAt

public void setColumnNameAt(java.lang.String name,
                            int columnIndex)
set the header name at the given index.

Specified by:
setColumnNameAt in interface SnmpTablePanelModel
Parameters:
name - the value to be set for the header
columnIndex - the index of the header of table.

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Returns whether the cell at the location(rowIndex,columnIndex) is editable or not

Specified by:
isCellEditable in interface SnmpTablePanelModel
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class ClippedTable
Parameters:
rowIndex - the index of the row which has to be checked.
columnIndex - the index of the column which has to be checked.
Returns:
true if the cell is editable and false if the cell is not-editable.

getSnmpTable

public SnmpTable getSnmpTable()
returns the instanse of SnmpTable.

Specified by:
getSnmpTable in interface SnmpTablePanelModel

isRowAddAndDel

public boolean isRowAddAndDel()
returns whether the rows can be added and deleted

Specified by:
isRowAddAndDel in interface SnmpTablePanelModel

setTablePanelUI

public void setTablePanelUI(SnmpTablePanelUI panel)
Getting the instance of SnmpTablePanelUI for tableupdation

Specified by:
setTablePanelUI in interface SnmpTablePanelModel

getSnmpTablePanel

public SnmpTablePanel getSnmpTablePanel()
Getting the instance of SnmpTablePanelUI for tableupdation

Specified by:
getSnmpTablePanel in interface SnmpTablePanelModel

setSnmpTablePanel

public void setSnmpTablePanel(SnmpTablePanel panel)
Getting the instance of SnmpTablePanelUI for tableupdation

Specified by:
setSnmpTablePanel in interface SnmpTablePanelModel

refresh

protected void refresh()
refreshes the table data

Overrides:
refresh in class ClippedTable

showErrorMessage

protected void showErrorMessage(java.lang.String str)
Overrides:
showErrorMessage in class ClippedTable

getPageNumber

public int getPageNumber()
returns the current page number.

Specified by:
getPageNumber in interface SnmpTablePanelModel

getIndexField

public java.lang.String getIndexField(int rowIndex)
returns the index value for specified row

Specified by:
getIndexField in interface SnmpTablePanelModel
Parameters:
rowIndex - index of the row in the table.

setGetFromIndex

public void setGetFromIndex(boolean isFromIndex)
set whether the values filled by the table should be starting with the given index or from first row in the original table.

Specified by:
setGetFromIndex in interface SnmpTablePanelModel

isGetFromIndex

public boolean isGetFromIndex()
returns true if the table values is generated from the index . Otherwise returns false.

Specified by:
isGetFromIndex in interface SnmpTablePanelModel

setRetrievalMode

public void setRetrievalMode(boolean mode)
set whether the table should be generated by getnext mode or getbulk mode. true is for getbulk mode and false is for getnext mode.

Specified by:
setRetrievalMode in interface SnmpTablePanelModel
Overrides:
setRetrievalMode in class SnmpTable
Parameters:
mode - either true or false.

isRetrievalMode

public boolean isRetrievalMode()
returns whether the table should be generated by getnext mode or getbulk mode. true is for getbulk mode and false is for getnext mode.

Specified by:
isRetrievalMode in interface SnmpTablePanelModel

prepareEntries

public void prepareEntries()
this will generate entries for table when the custom panel is disabled

Specified by:
prepareEntries in interface SnmpTablePanelModel

getEntriesFromStart

public void getEntriesFromStart(java.lang.String index)
this will generate entries from the first row of the SnmpTable. If GetFromIndex has been set it will generate the entries starting with the specified index.

Specified by:
getEntriesFromStart in interface SnmpTablePanelModel
Parameters:
index - this be used if GetFromIndex is set. the will start with this index string.

getEntriesFromNext

public void getEntriesFromNext()
this will generate the entries of next page

Specified by:
getEntriesFromNext in interface SnmpTablePanelModel

getEntriesFromPrev

public void getEntriesFromPrev()
this will generate the entries of previous page

Specified by:
getEntriesFromPrev in interface SnmpTablePanelModel

getEntriesFromRefresh

public void getEntriesFromRefresh()
this will refresh the entries of current page

Specified by:
getEntriesFromRefresh in interface SnmpTablePanelModel

getTotalColumnCount

public int getTotalColumnCount()
returns the number of columns in the SnmpTable

Specified by:
getTotalColumnCount in interface SnmpTablePanelModel

getIndexNames

public java.util.Vector getIndexNames()
returns the vector of index names for this table

Specified by:
getIndexNames in interface SnmpTablePanelModel
Overrides:
getIndexNames in class ClippedTable
Returns:
vector of names of indexes in the table specified by tableOID

getIndexMibNodes

public java.util.Vector getIndexMibNodes()
returns the vector of mibnodes for index columns of this table

Specified by:
getIndexMibNodes in interface SnmpTablePanelModel
Overrides:
getIndexMibNodes in class ClippedTable
Returns:
the vector of mibnodes for indices.

getColumnNames

public java.util.Vector getColumnNames()
ruturns the vector of column names for this table

Specified by:
getColumnNames in interface SnmpTablePanelModel

getColumnMibNodes

public java.util.Vector getColumnMibNodes()
returns the vector of mibnodes for all columns of this table

Specified by:
getColumnMibNodes in interface SnmpTablePanelModel
Overrides:
getColumnMibNodes in class ClippedTable
Returns:
vector of MibNodes for columns in table specified by tableOID.

getColumnType

public byte getColumnType(int columnIndex)
returns whether column at the specified index can be graphable or not

Specified by:
getColumnType in interface SnmpTablePanelModel

setColumnOrder

public void setColumnOrder(int columnIndex)
it will form the entries in ascending order based on the values at specified column.

Specified by:
setColumnOrder in interface SnmpTablePanelModel

isEntryStatus

public boolean isEntryStatus()
returns whether the table is having entryStatus column or rowStatus column

Specified by:
isEntryStatus in interface SnmpTablePanelModel
Returns:
true if it has entryStatus column, Otherwise false.

getSnmpVarVec

public java.util.Vector getSnmpVarVec(int row)
returns the vector of SnmpVar objects for the spoecified row

Specified by:
getSnmpVarVec in interface SnmpTablePanelModel
Overrides:
getSnmpVarVec in class ClippedTable
Parameters:
row - Row index for which the SnmpVar value is required.
Returns:
a vector of SnmpVar value of the specified row in the table.

getDecodedInstanceStr

public java.lang.String getDecodedInstanceStr(java.util.Vector values)
returns the decoded instance string for the values of indexes

Specified by:
getDecodedInstanceStr in interface SnmpTablePanelModel
Parameters:
values - elements are all values for index columns for the table
Returns:
a decoded instance for thses values.

isAugmentedTable

public boolean isAugmentedTable()
returns whether the table is augmented one or not

Specified by:
isAugmentedTable in interface SnmpTablePanelModel
Overrides:
isAugmentedTable in class ClippedTable

isAugmentedDisplay

public boolean isAugmentedDisplay()
returns the status of table whether it is agugmented table or of its original table .

Specified by:
isAugmentedDisplay in interface SnmpTablePanelModel
Overrides:
isAugmentedDisplay in class ClippedTable
Returns:
true if the visible table is its augmented table, returns false if it is a original table what specified in setTableOID.

setAugmentedDisplay

public void setAugmentedDisplay(boolean isAugmented)
set the status of table whether it is agugmented table or of its original table .set true if the visible table is its augmented table, set returns false if it is a original table what specified in setTableOID

Specified by:
setAugmentedDisplay in interface SnmpTablePanelModel
Overrides:
setAugmentedDisplay in class ClippedTable

setupCellEditor

public void setupCellEditor(javax.swing.JTable table)
set the table cell editor for table .Called from tableUpdate() method in SnmpTablePanelUI.

Specified by:
setupCellEditor in interface SnmpTablePanelModel

getNotAccessibleIndex

public java.lang.String[][] getNotAccessibleIndex()
Get the Not Accessible Index values.

Specified by:
getNotAccessibleIndex in interface SnmpTablePanelModel
Overrides:
getNotAccessibleIndex in class ClippedTable
Returns:
two dimensional array of not-accessible column values and null if the table donot have any not-accessible columns.

getNotAccessIndexColumns

public java.util.Vector getNotAccessIndexColumns()
Get the ColumnNames of Not Accessible Index values

Specified by:
getNotAccessIndexColumns in interface SnmpTablePanelModel
Overrides:
getNotAccessIndexColumns in class ClippedTable
Returns:
a vector of not-accessible column names and null if the table donot have not-accessible columns.

fireColumnMoved

public void fireColumnMoved(int fromIndex,
                            int toIndex)
Called from columnMoved() method in SnmpTablePanelUI. This method swaps the column indexes as the columns are moved.

Specified by:
fireColumnMoved in interface SnmpTablePanelModel

getTableOID

public java.lang.String getTableOID()
returns the tableoid

Specified by:
getTableOID in interface SnmpTablePanelModel
Overrides:
getTableOID in class SnmpTable
Returns:
the Table OID as a String value.

setTableOID

public void setTableOID(java.lang.String oid)
                 throws DataException
Set the table OID

Specified by:
setTableOID in interface SnmpTablePanelModel
Overrides:
setTableOID in class ClippedTable
Parameters:
oid - the Object ID of the table, e.g. ifTable.
Throws:
DataException - is thrown if data is invalid
See Also:
ErrorMessages.

getObjectIDList

public java.lang.String[] getObjectIDList()
Returns an array of OIDList.

Specified by:
getObjectIDList in interface SnmpTablePanelModel
Overrides:
getObjectIDList in class SnmpTarget
Returns:
String[] of oids.

setObjectIDList

public void setObjectIDList(java.lang.String[] s)
Sets the object IDs

Specified by:
setObjectIDList in interface SnmpTablePanelModel
Overrides:
setObjectIDList in class ClippedTable
Parameters:
s - a one dimensional array of column names

isUpdateScrollBar

public boolean isUpdateScrollBar()
tells whether the scroll bar should be updated or not.

Specified by:
isUpdateScrollBar in interface SnmpTablePanelModel

setTableViewColumnCount

public void setTableViewColumnCount(int viewColumns)
set number of columns to be visible in tablemodel

Specified by:
setTableViewColumnCount in interface SnmpTablePanelModel

getTableViewColumnCount

public int getTableViewColumnCount()
returns number of columns to be visible in tablemodel

Specified by:
getTableViewColumnCount in interface SnmpTablePanelModel

setTableViewRowCount

public void setTableViewRowCount(int viewRows)
set number of rows to be visible in tablemodel

Specified by:
setTableViewRowCount in interface SnmpTablePanelModel

getTableViewRowCount

public int getTableViewRowCount()
returns number of rows to be visible in tablemodel

Specified by:
getTableViewRowCount in interface SnmpTablePanelModel

setColumnsSplit

public void setColumnsSplit(boolean split)
Enables the TableColumns split option if the split is set to true

Specified by:
setColumnsSplit in interface SnmpTablePanelModel

setColumnsPerGet

public void setColumnsPerGet(int columnsPerGet)
Set the no of Columns Per Get

Specified by:
setColumnsPerGet in interface SnmpTablePanelModel

getColumnsPerGet

public int getColumnsPerGet()
Get the no of Columns Per Get

Specified by:
getColumnsPerGet in interface SnmpTablePanelModel

getColumnsSplit

public boolean getColumnsSplit()
get the flag ColumnSplit

Specified by:
getColumnsSplit in interface SnmpTablePanelModel

qSort

void qSort(int left,
           int right)

intqSort

void intqSort(int left,
              int right)

enumintqSort

void enumintqSort(int left,
                  int right)

swap

void swap(int i,
          int j)

logErrorMessage

void logErrorMessage(java.lang.String error)

logInfoMessage

void logInfoMessage(java.lang.String info)