org.springframework.richclient.samples.simple.ui
Class ContactForm
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.form.AbstractForm
org.springframework.richclient.samples.simple.ui.ContactForm
- All Implemented Interfaces:
- CommitListener, ControlFactory, Form
public class ContactForm
- extends AbstractForm
Form to handle the properties of a Contact object. It uses a TableFormBuilder
to construct the layout of the
form. Contact object properties are easily bound to UI controls using the form builder's
TableFormBuilder.add(String)
method. The platform takes care of determining which kind of control to create
based on the type of the property in question.
- Author:
- Larry Streepy
Methods inherited from class org.springframework.richclient.form.AbstractForm |
addChildForm, addFormObjectChangeListener, addFormValueChangeListener, addGuarded, addGuarded, addValidationListener, addValidationResultsReporter, attachFormErrorGuard, attachFormGuard, commit, constructSecurityControllerId, createCommitButton, createControl, createNewFormObjectButton, createNewObject, detachFormGuard, getBindingFactory, getChildForm, getCommitCommand, getCommitCommandFaceDescriptorId, getCommitSecurityControllerId, getDefaultButton, getEditableFormObject, getEditingFormObjectIndex, getFormModel, getFormObject, getId, getNewFormObjectCommand, getNewFormObjectCommandId, getNewFormObjectSecurityControllerId, getParent, getRevertCommand, getRevertCommandFaceDescriptorId, getValidationResultsReporters, getValue, getValueModel, handleEnabledChange, hasErrors, init, isDirty, isEditingNewFormObject, isEnabled, newSingleLineResultsReporter, postCommit, preCommit, removeChildForm, removeFormObjectChangeListener, removeFormValueChangeListener, removeGuarded, removeValidationListener, removeValidationResultsReporter, reset, revert, setClearFormOnCommit, setDefaultButton, setEditableFormObjects, setEditingFormObjectIndexHolder, setEditingFormObjectIndexSilently, setEditingNewFormObject, setEnabled, setFormModel, setFormModelDefaultEnabledState, setFormObject, setId |
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 |
ContactForm
public ContactForm(Contact contact)
createFormControl
protected JComponent createFormControl()
- Specified by:
createFormControl
in class AbstractForm
requestFocusInWindow
public boolean requestFocusInWindow()
- Try to place the focus in the firstNameField whenever the initial focus is being set.
- Returns:
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.