public interface FormContainer extends FormChangeable
FormContainers are aware of the data binding and provide some more features like online help.
| Modifier and Type | Method and Description |
|---|---|
boolean |
areValuesChanged()
Checks whether the contents of some components in this or sub containers
have changed since the last
saveValues(). |
FormComponentBinder |
getBinder()
Gets the binder of this container.
|
void |
getFormValues()
Retrieves the values from all components in this container and
all sub containers.
Used to update the data from the view according to the data binding. |
String |
getHelpURL()
Gets the online-help URL.
|
Window |
getParentWindow()
Gets the parent window.
|
String |
getTitle()
Gets the container's title.
|
void |
invalidateParentInfo()
Invalidates all container-relevant (cached) information
for the hierarchy of this container's parents.
For optimization purposes. |
boolean |
isAutoUpdate()
Returns whether the auto-update feature is enabled.
|
boolean |
isBindable()
Determines whether this container is bindable.
|
boolean |
isTriggerValuesChangedEnabled()
Determines whether triggering value changes is enabled.
|
void |
saveValues()
Sets a savepoint for all components in this container and
all sub containers.
|
void |
setAutoUpdate(boolean autoUpdate)
Sets the auto-update feature for all components in this container and all sub containers.
|
void |
setBindable(boolean bindable)
Sets whether this container is bindable, i.e.
|
void |
setFormValues()
Sets the values in all form components in this container and all
sub containers.
Used to update the view from the data according to the data binding. |
void |
setFormValuesKeepChanged()
Sets the values in all unchanged form components in this container and
all sub containers.
All changed components are left untouched. |
void |
setHelpURL(String helpURL)
Sets the online-help URL.
If a help url is set for this container, a browser will be launched to show that url if there is no help url for the component the help was requested for. |
void |
setTitle(String title)
set the (optional) title.
If the container is a window, the title is the window-title. |
void |
setTriggerValuesChangedEnabled(boolean enabled)
Enables triggering value changes.
Disabling this feature may be necessary for model-agnostic containers. |
void |
showHelp()
Displays online help for this container.
|
void |
triggerValuesChanged()
Signals that values in the components of the container may have changed.
|
isChangeable, isHonourChangeable, setChangeable, setHonourChangeablevoid setTitle(String title)
title - the container's title, null if noneString getTitle()
void setFormValues()
void getFormValues()
void setFormValuesKeepChanged()
FormComponent.isValueChanged()void saveValues()
FormComponent.saveValue()boolean areValuesChanged()
saveValues().
Notice that only components with (FormComponent.isTriggerValueChangedEnabled() == true)
will be checked.
void triggerValuesChanged()
void setTriggerValuesChangedEnabled(boolean enabled)
enabled - true if invoke triggerValuesChanged() on each change (default), false if not.boolean isTriggerValuesChangedEnabled()
triggerValuesChanged() on each change (default), false if not.void setAutoUpdate(boolean autoUpdate)
autoUpdate - true if auto update the data (default), false if notFormComponent.setAutoUpdate(boolean)boolean isAutoUpdate()
FormComponent.isAutoUpdate()Window getParentWindow()
void invalidateParentInfo()
void setHelpURL(String helpURL)
helpURL - the help urlFormUtilities.openHelpURL(Component)String getHelpURL()
void showHelp()
FormComponentBinder getBinder()
void setBindable(boolean bindable)
FormContainers are bindable by default.
bindable - true if bindable, else not eligible for the binding processboolean isBindable()
Tentackle - distributed, domain- and model-driven