|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.form.model.client.VOModel
Title: OpenSwing Framework
Description: Data model linked to a Form panel.
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 | |
VOModel(java.lang.Class valueObjectClass,
boolean createInnerVO,
Form form)
Constructor. |
Method Summary | |
void |
addValueChangeListener(ValueChangeListener listener)
Method used to add a value changed listener. |
java.lang.Class |
getAttributeType(java.lang.String attributeName)
|
java.lang.Object |
getValue(java.lang.String attributeName)
|
java.lang.Object |
getValue(java.lang.String attributeName,
ValueObject valueobject)
|
ValueChangeListener[] |
getValueChangeListeners()
|
ValueObject |
getValueObject()
|
java.lang.Class |
getValueObjectType()
|
void |
removeValueChangeListener(ValueChangeListener listener)
Method used to remove a value changed listener. |
void |
setCreateInnerVO(boolean createInnerVO)
Define if an inner v.o. must be automatically instantiated when a setter method is invoked. |
void |
setValue(java.lang.String attributeName,
java.lang.Object value)
Set a value in the value object for an attribute name. |
void |
setValueObject(java.lang.Class valueObjectClass)
Set the value object class that this model will use. |
void |
setValueObject(ValueObject valueObject)
Set the value object that this model will use. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VOModel(java.lang.Class valueObjectClass, boolean createInnerVO, Form form) throws java.lang.Exception
valueObjectClass
- value object class associated to this data modelcreateInnerVO
- flag used to define if an inner v.o. must be automatically instantiated when a setter method is invoked
java.lang.Exception
- if an error occoursMethod Detail |
public final void setValueObject(java.lang.Class valueObjectClass) throws java.lang.Exception
valueObjectClass
- value object class
java.lang.Exception
- if an error occourspublic final void setCreateInnerVO(boolean createInnerVO)
createInnerVO
- define if an inner v.o. must be automatically instantiated when a setter method is invokedpublic final java.lang.Class getValueObjectType()
public final void setValueObject(ValueObject valueObject)
valueObject
- value object to storepublic final ValueObject getValueObject()
public final java.lang.Class getAttributeType(java.lang.String attributeName)
attributeName
- attribute name of the value object
public final java.lang.Object getValue(java.lang.String attributeName)
attributeName
- attribute name of the value object
public final java.lang.Object getValue(java.lang.String attributeName, ValueObject valueobject)
attributeName
- attribute name of the value objectvalueobject
- value object used to fetch the attribute value
public final void setValue(java.lang.String attributeName, java.lang.Object value)
attributeName
- attribute name of the value object
public final void addValueChangeListener(ValueChangeListener listener)
listener
- value changed listener to addpublic final void removeValueChangeListener(ValueChangeListener listener)
listener
- value changed listener to removepublic final ValueChangeListener[] getValueChangeListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |