|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.cs.ui.view.renderer.AssetRenderUtil
public class AssetRenderUtil
This class is a generic asset utility class to provide operation helper methods to create, display and render asset attributes in JSF UI componets.
Field Summary | |
---|---|
static java.lang.String |
CONTENT
|
static java.lang.String |
MARKETING
|
static java.lang.String |
META_DATA
|
static java.lang.String |
RELATIONS
|
Constructor Summary | |
---|---|
AssetRenderUtil()
|
Method Summary | |
---|---|
static void |
addStandardConverters(ValueHolder component,
AttributeDef def)
Add all neccessary converters for component based upon definition. |
static void |
addValueBinding(UIComponent component,
AttributeDataBinding bindingPattern,
int index)
Used to create standard binding for component based upon current asset data in session |
static RenderedComponents |
createRenderComponents(java.lang.String label,
UIComponent controls,
java.lang.String toolTip,
java.lang.String labelStyle)
Basic Implementation to create and render an attribute. |
static RenderedComponents |
createRenderedComponents(java.lang.String label,
java.util.List<UIComponent> controls,
java.lang.String toolTip,
java.lang.String labelStyle)
Basic implementation delegated out from attribute renderers for outside classes to use. |
static UIComponent |
displayAsset(AssetId assetID,
java.lang.String bindingPattern)
Properly display an asset, possibly as a link if appropriate. |
static UIComponent |
displayAsset(AssetId assetID,
java.lang.String bindingPattern,
java.lang.String attrId)
Properly display an asset, possibly as a link if appropriate |
static UIComponent |
displayAssetWithoutLink(AssetId assetID,
java.lang.String bindingPattern)
Properly display an asset, with any link |
static AssetEditPane |
getDefaultAssetEditPane(Asset asset)
This method returns the default asset edit pane. |
static java.lang.String |
getLabelText(java.lang.Object value)
Adds a colon to the label |
static void |
placeControlsAndLabel(RenderedComponents renderedComponents)
Places the controls and label in two columns.If the renderers need a different layout they can overwrite it. |
static HtmlRowLayout |
renderAttribute(java.lang.String label,
UIComponent controls,
java.lang.String toolTip,
java.lang.String labelStyle)
Basic Implementation to render an attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTENT
public static final java.lang.String META_DATA
public static final java.lang.String RELATIONS
public static final java.lang.String MARKETING
Constructor Detail |
---|
public AssetRenderUtil()
Method Detail |
---|
public static UIComponent displayAsset(AssetId assetID, java.lang.String bindingPattern) throws UIException
assetID
- bindingPattern
-
UIException
public static UIComponent displayAsset(AssetId assetID, java.lang.String bindingPattern, java.lang.String attrId) throws UIException
assetID
- bindingPattern
- value bindingattrId
- attribute identfier
UIException
public static UIComponent displayAssetWithoutLink(AssetId assetID, java.lang.String bindingPattern) throws UIException
assetID
- the Asset IDbindingPattern
- value binding
UIException
public static HtmlRowLayout renderAttribute(java.lang.String label, UIComponent controls, java.lang.String toolTip, java.lang.String labelStyle) throws UIException
label
- to displaycontrols
- the actual data replresentationtoolTip
- tool tip to pop up in the label onMouseoverlabelStyle
- style used (I.E Changes for required fields)
UIException
public static RenderedComponents createRenderComponents(java.lang.String label, UIComponent controls, java.lang.String toolTip, java.lang.String labelStyle) throws UIException
label
- to displaycontrols
- the actual data replresentationtoolTip
- tool tip to pop up in the label onMouseoverlabelStyle
- style used (I.E Changes for required fields)
UIException
public static RenderedComponents createRenderedComponents(java.lang.String label, java.util.List<UIComponent> controls, java.lang.String toolTip, java.lang.String labelStyle) throws UIException
placeControlsAndLabel
method.
label
- to displaycontrols
- the actual data replresentationtoolTip
- tool tip to pop up in the label onMouseoverlabelStyle
- style used (I.E Changes for required fields)
UIException
public static void placeControlsAndLabel(RenderedComponents renderedComponents)
renderedComponents
- the set of componetes for label and controlspublic static java.lang.String getLabelText(java.lang.Object value)
value
-
public static void addStandardConverters(ValueHolder component, AttributeDef def)
component
- ValueHolder component used to add converters to.
list of components created in createComponentsdef
- attribute defintionpublic static void addValueBinding(UIComponent component, AttributeDataBinding bindingPattern, int index)
component
- to be boundbindingPattern
- of attributeindex
- of datapublic static AssetEditPane getDefaultAssetEditPane(Asset asset)
asset
- the required asset for edit pane
AssetAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |