com.arsdigita.cms.contenttypes.ui
Class AddressPropertyForm

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.FormSection
              extended bycom.arsdigita.cms.ui.authoring.BasicItemForm
                  extended bycom.arsdigita.cms.ui.authoring.BasicPageForm
                      extended bycom.arsdigita.cms.contenttypes.ui.AddressPropertyForm
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, EventListener, com.arsdigita.bebop.event.FormInitListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormSubmissionListener, com.arsdigita.bebop.event.FormValidationListener, com.arsdigita.util.Lockable

public class AddressPropertyForm
extends com.arsdigita.cms.ui.authoring.BasicPageForm
implements com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormInitListener, com.arsdigita.bebop.event.FormSubmissionListener

Form to edit the basic properties of an address. These are address body, country, postal code, phone, mobile phone, fax, email address, and notes. This form can be extended to create forms for Address subclasses.

Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
Dominik Kacprzak

Field Summary
static String ADDRESS
          Address body parameter name
static String EMAIL
          Email address parameter name
static String FAX
          Fax number parameter name
static String ID
          Name of this form
static String ISO_COUNTRY_CODE
          Country iso code parameter name
static String MOBILE
          Mobile phone number parameter name
static String NOTES
          Address notes parameter name
static String PHONE
          Phone number parameter name
static String POSTAL_CODE
          Postal code parameter name
static String URI
          Address URI parameter name
 
Fields inherited from class com.arsdigita.cms.ui.authoring.BasicPageForm
LAUNCH_DATE
 
Fields inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
LANGUAGE, NAME, TITLE
 
Fields inherited from class com.arsdigita.bebop.FormSection
m_formModel, m_panel, versionId
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.event.FormProcessListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.event.FormInitListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.event.FormSubmissionListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.event.FormValidationListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ON_CLICK, STYLE
 
Constructor Summary
AddressPropertyForm(com.arsdigita.cms.ItemSelectionModel itemModel)
          Creates a new form to edit the Address object specified by the item selection model passed in.
AddressPropertyForm(com.arsdigita.cms.ItemSelectionModel itemModel, AddressPropertiesStep step)
          Creates a new form to edit the Address object specified by the item selection model passed in.
 
Method Summary
protected  void addWidgets()
          Adds widgets to the form.
 void init(com.arsdigita.bebop.event.FormSectionEvent fse)
          Form initialization hook.
 void process(com.arsdigita.bebop.event.FormSectionEvent fse)
          Form processing hook.
 void submitted(com.arsdigita.bebop.event.FormSectionEvent fse)
          Cancels streamlined editing.
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicPageForm
createContentPage, initBasicWidgets, processBasicWidgets
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
add, add, addSaveCancelSection, generateXML, getAllVersionIDs, getItemSelectionModel, getSaveCancelSection, validate, validateNameUniqueness, validateNameUniquenessWithinCategory
 
Methods inherited from class com.arsdigita.bebop.FormSection
addCancelListener, addInitListener, addProcessListener, addSubmissionListener, addValidationListener, children, contains, createInitListener, createProcessListener, createSubmissionListener, createValidationListener, fireCancel, fireInit, fireProcess, fireSubmitted, fireValidate, forwardInit, forwardProcess, forwardSubmission, forwardValidation, get, getModel, getPanel, indexOf, isEmpty, lock, process, register, removeCancelListener, removeInitListener, removeProcessListener, removeSubmissionListener, removeValidationListener, respond, size
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

ADDRESS

public static final String ADDRESS
Address body parameter name

See Also:
Constant Field Values

ISO_COUNTRY_CODE

public static final String ISO_COUNTRY_CODE
Country iso code parameter name

See Also:
Constant Field Values

POSTAL_CODE

public static final String POSTAL_CODE
Postal code parameter name

See Also:
Constant Field Values

PHONE

public static final String PHONE
Phone number parameter name

See Also:
Constant Field Values

MOBILE

public static final String MOBILE
Mobile phone number parameter name

See Also:
Constant Field Values

FAX

public static final String FAX
Fax number parameter name

See Also:
Constant Field Values

EMAIL

public static final String EMAIL
Email address parameter name

See Also:
Constant Field Values

NOTES

public static final String NOTES
Address notes parameter name

See Also:
Constant Field Values

URI

public static final String URI
Address URI parameter name

See Also:
Constant Field Values

ID

public static final String ID
Name of this form

See Also:
Constant Field Values
Constructor Detail

AddressPropertyForm

public AddressPropertyForm(com.arsdigita.cms.ItemSelectionModel itemModel)
Creates a new form to edit the Address object specified by the item selection model passed in.

Parameters:
itemModel - The ItemSelectionModel to use to obtain the Address to work on

AddressPropertyForm

public AddressPropertyForm(com.arsdigita.cms.ItemSelectionModel itemModel,
                           AddressPropertiesStep step)
Creates a new form to edit the Address object specified by the item selection model passed in.

Parameters:
itemModel - The ItemSelectionModel to use to obtain the Address to work on
step - The AddressPropertiesStep which controls this form.
Method Detail

addWidgets

protected void addWidgets()
Adds widgets to the form.


init

public void init(com.arsdigita.bebop.event.FormSectionEvent fse)
Form initialization hook. Fills widgets with data.

Specified by:
init in interface com.arsdigita.bebop.event.FormInitListener

submitted

public void submitted(com.arsdigita.bebop.event.FormSectionEvent fse)
Cancels streamlined editing.

Specified by:
submitted in interface com.arsdigita.bebop.event.FormSubmissionListener

process

public void process(com.arsdigita.bebop.event.FormSectionEvent fse)
Form processing hook. Saves Address object.

Specified by:
process in interface com.arsdigita.bebop.event.FormProcessListener


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:0006 UTC