P
- The property type.E
- The entity type.public final class DefaultReadOnlyOutput<P,E> extends Object implements FormPropertyRenderStrategy<P,E>
Modifier and Type | Class and Description |
---|---|
static class |
DefaultReadOnlyOutput.FactoryImpl
A factory.
|
FormPropertyRenderStrategy.Factory
Modifier | Constructor and Description |
---|---|
protected |
DefaultReadOnlyOutput()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addValue(javax.faces.component.UIOutput input,
Deque<org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?>> prefixes,
org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Sets a value.
|
void |
build(org.lunarray.model.descriptor.model.property.PropertyDescriptor<P,E> property,
RenderContext context)
Build for a normal descriptor.
|
void |
buildLabel(org.lunarray.model.descriptor.presentation.PresentationPropertyDescriptor<?,?> property,
RenderContext context,
Locale locale)
Build the label.
|
void |
buildLabel(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Build the label.
|
void |
buildMessages(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property,
RenderContext context)
Build the messages.
|
javax.faces.component.UIComponent |
getInput()
Gets the input.
|
javax.faces.component.UIOutput |
getLabel()
Gets the label.
|
javax.faces.component.UIMessage |
getMessages()
Gets the messages.
|
public void build(org.lunarray.model.descriptor.model.property.PropertyDescriptor<P,E> property, RenderContext context)
build
in interface FormPropertyRenderStrategy<P,E>
property
- The property. May not be null.context
- The context. May not be null.public void buildLabel(org.lunarray.model.descriptor.presentation.PresentationPropertyDescriptor<?,?> property, RenderContext context, Locale locale)
property
- The property.context
- The render context.locale
- The locale.public void buildLabel(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
property
- The property.context
- The render context.public void buildMessages(org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
property
- The property.context
- The render context.public javax.faces.component.UIComponent getInput()
getInput
in interface FormPropertyRenderStrategy<P,E>
public javax.faces.component.UIOutput getLabel()
getLabel
in interface FormPropertyRenderStrategy<P,E>
public javax.faces.component.UIMessage getMessages()
getMessages
in interface FormPropertyRenderStrategy<P,E>
protected void addValue(javax.faces.component.UIOutput input, Deque<org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?>> prefixes, org.lunarray.model.descriptor.model.property.PropertyDescriptor<?,?> property, RenderContext context)
input
- The input.prefixes
- The variable prefixes.property
- The property.context
- The faces context.Copyright © 2010–2014 Lunar Ray. All rights reserved.