org.springframework.richclient.form.binding.swing.date
Class JCalendarDateFieldBinding

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.form.binding.support.AbstractBinding
              extended by org.springframework.richclient.form.binding.support.CustomBinding
                  extended by org.springframework.richclient.form.binding.swing.date.AbstractDateFieldBinding
                      extended by org.springframework.richclient.form.binding.swing.date.JCalendarDateFieldBinding
All Implemented Interfaces:
ControlFactory, Binding

public class JCalendarDateFieldBinding
extends AbstractDateFieldBinding

Binds a Date to a JCalendar JDateChooser

Author:
Peter De Bruycker

Field Summary
 
Fields inherited from class org.springframework.richclient.form.binding.support.AbstractBinding
fieldMetadata, formModel, formPropertyPath
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Constructor Summary
JCalendarDateFieldBinding(com.toedter.calendar.JDateChooser dateChooser, FormModel formModel, String formPropertyPath)
           
 
Method Summary
protected  JComponent doBindControl()
           
protected  void enabledChanged()
          Called when the enabled state of the bound property changes.
protected  void readOnlyChanged()
          Called when the read only state of the bound property changes.
protected  void valueModelChanged(Object newValue)
          Called when the underlying property's value model value changes.
 
Methods inherited from class org.springframework.richclient.form.binding.swing.date.AbstractDateFieldBinding
getDateFormat, setDateFormat
 
Methods inherited from class org.springframework.richclient.form.binding.support.CustomBinding
controlValueChanged
 
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinding
createControl, getFieldFace, getFormModel, getProperty, getPropertyType, getValue, getValueModel, isEnabled, isReadOnly
 
Methods inherited from class org.springframework.richclient.factory.AbstractControlFactory
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton
 
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.richclient.form.binding.Binding
getControl
 

Constructor Detail

JCalendarDateFieldBinding

public JCalendarDateFieldBinding(com.toedter.calendar.JDateChooser dateChooser,
                                 FormModel formModel,
                                 String formPropertyPath)
Method Detail

valueModelChanged

protected void valueModelChanged(Object newValue)
Description copied from class: CustomBinding
Called when the underlying property's value model value changes.

Specified by:
valueModelChanged in class CustomBinding

doBindControl

protected JComponent doBindControl()
Specified by:
doBindControl in class AbstractBinding

readOnlyChanged

protected void readOnlyChanged()
Description copied from class: AbstractBinding
Called when the read only state of the bound property changes.

Specified by:
readOnlyChanged in class AbstractBinding
See Also:
FormPropertyState

enabledChanged

protected void enabledChanged()
Description copied from class: AbstractBinding
Called when the enabled state of the bound property changes.

Specified by:
enabledChanged in class AbstractBinding
See Also:
FormPropertyState


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.