|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.cs.ui.view.renderer.attribute.BaseRenderer
public abstract class BaseRenderer
Base class of both attribute data and data type renderers. This class assumes it has been initialized properly by first setting the RenderDataContext.
| Constructor Summary | |
|---|---|
BaseRenderer()
|
|
| Method Summary | |
|---|---|
protected CoreOutputText |
createLabel(java.lang.Object value,
java.lang.String toolTip)
Creates a label |
protected java.util.List<UIComponent> |
createList(UIComponent component)
Creates and Adds a UI component member to the list of UI |
protected CoreOutputText |
createText()
This method will create a text UI component |
protected CoreOutputText |
createText(java.lang.Object value)
This method will create a text UI component |
protected static java.lang.String |
formatId(java.lang.String input)
Generates a formated UI component unique identifier |
protected java.lang.String |
generateID(int index)
Generates a formated input component unique identifier. |
protected java.lang.String |
generateLabelID()
Generates a label identifier. |
RenderDataContext |
getContext()
This method will get retrieve the initilized render data context |
protected boolean |
isMultiValued(AttributeDef attributeDef)
Determines if attribute definition is a Multi Valued Data Object |
protected boolean |
isMultiValueOrdered(AttributeDef attributeDef)
Determines if attribute definition is a Multi Valued Ordered Data Object |
protected boolean |
isSingleValued(AttributeDef attributeDef)
Determines if attribute definition is a Single Valued data Object |
void |
setContext(RenderDataContext renderContex)
This method will set the render data context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseRenderer()
| Method Detail |
|---|
public RenderDataContext getContext()
public void setContext(RenderDataContext renderContex)
renderContex - new render data context.protected CoreOutputText createText()
protected CoreOutputText createText(java.lang.Object value)
value - text UI object
protected CoreOutputText createLabel(java.lang.Object value,
java.lang.String toolTip)
value - used to display as text value.toolTip - used to display as toolTip.
protected java.util.List<UIComponent> createList(UIComponent component)
UIComponent - data object to add to the list
protected static java.lang.String formatId(java.lang.String input)
input - input id.
protected java.lang.String generateID(int index)
index - position of rendering component in the asset.
protected java.lang.String generateLabelID()
protected boolean isMultiValued(AttributeDef attributeDef)
attributeDef - rendering attribute definition input.
protected boolean isMultiValueOrdered(AttributeDef attributeDef)
attributeDef - rendering attribute definition input.
protected boolean isSingleValued(AttributeDef attributeDef)
AttributeDef - attributeDefinput
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||