|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.table.editors.client.AbstractCellEditor
org.openswing.swing.table.editors.client.ComboBoxVOCellEditor
Title: OpenSwing Framework
Description: Column editor used to edit a ComboVOControl, linked to a list of value objects.
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 | |
ComboBoxVOCellEditor(org.openswing.swing.items.client.ItemsMapper itemsMapper,
org.openswing.swing.items.client.ItemsDataLocator itemsDataLocator,
java.lang.String attributeName,
ValueObject itemsVO,
Column[] colProperties,
boolean allColumnVisible,
int allColumnPreferredWidth,
java.util.Hashtable getters,
boolean required,
java.util.ArrayList itemListeners,
java.lang.String foreignKeyAttributeName,
int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin,
java.awt.ComponentOrientation orientation)
Constructor. |
Method Summary | |
void |
finalize()
|
java.lang.Object |
getCellEditorValue()
This method should be overrided. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
|
ValueObject |
getValueObject()
|
void |
reloadItems()
Method used to reload items in combo-box. |
void |
setValue(java.lang.String attributeName,
java.lang.Object value)
setValue |
boolean |
stopCellEditing()
Stop cell editing. |
Methods inherited from class org.openswing.swing.table.editors.client.AbstractCellEditor |
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell |
Constructor Detail |
public ComboBoxVOCellEditor(org.openswing.swing.items.client.ItemsMapper itemsMapper, org.openswing.swing.items.client.ItemsDataLocator itemsDataLocator, java.lang.String attributeName, ValueObject itemsVO, Column[] colProperties, boolean allColumnVisible, int allColumnPreferredWidth, java.util.Hashtable getters, boolean required, java.util.ArrayList itemListeners, java.lang.String foreignKeyAttributeName, int leftMargin, int rightMargin, int topMargin, int bottomMargin, java.awt.ComponentOrientation orientation)
required
- flag sed to set mandatory property of the cellMethod Detail |
public final void reloadItems()
public final boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class AbstractCellEditor
true
if cell editing may stop, and false
otherwise.public final java.lang.Object getCellEditorValue()
AbstractCellEditor
getCellEditorValue
in interface javax.swing.CellEditor
getCellEditorValue
in class AbstractCellEditor
public final java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
public ValueObject getValueObject()
getValueObject
in interface org.openswing.swing.items.client.ItemsParent
public void setValue(java.lang.String attributeName, java.lang.Object value)
setValue
in interface org.openswing.swing.items.client.ItemsParent
attributeName
- Stringvalue
- Objectpublic final void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |