|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.cometway.swing.PropsTableModel
public class PropsTableModel
This is a swing TableModel implementation for editing Props.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
PropsTableModel(Props p)
Constructor for PropsTableModel. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getColumnClass(int column)
Returns the Class of data in the specified Column (java.lang.String). |
int |
getColumnCount()
Returns the number of columns (2). |
java.lang.String |
getColumnName(int column)
Returns the name of the specified column. |
int |
getRowCount()
Returns the number of rows in this TableModel. |
java.lang.Object |
getValueAt(int row,
int col)
Returns the value of the specified row and column. |
boolean |
isCellEditable(int row,
int column)
Returns true if the specified cell is editable; false otherwise. |
boolean |
isReservedKey(java.lang.String key)
Returns true if the specified key is "agent_id", "name", "classname", "startup", "hide_println", "hide_warning" or "hide_debug". |
void |
notifyPropsChanged()
Call this method to indicate that the values in the table have changed. |
void |
setProps(Props p)
Sets the Props this TableModel is rendering. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value of the specified cell. |
void |
sortKeys()
Sorts the keys in alphabetical order. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropsTableModel(Props p)
p - The Props to be rendered by a JTable.| Method Detail |
|---|
public int getColumnCount()
public java.lang.Class getColumnClass(int column)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic int getRowCount()
public java.lang.Object getValueAt(int row,
int col)
public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic boolean isReservedKey(java.lang.String key)
public void notifyPropsChanged()
public void setProps(Props p)
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic void sortKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||