|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.form.binding.support.AbstractBinding
public abstract class AbstractBinding
Default base implementation of Binding
. Provides helper methods for
access to commonly needed properties.
Field Summary | |
---|---|
protected FieldMetadata |
fieldMetadata
|
protected FormModel |
formModel
|
protected String |
formPropertyPath
|
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
---|
logger |
Constructor Summary | |
---|---|
protected |
AbstractBinding(FormModel formModel,
String formPropertyPath,
Class requiredSourceClass)
|
Method Summary | |
---|---|
protected JComponent |
createControl()
Subclasses must override this method to create a new instance of the control that this factory produces. |
protected abstract JComponent |
doBindControl()
|
protected abstract void |
enabledChanged()
Called when the enabled state of the bound property changes. |
protected FieldFace |
getFieldFace()
|
FormModel |
getFormModel()
Returns the form model that this binding is for. |
String |
getProperty()
Returns the property that this binding is for. |
protected Class |
getPropertyType()
|
protected Object |
getValue()
|
protected ValueModel |
getValueModel()
|
protected boolean |
isEnabled()
Is the bound property in the enabled state. |
protected boolean |
isReadOnly()
Is the bound property in the read only state. |
protected abstract void |
readOnlyChanged()
Called when the read only state of the bound property changes. |
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 |
Field Detail |
---|
protected final FormModel formModel
protected final String formPropertyPath
protected final FieldMetadata fieldMetadata
Constructor Detail |
---|
protected AbstractBinding(FormModel formModel, String formPropertyPath, Class requiredSourceClass)
Method Detail |
---|
public String getProperty()
Binding
getProperty
in interface Binding
public FormModel getFormModel()
Binding
getFormModel
in interface Binding
protected FieldFace getFieldFace()
protected Class getPropertyType()
protected JComponent createControl()
AbstractControlFactory
createControl
in class AbstractControlFactory
protected abstract JComponent doBindControl()
protected abstract void readOnlyChanged()
FormPropertyState
protected abstract void enabledChanged()
FormPropertyState
protected boolean isReadOnly()
FormPropertyState
protected boolean isEnabled()
FormPropertyState
protected ValueModel getValueModel()
protected Object getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |