|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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
org.springframework.richclient.form.binding.support.CustomBinding
org.springframework.richclient.form.binding.support.AbstractCRUDBinding
org.springframework.richclient.form.binding.swing.AbstractGlazedListsBinding
public abstract class AbstractGlazedListsBinding
Field Summary | |
---|---|
protected int |
currentMode
Current mode of the form/dialog. |
protected String |
dialogId
Id to configure the dialog. |
protected AbstractForm |
form
Form used to add/create rowObjects. |
protected ApplicationDialog |
formDialog
Dialog used to add/create rowObjects. |
protected GlazedListTableWidget |
table
Table used to show the list. |
protected boolean |
useOriginalSortOrder
Use the original sort order of the provided data |
protected Object |
viewControllerObject
List on screen, has to be a cloned one to be able to detect differences. |
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 | |
---|---|
AbstractGlazedListsBinding(FormModel formModel,
String formPropertyPath)
Constructor. |
|
AbstractGlazedListsBinding(FormModel formModel,
String formPropertyPath,
boolean useOriginalSortOrder)
Constructor. |
Method Summary | |
---|---|
protected void |
add(Object list)
|
protected AbstractCommand |
createAddCommand()
|
protected AbstractForm |
createAddEditForm()
|
protected AbstractCommand |
createDetailCommand()
|
protected AbstractForm |
createDetailForm()
|
protected AbstractCommand |
createEditCommand()
|
protected AbstractCommand |
createRemoveCommand()
|
protected JComponent |
doBindControl()
|
void |
edit(Object[] rows)
|
protected void |
enabledChanged()
Called when the enabled state of the bound property changes. |
protected String |
getAddCommandSecurityControllerId()
Returns the securityControllerId for the add command. |
String |
getDialogId()
|
protected String |
getEditCommandSecurityControllerId()
Returns the securityControllerId for the remove command. |
protected Collection |
getList(Object value)
|
protected Object |
getNewFormObject()
|
protected AbstractForm |
getOrCreateAddEditForm()
|
protected AbstractForm |
getOrCreateDetailForm()
|
protected String |
getRemoveCommandSecurityControllerId()
Returns the securityControllerId for the remove command. |
Object[] |
getSelection()
|
protected TableWidget |
getTable()
|
protected abstract TableDescription |
getTableDescription()
|
protected void |
listChanged()
|
protected Object |
onFinishAdd(Object list,
Object newItem)
|
protected Object |
onFinishEdit(Object list,
Object newItem)
|
protected void |
onValueModelChanged()
|
protected void |
readOnlyChanged()
Enable/disable the commands on readOnly change or valueModelChange |
protected void |
remove(Object list,
Object[] selection)
|
void |
setDialogId(String dialogId)
|
void |
showDetail(Object[] rows)
|
protected void |
valueModelChanged(Object newValue)
Called when the underlying property's value model value changes. |
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractCRUDBinding |
---|
createCommands, getAddCommand, getCommands, getDetailCommand, getEditCommand, getRemoveCommand, isAddSupported, isEditSupported, isRemoveSupported, isShowDetailSupported, setAddSupported, setEditSupported, setRemoveSupported, setShowDetailSupported |
Methods inherited from class org.springframework.richclient.form.binding.support.CustomBinding |
---|
controlValueChanged, isReadOnly, setReadOnly |
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinding |
---|
createControl, getFieldFace, getFormModel, getProperty, getPropertyType, getValue, getValueModel, isEnabled |
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 Object viewControllerObject
protected int currentMode
protected GlazedListTableWidget table
protected ApplicationDialog formDialog
protected AbstractForm form
protected String dialogId
protected boolean useOriginalSortOrder
Constructor Detail |
---|
public AbstractGlazedListsBinding(FormModel formModel, String formPropertyPath)
formModel
- formModel met de property.formPropertyPath
- pad naar de property.public AbstractGlazedListsBinding(FormModel formModel, String formPropertyPath, boolean useOriginalSortOrder)
formModel
- formModel met de property.formPropertyPath
- pad naar de property.useOriginalSortOrder
- gebruik de originele sorteervolgorde van de lijstMethod Detail |
---|
protected final void valueModelChanged(Object newValue)
CustomBinding
valueModelChanged
in class CustomBinding
protected void onValueModelChanged()
protected final void listChanged()
protected JComponent doBindControl()
doBindControl
in class AbstractBinding
protected TableWidget getTable()
public Object[] getSelection()
protected void readOnlyChanged()
readOnlyChanged
in class AbstractBinding
FormPropertyState
protected void enabledChanged()
AbstractBinding
enabledChanged
in class AbstractBinding
FormPropertyState
protected AbstractCommand createAddCommand()
createAddCommand
in class AbstractCRUDBinding
protected String getAddCommandSecurityControllerId()
null
, provide
your own id to enable security.
protected AbstractCommand createRemoveCommand()
createRemoveCommand
in class AbstractCRUDBinding
protected String getRemoveCommandSecurityControllerId()
null
, provide
your own id to enable security.
protected AbstractCommand createDetailCommand()
createDetailCommand
in class AbstractCRUDBinding
protected AbstractCommand createEditCommand()
createEditCommand
in class AbstractCRUDBinding
protected String getEditCommandSecurityControllerId()
null
, provide
your own id to enable security.
public void edit(Object[] rows)
protected void add(Object list)
protected void remove(Object list, Object[] selection)
public void showDetail(Object[] rows)
protected AbstractForm getOrCreateAddEditForm()
protected AbstractForm getOrCreateDetailForm()
protected AbstractForm createDetailForm()
protected AbstractForm createAddEditForm()
protected abstract TableDescription getTableDescription()
protected Collection getList(Object value)
protected Object getNewFormObject()
public void setDialogId(String dialogId)
public String getDialogId()
protected Object onFinishAdd(Object list, Object newItem)
protected Object onFinishEdit(Object list, Object newItem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |