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, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, PageDetachListener, IComponent, IDirect, IRender, ITemplateComponent
public abstract class BeanForm
- extends BeanFormComponent
- implements PageDetachListener, IDirect
A form that provides edit capabilities for a Java Bean.
- Author:
- Daniel Gredler
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
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 |
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 IActionListener getSave()
setSave
public abstract void setSave(IActionListener save)
getCancel
public abstract IActionListener getCancel()
setCancel
public abstract void setCancel(IActionListener cancel)
getRefresh
public abstract IActionListener getRefresh()
setRefresh
public abstract void setRefresh(IActionListener refresh)
getDelete
public abstract IActionListener getDelete()
setDelete
public abstract void setDelete(IActionListener delete)
addBody
public void addBody(IRender element)
- Specified by:
addBody
in interface IComponent
- Overrides:
addBody
in class AbstractComponent
pageDetached
public void pageDetached(PageEvent event)
- Specified by:
pageDetached
in interface PageDetachListener
getIsInsideAForm
public boolean getIsInsideAForm()
getIsNotCustomized
public boolean getIsNotCustomized()
getBeanSafely
public Object getBeanSafely()
getBeanProperties
public List<BeanProperty> getBeanProperties()
getFieldBindingsFor
public Map<String,IBinding> getFieldBindingsFor(BeanProperty property)
extractBindingOverrides
public Map<String,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(IMarkupWriter writer,
IRequestCycle cycle)
- All low level BeanForm components expect to be able to retrieve
their containing BeanForm during the render phase.
- Overrides:
renderComponent
in class BaseComponent
- See Also:
BeanFormComponent.getBeanForm()
trigger
public void trigger(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 IDirect
- See Also:
BeanFormComponent.getBeanForm()
,
IDirect.trigger(IRequestCycle)
init
protected void init()
cleanup
protected void cleanup()
Copyright © 2006 Daniel Gredler. All Rights Reserved.