|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.format.FormattingUtils
public class FormattingUtils
| Constructor Summary | |
|---|---|
FormattingUtils()
|
|
| Method Summary | |
|---|---|
static Formatter |
createDefaultFormatter(MDEXAttribute.PropertyType attributeType)
Return the default formatter for the specified attribute type |
static FormatSettings |
createFormatSettings(MDEXAttribute.PropertyType attributeType,
java.lang.String jsonSettings)
Create a FormatSettings instance from a json string or, if failed, return null. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
DataSource dataSource,
java.lang.String viewKey,
java.lang.String attributeKey)
Create formatter from the settings in the specified view of the given data source. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
DataSource dataSource,
java.lang.String viewKey,
java.lang.String attributeKey,
java.lang.String jsonSettings)
Creates a formatter with the json string given, if it fails then try to create one from the settings in the view. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType,
java.util.Map<java.lang.String,java.lang.Object> settings)
Create a formatter instance from a map of settings, if failed, return the cached default formatter for the attribute type. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType,
java.lang.String jsonSettings)
Create a formatter instance from a json string or, if failed, return the cached default formatter for the attribute type. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey)
Create formatter from the settings in the specified view. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey,
java.util.Map<java.lang.String,java.lang.Object> settings)
Creates a formatter with the json string given, if it fails then try to create one from the settings in the view. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey,
java.lang.String jsonSettings)
Creates a formatter with the json string given, if it fails then try to create one from the settings in the view. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
java.lang.String attributeKey)
Create formatter for the attribute specified. |
static Formatter |
createFormatter(javax.portlet.PortletRequest request,
java.lang.String attributeKey,
java.lang.String jsonSettings)
Creates a formatter for the specified attribute with the specified settings. |
static java.lang.String |
formatterPanelResources(javax.portlet.PortletRequest request)
Return the extra resources required by the panel in the page. |
static java.lang.String |
formatValue(Formatter formatter,
java.lang.String text)
return formatted value as a String. |
static Formatter |
getCachedDefaultFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType)
Get the cached default formatter for the attribute type from the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormattingUtils()
| Method Detail |
|---|
public static Formatter createFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType,
java.lang.String jsonSettings)
request - attributeType - jsonSettings -
public static FormatSettings createFormatSettings(MDEXAttribute.PropertyType attributeType,
java.lang.String jsonSettings)
attributeType - jsonSettings -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType,
java.util.Map<java.lang.String,java.lang.Object> settings)
request - settings - attributeType -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
DataSource dataSource,
java.lang.String viewKey,
java.lang.String attributeKey,
java.lang.String jsonSettings)
request - dataSource - viewKey - attributeKey - jsonSettings -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey,
java.util.Map<java.lang.String,java.lang.Object> settings)
request - semanticView - attributeKey - dataType - settings -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey,
java.lang.String jsonSettings)
request - semanticView - attributeKey - jsonSettings -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
DataSource dataSource,
java.lang.String viewKey,
java.lang.String attributeKey)
request - dataSource - viewKey - attributeKey -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
SemanticView semanticView,
java.lang.String attributeKey)
request - semanticView - attributeKey - dataType -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
java.lang.String attributeKey)
request - attributeKey -
public static Formatter createFormatter(javax.portlet.PortletRequest request,
java.lang.String attributeKey,
java.lang.String jsonSettings)
createFormatter(PortletRequest,SemanticView,String,String),
but it first looks up the default view in the DataSource.
request - attributeKey - jsonSettings -
public static java.lang.String formatValue(Formatter formatter,
java.lang.String text)
formatter - text -
public static java.lang.String formatterPanelResources(javax.portlet.PortletRequest request)
public static Formatter getCachedDefaultFormatter(javax.portlet.PortletRequest request,
MDEXAttribute.PropertyType attributeType)
request - locale -
public static Formatter createDefaultFormatter(MDEXAttribute.PropertyType attributeType)
attributeType -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||