com.fatwire.cs.ui.view.renderer.attribute
Class BasicDataTemplate
java.lang.Object
com.fatwire.cs.ui.view.renderer.attribute.BaseRenderer
com.fatwire.cs.ui.view.renderer.attribute.BasicDataRenderer
com.fatwire.cs.ui.view.renderer.attribute.BasicDataTemplate
- All Implemented Interfaces:
- AdvancedAttributeRenderer, AttributeDataRenderer
- Direct Known Subclasses:
- BasicMultiDataTemplate
public abstract class BasicDataTemplate
- extends BasicDataRenderer
Field Summary |
protected int |
_index
|
Method Summary |
protected abstract java.util.List<UIComponent> |
createComponents()
Builds a component list according to the properties specified in the
UIAttributeEditor |
protected PreSaveProcess |
createPreSave(AttributeData atData,
AttributeDef def)
Used if a presave process is necessary. |
protected java.lang.String |
generateID()
|
int |
getDataIndex()
Return the index that this is currently iterating through. |
protected boolean |
iterateData(AttributeDef def)
Return true if all data should should be iterated through when creating
rows |
protected java.util.List<UIComponent> |
renderData(RenderDataContext renderContext)
Modifeid: July 02, 2009
Reason: PR#20037 Dash-UI Fixed the rapid decent throws an exception and DASH interface crash
when user clicks on Add new button on ImagePicker multivalued attributes
Modified: Aug 27, 2010
Reason: PR#20037 Dash-UI Fixed the rapid decent throws an exception and DASH interface crash
when user clicks on Add new button on ImagePicker multivalued attributes
If multivalued and its asset reference item then we will
attach and add a "create new asset buttton"for Asset will |
protected abstract void |
validateDataType(AttributeDef def)
Check that this defintion is valid combination for this renderer. |
Methods inherited from class com.fatwire.cs.ui.view.renderer.attribute.BasicDataRenderer |
addNewField, createAddNew, createAddSelectedItems, createAttributeButtons, createCreateNew, createDownButton, createRemoveButton, createUpButton, getLabelText, getNoValueText, isAddNewButtonEnabled, isAddSelectedEnabled, isCreateNewEnabled, isEmpty, isRemoveButtonEnabled, isUpDownButtonEnabled, moveDown, moveUp, placeControlsAndLabel, removeItem, render |
Methods inherited from class com.fatwire.cs.ui.view.renderer.attribute.BaseRenderer |
createLabel, createList, createText, createText, formatId, generateID, generateLabelID, getContext, isMultiValued, isMultiValueOrdered, isSingleValued, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_index
protected int _index
BasicDataTemplate
public BasicDataTemplate()
renderData
protected java.util.List<UIComponent> renderData(RenderDataContext renderContext)
throws UIException
- Modifeid: July 02, 2009
Reason: PR#20037 Dash-UI Fixed the rapid decent throws an exception and DASH interface crash
when user clicks on Add new button on ImagePicker multivalued attributes
Modified: Aug 27, 2010
Reason: PR#20037 Dash-UI Fixed the rapid decent throws an exception and DASH interface crash
when user clicks on Add new button on ImagePicker multivalued attributes
If multivalued and its asset reference item then we will
attach and add a "create new asset buttton"for Asset will
- Overrides:
renderData
in class BasicDataRenderer
- Parameters:
atData
- data of the attributedef
- Attribute definitionbinding
- binding information for the attribute
- Returns:
- List of JSF components that will be rendered as Edit mode.
- Throws:
UIException
createComponents
protected abstract java.util.List<UIComponent> createComponents()
throws UIException
- Builds a component list according to the properties specified in the
UIAttributeEditor
- Returns:
- List or null if editor does not wish to display any data
- Throws:
UIException
validateDataType
protected abstract void validateDataType(AttributeDef def)
throws UIException
- Check that this defintion is valid combination for this renderer.
- Parameters:
def
- of attribute
- Throws:
UIException
- thrown if incorrect combination
createPreSave
protected PreSaveProcess createPreSave(AttributeData atData,
AttributeDef def)
- Used if a presave process is necessary.
- Parameters:
atData
- def
-
- Returns:
iterateData
protected boolean iterateData(AttributeDef def)
- Return true if all data should should be iterated through when creating
rows
- Parameters:
def
-
- Returns:
getDataIndex
public int getDataIndex()
- Return the index that this is currently iterating through. -1 if not.
- Returns:
generateID
protected java.lang.String generateID()
Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.