org.springframework.richclient.form.binding.swing.editor
Class AbstractLookupBinder

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.form.binding.swing.editor.AbstractLookupBinder
All Implemented Interfaces:
Binder
Direct Known Subclasses:
SupplierBinder

public abstract class AbstractLookupBinder
extends Object
implements Binder


Constructor Summary
AbstractLookupBinder(String dataEditorId)
           
 
Method Summary
 Binding bind(FormModel formModel, String formPropertyPath, Map context)
          Returns a binding between a form model's property and a control that will be created by this Binder.
 Binding bind(JComponent control, FormModel formModel, String formPropertyPath, Map context)
          Returns a binding between a form model's property and the provided control.
protected  int getAutoPopupDialog()
           
protected  DefaultDataEditorWidget getDataEditor()
           
 String getDataEditorViewCommandId()
           
 Object getFilter()
           
protected abstract  AbstractLookupBinding getLookupBinding(FormModel formModel, String formPropertyPath, Map context)
           
protected  String getSelectDialogCommandId()
           
protected  String getSelectDialogId()
           
 boolean isEnableViewCommand()
           
 boolean isLoadDetailedObject()
           
protected  boolean isRevertValueOnFocusLost()
           
 void setAutoPopupDialog(int autoPopupDialog)
           
 void setDataEditorViewCommandId(String dataEditorViewCommandId)
           
 void setEnableViewCommand(boolean enableViewCommand)
           
 void setFilter(Object filter)
           
 void setLoadDetailedObject(boolean loadDetailedObject)
           
 void setRevertValueOnFocusLost(boolean revertValueOnFocusLost)
           
 void setSelectDialogCommandId(String selectDialogCommandId)
           
 void setSelectDialogId(String selectDialogId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLookupBinder

public AbstractLookupBinder(String dataEditorId)
Method Detail

isLoadDetailedObject

public boolean isLoadDetailedObject()

setLoadDetailedObject

public void setLoadDetailedObject(boolean loadDetailedObject)

setAutoPopupDialog

public void setAutoPopupDialog(int autoPopupDialog)

setRevertValueOnFocusLost

public void setRevertValueOnFocusLost(boolean revertValueOnFocusLost)

setSelectDialogId

public void setSelectDialogId(String selectDialogId)

setSelectDialogCommandId

public void setSelectDialogCommandId(String selectDialogCommandId)

bind

public Binding bind(FormModel formModel,
                    String formPropertyPath,
                    Map context)
Description copied from interface: Binder
Returns a binding between a form model's property and a control that will be created by this Binder.

Specified by:
bind in interface Binder
Parameters:
formModel - the form model that this binding is for
context - additional context that may be used by this binder.
Returns:
a Binding (never null).

getLookupBinding

protected abstract AbstractLookupBinding getLookupBinding(FormModel formModel,
                                                          String formPropertyPath,
                                                          Map context)

bind

public Binding bind(JComponent control,
                    FormModel formModel,
                    String formPropertyPath,
                    Map context)
Description copied from interface: Binder
Returns a binding between a form model's property and the provided control.

Specified by:
bind in interface Binder
Parameters:
control - the visual control that will be bound to the form model's property.
formModel - the form model that this binding is for
context - additional context that may be used by this binder
Returns:
a Binding (never null).

getAutoPopupDialog

protected int getAutoPopupDialog()

getDataEditor

protected DefaultDataEditorWidget getDataEditor()

isRevertValueOnFocusLost

protected boolean isRevertValueOnFocusLost()

getSelectDialogCommandId

protected String getSelectDialogCommandId()

getSelectDialogId

protected String getSelectDialogId()

setDataEditorViewCommandId

public void setDataEditorViewCommandId(String dataEditorViewCommandId)

setEnableViewCommand

public void setEnableViewCommand(boolean enableViewCommand)

setFilter

public void setFilter(Object filter)

getDataEditorViewCommandId

public String getDataEditorViewCommandId()

getFilter

public Object getFilter()

isEnableViewCommand

public boolean isEnableViewCommand()


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