|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.beans.SnmpServer
com.adventnet.snmp.beans.SnmpTarget
com.adventnet.snmp.beans.SnmpTable
com.adventnet.snmp.beans.ClippedTable
com.adventnet.snmp.ui.DefaultSnmpTablePanelModel
class DefaultSnmpTablePanelModel
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.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 java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adventnet.snmp.beans.CustomizerTemplate |
|---|
create_v3_tables, getSnmpEngineTable, getUSMTable, initSecurityProvider, isSupportedSecurityModel, manage_v3_tables |
| Field Detail |
|---|
boolean isUpdateScrollBar
java.util.Vector namesToIndex
| Constructor Detail |
|---|
public DefaultSnmpTablePanelModel()
public DefaultSnmpTablePanelModel(java.applet.Applet applet)
| Method Detail |
|---|
public void fireScrollBarMoved(int value)
fireScrollBarMoved in interface SnmpTablePanelModelpublic int convertColumnIndexToModel(int column)
convertColumnIndexToModel in interface SnmpTablePanelModelpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface SnmpTablePanelModeladdTableModelListener in interface javax.swing.table.TableModell - - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface SnmpTablePanelModelremoveTableModelListener in interface javax.swing.table.TableModell - the TableModelListenerpublic int getColumnIndex(java.lang.String columnName)
getColumnIndex in interface SnmpTablePanelModelgetColumnIndex in class ClippedTablecolumnName - column name of the table, e.g. ifType
public java.lang.String getColumnName(int columnIndex)
getColumnName in interface SnmpTablePanelModelgetColumnName in interface javax.swing.table.TableModelgetColumnName in class SnmpTablecolumnIndex - index of the column in the table.
public void addRow(boolean entryStatus,
SnmpOID[] oidList,
java.lang.String[] values)
throws DataException
addRow in interface SnmpTablePanelModelentryStatus - 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
DataException - if an invalid value or oid was givenpublic void deleteRows(int[] rows)
deleteRows in interface SnmpTablePanelModelrows - an array of int which are all indexes of rows.public int getColumnCount()
getColumnCount in interface SnmpTablePanelModelgetColumnCount in interface javax.swing.table.TableModelgetColumnCount in class SnmpTablepublic int getRowCount()
getRowCount in interface SnmpTablePanelModelgetRowCount in interface javax.swing.table.TableModelgetRowCount in class SnmpTable
public java.lang.Object getValueAt(int row,
int col)
getValueAt in interface SnmpTablePanelModelgetValueAt in interface javax.swing.table.TableModelgetValueAt in class SnmpTablerow - index of the rowcol - index of column
SnmpTable.setDataType(int type),
SnmpTable.setValueAt(Object aValue, int rowIndex,int columnIndex)
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface SnmpTablePanelModelsetValueAt in interface javax.swing.table.TableModelsetValueAt in class SnmpTablevalue - value to be setrow - row indexcolumn - column indexSnmpTable.getValueAt(int rowIndex, int columnIndex),
ErrorMessages,
SnmpTarget.getErrorCode(),
SnmpTarget.getErrorString()public java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface SnmpTablePanelModelgetColumnClass in interface javax.swing.table.TableModelgetColumnClass in class SnmpTablecolumnIndex - index of the column in the table
public void setColumnNameAt(java.lang.String name,
int columnIndex)
setColumnNameAt in interface SnmpTablePanelModelname - the value to be set for the headercolumnIndex - the index of the header of table.
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface SnmpTablePanelModelisCellEditable in interface javax.swing.table.TableModelisCellEditable in class ClippedTablerowIndex - the index of the row which has to be checked.columnIndex - the index of the column which has to be checked.
public SnmpTable getSnmpTable()
getSnmpTable in interface SnmpTablePanelModelpublic boolean isRowAddAndDel()
isRowAddAndDel in interface SnmpTablePanelModelpublic void setTablePanelUI(SnmpTablePanelUI panel)
setTablePanelUI in interface SnmpTablePanelModelpublic SnmpTablePanel getSnmpTablePanel()
getSnmpTablePanel in interface SnmpTablePanelModelpublic void setSnmpTablePanel(SnmpTablePanel panel)
setSnmpTablePanel in interface SnmpTablePanelModelprotected void refresh()
refresh in class ClippedTableprotected void showErrorMessage(java.lang.String str)
showErrorMessage in class ClippedTablepublic int getPageNumber()
getPageNumber in interface SnmpTablePanelModelpublic java.lang.String getIndexField(int rowIndex)
getIndexField in interface SnmpTablePanelModelrowIndex - index of the row in the table.public void setGetFromIndex(boolean isFromIndex)
setGetFromIndex in interface SnmpTablePanelModelpublic boolean isGetFromIndex()
isGetFromIndex in interface SnmpTablePanelModelpublic void setRetrievalMode(boolean mode)
setRetrievalMode in interface SnmpTablePanelModelsetRetrievalMode in class SnmpTablemode - either true or false.public boolean isRetrievalMode()
isRetrievalMode in interface SnmpTablePanelModelpublic void prepareEntries()
prepareEntries in interface SnmpTablePanelModelpublic void getEntriesFromStart(java.lang.String index)
getEntriesFromStart in interface SnmpTablePanelModelindex - this be used if GetFromIndex is set. the will start with
this index string.public void getEntriesFromNext()
getEntriesFromNext in interface SnmpTablePanelModelpublic void getEntriesFromPrev()
getEntriesFromPrev in interface SnmpTablePanelModelpublic void getEntriesFromRefresh()
getEntriesFromRefresh in interface SnmpTablePanelModelpublic int getTotalColumnCount()
getTotalColumnCount in interface SnmpTablePanelModelpublic java.util.Vector getIndexNames()
getIndexNames in interface SnmpTablePanelModelgetIndexNames in class ClippedTablepublic java.util.Vector getIndexMibNodes()
getIndexMibNodes in interface SnmpTablePanelModelgetIndexMibNodes in class ClippedTablepublic java.util.Vector getColumnNames()
getColumnNames in interface SnmpTablePanelModelpublic java.util.Vector getColumnMibNodes()
getColumnMibNodes in interface SnmpTablePanelModelgetColumnMibNodes in class ClippedTablepublic byte getColumnType(int columnIndex)
getColumnType in interface SnmpTablePanelModelpublic void setColumnOrder(int columnIndex)
setColumnOrder in interface SnmpTablePanelModelpublic boolean isEntryStatus()
isEntryStatus in interface SnmpTablePanelModelpublic java.util.Vector getSnmpVarVec(int row)
getSnmpVarVec in interface SnmpTablePanelModelgetSnmpVarVec in class ClippedTablerow - Row index for which the SnmpVar value is required.
public java.lang.String getDecodedInstanceStr(java.util.Vector values)
getDecodedInstanceStr in interface SnmpTablePanelModelvalues - elements are all values for index columns for the table
public boolean isAugmentedTable()
isAugmentedTable in interface SnmpTablePanelModelisAugmentedTable in class ClippedTablepublic boolean isAugmentedDisplay()
isAugmentedDisplay in interface SnmpTablePanelModelisAugmentedDisplay in class ClippedTablepublic void setAugmentedDisplay(boolean isAugmented)
setAugmentedDisplay in interface SnmpTablePanelModelsetAugmentedDisplay in class ClippedTablepublic void setupCellEditor(javax.swing.JTable table)
setupCellEditor in interface SnmpTablePanelModelpublic java.lang.String[][] getNotAccessibleIndex()
getNotAccessibleIndex in interface SnmpTablePanelModelgetNotAccessibleIndex in class ClippedTablepublic java.util.Vector getNotAccessIndexColumns()
getNotAccessIndexColumns in interface SnmpTablePanelModelgetNotAccessIndexColumns in class ClippedTable
public void fireColumnMoved(int fromIndex,
int toIndex)
fireColumnMoved in interface SnmpTablePanelModelpublic java.lang.String getTableOID()
getTableOID in interface SnmpTablePanelModelgetTableOID in class SnmpTable
public void setTableOID(java.lang.String oid)
throws DataException
setTableOID in interface SnmpTablePanelModelsetTableOID in class ClippedTableoid - the Object ID of the table, e.g. ifTable.
DataException - is thrown if data is invalidErrorMessages.public java.lang.String[] getObjectIDList()
getObjectIDList in interface SnmpTablePanelModelgetObjectIDList in class SnmpTargetpublic void setObjectIDList(java.lang.String[] s)
setObjectIDList in interface SnmpTablePanelModelsetObjectIDList in class ClippedTables - a one dimensional array of column namespublic boolean isUpdateScrollBar()
isUpdateScrollBar in interface SnmpTablePanelModelpublic void setTableViewColumnCount(int viewColumns)
setTableViewColumnCount in interface SnmpTablePanelModelpublic int getTableViewColumnCount()
getTableViewColumnCount in interface SnmpTablePanelModelpublic void setTableViewRowCount(int viewRows)
setTableViewRowCount in interface SnmpTablePanelModelpublic int getTableViewRowCount()
getTableViewRowCount in interface SnmpTablePanelModelpublic void setColumnsSplit(boolean split)
setColumnsSplit in interface SnmpTablePanelModelpublic void setColumnsPerGet(int columnsPerGet)
setColumnsPerGet in interface SnmpTablePanelModelpublic int getColumnsPerGet()
getColumnsPerGet in interface SnmpTablePanelModelpublic boolean getColumnsSplit()
getColumnsSplit in interface SnmpTablePanelModel
void qSort(int left,
int right)
void intqSort(int left,
int right)
void enumintqSort(int left,
int right)
void swap(int i,
int j)
void logErrorMessage(java.lang.String error)
void logInfoMessage(java.lang.String info)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||