|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.table.model.client.VOListAdapter
Title: OpenSwing Framework
Description: Adapter used to link TableModel columns and a ValueObject.
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 | |
VOListAdapter(java.lang.Class valueObjectType,
GridController tableContainer,
Column[] colProperties,
Grids grids)
|
Method Summary | |
void |
finalize()
|
javax.swing.table.TableCellEditor |
getCellEditor(int colIndex)
|
javax.swing.table.TableCellRenderer |
getCellRenderer(int colIndex)
|
java.lang.Object |
getField(ValueObject obj,
int colIndex)
|
java.lang.Class |
getFieldClass(int colIndex)
|
Column |
getFieldColumn(int colIndex)
|
int |
getFieldCount()
|
int |
getFieldIndex(java.lang.String fieldName)
|
int |
getFieldMaxWidth(int colIndex)
|
int |
getFieldMinWidth(int colIndex)
|
java.lang.String |
getFieldName(int colIndex)
|
int |
getFieldPreferredWidth(int colIndex)
|
int |
getFieldType(int colIndex)
|
Grids |
getGrids()
|
GridController |
getTableContainer()
|
java.lang.Class |
getValueObjectType()
|
boolean |
isFieldDuplicable(int colIndex)
|
boolean |
isFieldEditable(int colIndex)
Method not supported. |
boolean |
isFieldEditable(int mode,
int rowNumber,
int colIndex)
|
void |
setField(ValueObject obj,
int colIndex,
java.lang.Object value)
|
void |
setField(ValueObject obj,
java.lang.String attributeName,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VOListAdapter(java.lang.Class valueObjectType, GridController tableContainer, Column[] colProperties, Grids grids)
valueObjectType
- ValueObject typetableContainer
- grid containercolProperties
- list of TableModel column properties (name, type, etc)Method Detail |
public final int getFieldCount()
public final java.lang.String getFieldName(int colIndex)
colIndex
- TableModel column index
public final java.lang.Object getField(ValueObject obj, int colIndex)
obj
- ValueObject related to the current rowcolIndex
- TableModel column index
public final void setField(ValueObject obj, int colIndex, java.lang.Object value)
obj
- ValueObject where updating the value for the specified attribute (identified by colunm index)colIndex
- TableModel column indexvalue
- new Object to set onto ValueObjectpublic final void setField(ValueObject obj, java.lang.String attributeName, java.lang.Object value)
obj
- ValueObject where updating the value for the specified attribute (identified by colunm index)attributeName
- attribute namevalue
- new Object to set onto ValueObjectpublic final javax.swing.table.TableCellRenderer getCellRenderer(int colIndex)
colIndex
- TableModel column index
public final javax.swing.table.TableCellEditor getCellEditor(int colIndex)
colIndex
- TableModel column index
public final boolean isFieldEditable(int colIndex)
public final boolean isFieldEditable(int mode, int rowNumber, int colIndex)
mode
- current edit grid moderowNumber
- TableModel row indexcolIndex
- TableModel column index
true
means that the cell having the specified row and column index is editable, false
otherwisepublic final boolean isFieldDuplicable(int colIndex)
colIndex
- TableModel column index
true
means that the cell having the specified column index is duplicable, false
otherwisepublic final java.lang.Class getFieldClass(int colIndex)
colIndex
- TableModel column index
public final int getFieldType(int colIndex)
colIndex
- column index in table model
public final int getFieldPreferredWidth(int colIndex)
colIndex
- column index in table model
public final int getFieldMinWidth(int colIndex)
colIndex
- column index in table model
public final int getFieldMaxWidth(int colIndex)
colIndex
- column index in table model
public final Column getFieldColumn(int colIndex)
colIndex
- column index in table model
public final GridController getTableContainer()
public final java.lang.Class getValueObjectType()
public final int getFieldIndex(java.lang.String fieldName)
fieldName
- attribute name
public final Grids getGrids()
public final void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |