org.formaria.swing.data.swing
Class DateBinding
java.lang.Object
org.formaria.aria.data.DataBinding
org.formaria.aria.data.TextBinding
org.formaria.swing.data.swing.DateBinding
public class DateBinding
- extends TextBinding
A data binding for date fields
Copyright (c) Formaria Ltd., 2001-2008, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Formaria.
|
Constructor Summary |
DateBinding()
Construct a new data binding |
|
Method Summary |
void |
get()
Updates the TextComponent with the value obtained from the data model. |
void |
set()
Updates the data model with the value retrieved from the TextComponent. |
void |
setup(Project project,
java.lang.Object c,
java.util.Hashtable bindingConfig,
java.util.Hashtable instanceConfig)
Setup and configure the binding instance. |
| Methods inherited from class org.formaria.aria.data.DataBinding |
getAttributes, getAttributes, getComponent, getOutput, getOutputPath, getReevaluate, getSource, getSourcePath, setOutput, setOutputPath, setReevaluate, setSource, setSourcePath, setupHelper |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateBinding
public DateBinding()
- Construct a new data binding
setup
public void setup(Project project,
java.lang.Object c,
java.util.Hashtable bindingConfig,
java.util.Hashtable instanceConfig)
- Setup and configure the binding instance. The binding is configured via the
XML setup registered for the particular binding type and then, subsequently
by attibitional attributes of the binding instance specified in the page
declaration, for the individual binding instance. The binding may also
obtain configuration or reference information from the component and the
project.
- Overrides:
setup in class TextBinding
- Parameters:
project - the owning projectc - the component being boundbindingConfig - the XML element which contains the binding configurationinstanceConfig - the XML element which contains the setup attributes of the binding instance
set
public void set()
- Updates the data model with the value retrieved from the TextComponent.
- Overrides:
set in class TextBinding
get
public void get()
- Updates the TextComponent with the value obtained from the data model.
- Overrides:
get in class TextBinding