net.sf.beanform
Class BeanForm
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
net.sf.beanform.BeanFormComponent
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
Fields inherited from class org.apache.tapestry.AbstractComponent |
_body, _bodyCount |
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 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.tapestry.IDynamicInvoker |
isAsync, isJson |
BEAN_FORM_ATTRIBUTE
public static final String BEAN_FORM_ATTRIBUTE
BeanForm
public BeanForm()
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.