net.sf.beanform
Class BeanForm

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by net.sf.beanform.BeanFormComponent
                  extended by net.sf.beanform.BeanForm
All Implemented Interfaces:
EventListener, Locatable, LocationHolder, org.apache.tapestry.event.PageDetachListener, org.apache.tapestry.IComponent, org.apache.tapestry.IDirect, org.apache.tapestry.IDirectEvent, org.apache.tapestry.IDynamicInvoker, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class BeanForm
extends BeanFormComponent
implements org.apache.tapestry.event.PageDetachListener, org.apache.tapestry.IDirect

A form that provides edit capabilities for a Java Bean.

Author:
Daniel Gredler

Field Summary
static String BEAN_FORM_ATTRIBUTE
           
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
BeanForm()
           
 
Method Summary
 void addBody(org.apache.tapestry.IRender element)
           
protected  void cleanup()
           
 Map<String,org.apache.tapestry.IBinding> extractBindingOverrides(String prefix)
           
abstract  Object getBean()
           
protected  BeanForm getBeanForm()
          Obvious shortcut.
 List<BeanProperty> getBeanProperties()
           
 Object getBeanSafely()
           
abstract  boolean getCacheProperties()
           
abstract  org.apache.tapestry.IActionListener getCancel()
           
abstract  org.apache.tapestry.IActionListener getDelete()
           
abstract  String getExclude()
           
 Map<String,org.apache.tapestry.IBinding> getFieldBindingsFor(BeanProperty property)
           
 boolean getIsInsideAForm()
           
 boolean getIsNotCustomized()
           
abstract  String getProperties()
           
 BeanProperty getProperty()
          This method exists only for the convenience of users who wish to reference the current property from within OGNL binding overrides that are applied to all property input fields.
abstract  org.apache.tapestry.IActionListener getRefresh()
           
abstract  org.apache.tapestry.IActionListener getSave()
           
abstract  List getUpdateComponents()
           
protected  void init()
           
 void pageDetached(org.apache.tapestry.event.PageEvent event)
           
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          All low level BeanForm components expect to be able to retrieve their containing BeanForm during the render phase.
abstract  void setBean(Object bean)
           
abstract  void setCacheProperties(boolean cacheProperties)
           
abstract  void setCancel(org.apache.tapestry.IActionListener cancel)
           
abstract  void setDelete(org.apache.tapestry.IActionListener delete)
           
abstract  void setExclude(String exclude)
           
abstract  void setProperties(String properties)
           
abstract  void setRefresh(org.apache.tapestry.IActionListener refresh)
           
abstract  void setSave(org.apache.tapestry.IActionListener save)
           
 void trigger(org.apache.tapestry.IRequestCycle cycle)
          All low level BeanForm components expect to be able to retrieve their containing BeanForm during the rewind phase.
 
Methods inherited from class net.sf.beanform.BeanFormComponent
getCustomField, getCustomFieldBlock, getCustomFieldBlockName, getCustomFieldName, getPropertySelectionModel, getSiblingComponent, hasCustomField, hasPropertySelectionModel
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IDirect
isStateful
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 
Methods inherited from interface org.apache.tapestry.IDynamicInvoker
isAsync, isJson
 

Field Detail

BEAN_FORM_ATTRIBUTE

public static final String BEAN_FORM_ATTRIBUTE
Constructor Detail

BeanForm

public BeanForm()
Method Detail

getBean

public abstract Object getBean()

setBean

public abstract void setBean(Object bean)

getProperties

public abstract String getProperties()

setProperties

public abstract void setProperties(String properties)

getExclude

public abstract String getExclude()

setExclude

public abstract void setExclude(String exclude)

getCacheProperties

public abstract boolean getCacheProperties()

setCacheProperties

public abstract void setCacheProperties(boolean cacheProperties)

getSave

public abstract org.apache.tapestry.IActionListener getSave()

setSave

public abstract void setSave(org.apache.tapestry.IActionListener save)

getCancel

public abstract org.apache.tapestry.IActionListener getCancel()

setCancel

public abstract void setCancel(org.apache.tapestry.IActionListener cancel)

getRefresh

public abstract org.apache.tapestry.IActionListener getRefresh()

setRefresh

public abstract void setRefresh(org.apache.tapestry.IActionListener refresh)

getDelete

public abstract org.apache.tapestry.IActionListener getDelete()

setDelete

public abstract void setDelete(org.apache.tapestry.IActionListener delete)

getUpdateComponents

public abstract List getUpdateComponents()
Specified by:
getUpdateComponents in interface org.apache.tapestry.IDynamicInvoker

addBody

public void addBody(org.apache.tapestry.IRender element)
Specified by:
addBody in interface org.apache.tapestry.IComponent
Overrides:
addBody in class org.apache.tapestry.AbstractComponent

pageDetached

public void pageDetached(org.apache.tapestry.event.PageEvent event)
Specified by:
pageDetached in interface org.apache.tapestry.event.PageDetachListener

getIsInsideAForm

public boolean getIsInsideAForm()

getIsNotCustomized

public boolean getIsNotCustomized()

getBeanSafely

public Object getBeanSafely()

getBeanProperties

public List<BeanProperty> getBeanProperties()

getFieldBindingsFor

public Map<String,org.apache.tapestry.IBinding> getFieldBindingsFor(BeanProperty property)

extractBindingOverrides

public Map<String,org.apache.tapestry.IBinding> extractBindingOverrides(String prefix)

getBeanForm

protected BeanForm getBeanForm()
Obvious shortcut.

Overrides:
getBeanForm in class BeanFormComponent
See Also:
BeanFormComponent.getBeanForm()

getProperty

public BeanProperty getProperty()
This method exists only for the convenience of users who wish to reference the current property from within OGNL binding overrides that are applied to all property input fields. It could be done without this method, but the user would have to know the ID of the contained BeanFormRows component.


renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
All low level BeanForm components expect to be able to retrieve their containing BeanForm during the render phase.

Overrides:
renderComponent in class org.apache.tapestry.BaseComponent
See Also:
BeanFormComponent.getBeanForm()

trigger

public void trigger(org.apache.tapestry.IRequestCycle cycle)
All low level BeanForm components expect to be able to retrieve their containing BeanForm during the rewind phase.

Specified by:
trigger in interface org.apache.tapestry.IDirect
See Also:
BeanFormComponent.getBeanForm(), IDirect.trigger(IRequestCycle)

init

protected void init()

cleanup

protected void cleanup()


Copyright © 2005-2008 SourceForge.net. All Rights Reserved.