|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
org.openswing.swing.properties.client.PropertyGridModel
Title: OpenSwing Framework
Description: TableModel used by PropertyGridControl.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Constructor Summary | |
PropertyGridModel()
|
Method Summary | |
int |
findRow(java.lang.String attributeName)
|
java.lang.String |
getAttributeName(int rowIndex)
|
int[] |
getChangedRowNumbers()
|
java.lang.Object |
getDefaultValue(int rowIndex)
|
InputControl |
getInputControl(int rowIndex)
|
int |
getMode()
|
java.lang.Object |
getOldPropertyValue(int rowIndex)
|
java.lang.Object |
getPropertyValue(int rowIndex)
|
java.lang.Object |
getUserObject(int rowIndex)
|
boolean |
isCellEditable(int row,
int column)
|
boolean |
isRequired(int rowIndex)
|
void |
setMode(int mode)
Set grid mode. |
void |
setPropertyValue(int rowIndex,
java.lang.Object value)
|
void |
setValueAt(java.lang.Object aValue,
int row,
int column)
Sets the object value for the cell at column and
row . |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyGridModel()
Method Detail |
public final boolean isCellEditable(int row, int column)
true
if the current grid mode is EDIT and the column is the property value column, false
otherwisepublic final int getMode()
public final void setMode(int mode)
mode
- grid mode; possibile values: READONLY, INSERT, EDITpublic final java.lang.Object getDefaultValue(int rowIndex)
rowIndex
- row index
public final InputControl getInputControl(int rowIndex)
rowIndex
- row index
public final boolean isRequired(int rowIndex)
rowIndex
- row index
true
if the property is mandatory, false
otherwisepublic final java.lang.String getAttributeName(int rowIndex)
rowIndex
- row index
public final void setPropertyValue(int rowIndex, java.lang.Object value)
rowIndex
- row index in the modelvalue
- property value to setpublic final java.lang.Object getPropertyValue(int rowIndex)
rowIndex
- row index in the model
public final java.lang.Object getOldPropertyValue(int rowIndex)
public final java.lang.Object getUserObject(int rowIndex)
rowIndex
- row index in the model
public final int findRow(java.lang.String attributeName)
attributeName
- attribute name that identify a row
public final int[] getChangedRowNumbers()
public final void setValueAt(java.lang.Object aValue, int row, int column)
column
and
row
. aValue
is the new value. This method
will generate a tableChanged
notification.
aValue
- the new value; this can be nullrow
- the row whose value is to be changedcolumn
- the column whose value is to be changed
java.lang.ArrayIndexOutOfBoundsException
- if an invalid row or
column was given
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |