org.springframework.richclient.form.binding.swing
Class TextComponentBinder

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.TextComponentBinder
All Implemented Interfaces:
Binder
Direct Known Subclasses:
JXSearchFieldBinder

public class TextComponentBinder
extends AbstractBinder

Author:
Oliver Hutchison

Field Summary
 
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
TextComponentBinder()
           
 
Method Summary
protected  JComponent createControl(Map context)
           
protected  JTextComponent createTextComponent()
           
protected  Binding doBind(JComponent control, FormModel formModel, String formPropertyPath, Map context)
           
 DocumentFactory getDocumentFactory()
           
 String getPromptKey()
           
 boolean isConvertEmptyStringToNull()
           
 boolean isReadOnly()
           
 boolean isSelectAllOnFocus()
           
 void setConvertEmptyStringToNull(boolean convertEmptyStringToNull)
           
 void setDocumentFactory(DocumentFactory documentFactory)
           
 void setPromptKey(String promptKey)
           
 void setReadOnly(boolean readOnly)
           
 void setSelectAllOnFocus(boolean selectAllOnFocus)
           
 
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
 

Constructor Detail

TextComponentBinder

public TextComponentBinder()
Method Detail

doBind

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

createTextComponent

protected JTextComponent createTextComponent()

createControl

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

isConvertEmptyStringToNull

public boolean isConvertEmptyStringToNull()

setConvertEmptyStringToNull

public void setConvertEmptyStringToNull(boolean convertEmptyStringToNull)

getPromptKey

public String getPromptKey()

setPromptKey

public void setPromptKey(String promptKey)

getDocumentFactory

public DocumentFactory getDocumentFactory()

setDocumentFactory

public void setDocumentFactory(DocumentFactory documentFactory)

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

isSelectAllOnFocus

public boolean isSelectAllOnFocus()

setSelectAllOnFocus

public void setSelectAllOnFocus(boolean selectAllOnFocus)


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