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

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.form.binding.support.AbstractBinder
          extended by org.springframework.richclient.form.binding.swing.date.AbstractDateFieldBinder
              extended by org.springframework.richclient.form.binding.swing.date.NachoCalendarDateFieldBinder
All Implemented Interfaces:
Binder

public class NachoCalendarDateFieldBinder
extends AbstractDateFieldBinder

Binds a Date to a NachoCalendar DateField

Author:
Geoffrey De Smet, Benoit Xhenseval (added dateFormat setting)

Field Summary
static String ALLOWS_INVALID_KEY
           
static String ANTI_ALIASED_KEY
           
static String FIRST_DAY_OF_WEEK_KEY
           
static String HEADER_RENDERER_KEY
           
static String MODEL_KEY
           
static String PRINT_MOON_KEY
           
static String RENDERER_KEY
           
static String SHOW_OK_CANCEL_KEY
           
static String SHOW_TODAY_KEY
           
static String SHOW_WEEKNUMBERS_KEY
           
static String TODAY_CAPTION_KEY
           
static String WORKING_DAYS_KEY
           
 
Fields inherited from class org.springframework.richclient.form.binding.swing.date.AbstractDateFieldBinder
DATE_FORMAT
 
Fields inherited from class org.springframework.richclient.form.binding.support.AbstractBinder
BINDING_CLIENT_PROPERTY_KEY, log
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Constructor Summary
NachoCalendarDateFieldBinder()
           
 
Method Summary
protected  void applyContext(NachoCalendarDateFieldBinding binding, Map context)
           
protected  JComponent createControl(Map context)
           
protected  Binding doBind(JComponent control, FormModel formModel, String formPropertyPath, Map context)
           
 
Methods inherited from class org.springframework.richclient.form.binding.swing.date.AbstractDateFieldBinder
applyContext, getDateFormat, setDateFormat
 
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinder
bind, bind, getPropertyType, getRequiredSourceClass, validateContextKeys
 
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.Binder
bind, bind
 

Field Detail

ALLOWS_INVALID_KEY

public static final String ALLOWS_INVALID_KEY
See Also:
Constant Field Values

ANTI_ALIASED_KEY

public static final String ANTI_ALIASED_KEY
See Also:
Constant Field Values

FIRST_DAY_OF_WEEK_KEY

public static final String FIRST_DAY_OF_WEEK_KEY
See Also:
Constant Field Values

HEADER_RENDERER_KEY

public static final String HEADER_RENDERER_KEY
See Also:
Constant Field Values

MODEL_KEY

public static final String MODEL_KEY
See Also:
Constant Field Values

PRINT_MOON_KEY

public static final String PRINT_MOON_KEY
See Also:
Constant Field Values

RENDERER_KEY

public static final String RENDERER_KEY
See Also:
Constant Field Values

SHOW_OK_CANCEL_KEY

public static final String SHOW_OK_CANCEL_KEY
See Also:
Constant Field Values

SHOW_TODAY_KEY

public static final String SHOW_TODAY_KEY
See Also:
Constant Field Values

TODAY_CAPTION_KEY

public static final String TODAY_CAPTION_KEY
See Also:
Constant Field Values

WORKING_DAYS_KEY

public static final String WORKING_DAYS_KEY
See Also:
Constant Field Values

SHOW_WEEKNUMBERS_KEY

public static final String SHOW_WEEKNUMBERS_KEY
See Also:
Constant Field Values
Constructor Detail

NachoCalendarDateFieldBinder

public NachoCalendarDateFieldBinder()
Method Detail

doBind

protected Binding doBind(JComponent control,
                         FormModel formModel,
                         String formPropertyPath,
                         Map context)
Specified by:
doBind in class AbstractBinder

applyContext

protected void applyContext(NachoCalendarDateFieldBinding binding,
                            Map context)

createControl

protected JComponent createControl(Map context)
Specified by:
createControl in class AbstractBinder


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