P
- The property type.E
- The entity type.public abstract class AbstractRenderStrategy<P,E> extends Object implements FormPropertyRenderStrategy<P,E>
FormPropertyRenderStrategy.Factory
Constructor and Description |
---|
AbstractRenderStrategy()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addValue(javax.faces.component.UIInput input,
org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Sets a value to the input.
|
void |
buildLabel(org.lunarray.model.descriptor.presentation.PresentationPropertyDescriptor<?,?> property,
RenderContext context)
Build a label.
|
void |
buildLabel(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Build a label.
|
void |
buildMessages(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Build the massages.
|
protected abstract javax.faces.component.UIInput |
createInput(org.lunarray.model.descriptor.model.property.PropertyDescriptor<P,E> property,
RenderContext context)
Create the input element.
|
protected String |
createInputName(RenderContext context)
Creates the input name.
|
protected String |
createLabelName(RenderContext context)
Creates the label name.
|
javax.faces.component.UIInput |
getInput()
Gets the input.
|
javax.faces.component.UIOutput |
getLabel()
Gets the label.
|
javax.faces.component.UIComponent |
getMessages()
Gets the messages.
|
protected void |
setInput(javax.faces.component.UIInput input)
Sets a new value for the input field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
public final void buildLabel(org.lunarray.model.descriptor.presentation.PresentationPropertyDescriptor<?,?> property, RenderContext context)
property
- The property. May not be null.context
- The jsf context. May not be null.public final void buildLabel(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
property
- The property. May not be null.context
- The jsf context. May not be null.public final void buildMessages(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
property
- The property.context
- The jsf context. May not be null.public final javax.faces.component.UIInput getInput()
getInput
in interface FormPropertyRenderStrategy<P,E>
public final javax.faces.component.UIOutput getLabel()
getLabel
in interface FormPropertyRenderStrategy<P,E>
public final javax.faces.component.UIComponent getMessages()
getMessages
in interface FormPropertyRenderStrategy<P,E>
protected final void addValue(javax.faces.component.UIInput input, org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
input
- The input to set the value to. May not be null.property
- The property. May not be null.context
- The jsf context. May not be null.protected abstract javax.faces.component.UIInput createInput(org.lunarray.model.descriptor.model.property.PropertyDescriptor<P,E> property, RenderContext context)
property
- The property.context
- The render context.protected final String createInputName(RenderContext context)
context
- The context. May not be null.protected final String createLabelName(RenderContext context)
context
- The context. May not be null.protected final void setInput(javax.faces.component.UIInput input)
input
- The new value for the input field.Copyright © 2010–2014 Lunar Ray. All rights reserved.