org.springframework.richclient.samples.simple.ui
Class ContactForm

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.form.AbstractForm
              extended by org.springframework.richclient.widget.AbstractWidgetForm
                  extended by org.springframework.richclient.form.AbstractFocussableForm
                      extended by org.springframework.richclient.samples.simple.ui.ContactForm
All Implemented Interfaces:
CommitListener, Focussable, ControlFactory, Form, Widget

public class ContactForm
extends AbstractFocussableForm

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

Field Summary
 
Fields inherited from class org.springframework.richclient.form.AbstractFocussableForm
UNSAVEDCHANGES_HASERRORS_WARNING_ID, UNSAVEDCHANGES_WARNING_ID
 
Fields inherited from class org.springframework.richclient.widget.AbstractWidgetForm
SAVE_CMD_ID, showing, UNDO_CMD_ID
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Fields inherited from interface org.springframework.richclient.widget.Widget
EMPTY_WIDGET
 
Constructor Summary
ContactForm(Contact contact)
           
 
Method Summary
protected  JComponent createFormControl()
           
 
Methods inherited from class org.springframework.richclient.form.AbstractFocussableForm
canClose, grabFocus, handleEnabledChange, init, setFocusControl
 
Methods inherited from class org.springframework.richclient.widget.AbstractWidgetForm
getCommands, getCommitCommandFaceDescriptorId, getComponent, getRevertCommandFaceDescriptorId, isShowing, onAboutToHide, onAboutToShow
 
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, getCommitSecurityControllerId, getDefaultButton, getEditableFormObject, getEditingFormObjectIndex, getFormModel, getFormObject, getId, getNewFormObjectCommand, getNewFormObjectCommandId, getNewFormObjectSecurityControllerId, getParent, getRevertCommand, getValidationResultsReporters, getValue, getValueModel, hasErrors, 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.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.factory.ControlFactory
getControl
 

Constructor Detail

ContactForm

public ContactForm(Contact contact)
Method Detail

createFormControl

protected JComponent createFormControl()
Specified by:
createFormControl in class AbstractForm


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