|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This adapter interface contains all methods a host framework (like struts) must provide for the common-controls framework
Method Summary | |
void |
addTransactionToken(javax.servlet.jsp.PageContext pageContext,
Hyperlink link)
Adds the a transaction token (if any) to the given Parameter List. |
java.lang.String |
applyServletMapping(java.lang.String url)
Applies the front controllers servlet mapping to the given URL |
ActionPainter |
createActionPainter(PainterContext ctx,
ControlAction action)
Creates an ActionPainter. |
java.lang.String |
getActionMappingURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String action)
This Method maps an Action identifier to an URL |
java.lang.String |
getControlAction(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.TagSupport taghandler)
Gets the default Action which should be used to forward requests from this control. |
MessageDataModel |
getMessages(javax.servlet.jsp.PageContext pageContext,
Severity severity)
Returns the Framework Messages |
boolean |
hasMessages(javax.servlet.jsp.PageContext pageContext,
Severity severity,
java.lang.String property)
Checks for framework messages |
java.util.Locale |
localeFromName(HttpContext context,
java.lang.String localeName)
Gets the Locale Object from a Locale Name |
java.util.Locale |
localeFromName(javax.servlet.jsp.PageContext pageContext,
java.lang.String localeName)
Gets the Locale Object from a Locale Name |
java.lang.String |
localizeKey(HttpContext context,
java.lang.String resourceKey,
java.util.Locale locale,
boolean returnNull)
Localizes a string depending on the localization settings of the Painter context. |
java.lang.String |
localizeKey(javax.servlet.jsp.PageContext pageContext,
java.lang.String resourceKey,
java.util.Locale locale,
boolean returnNull)
Localizes a string depending on the localization settings of the Painter context. |
java.lang.Object |
lookupBean(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String property,
HttpScope scope)
Lookup a Javabean for use in a JSP tag handler |
Method Detail |
public java.util.Locale localeFromName(javax.servlet.jsp.PageContext pageContext, java.lang.String localeName)
pageContext
- JSP Page ContextlocaleName
- The Name
null
public java.util.Locale localeFromName(HttpContext context, java.lang.String localeName)
context
- JSP Page ContextlocaleName
- The Name
null
public java.lang.String localizeKey(javax.servlet.jsp.PageContext pageContext, java.lang.String resourceKey, java.util.Locale locale, boolean returnNull)
pageContext
- JSP Page ContextresourceKey
- The resource key.locale
- Locale or null
returnNull
- controls whether to return null or a not present indicator
public java.lang.String localizeKey(HttpContext context, java.lang.String resourceKey, java.util.Locale locale, boolean returnNull)
context
- JSP Page ContextresourceKey
- The resource key.locale
- Locale or null
returnNull
- controls whether to return null or a not present indicator
public boolean hasMessages(javax.servlet.jsp.PageContext pageContext, Severity severity, java.lang.String property)
pageContext
- JSP Page Contextseverity
- Severityproperty
- Property name or null
public MessageDataModel getMessages(javax.servlet.jsp.PageContext pageContext, Severity severity) throws java.lang.Exception
pageContext
- JSP Page Contextseverity
- Severity
java.lang.Exception
- If an error occurs while loading the Message Listpublic java.lang.String getActionMappingURL(javax.servlet.jsp.PageContext pageContext, java.lang.String action)
pageContext
- PageContextaction
- Action
public java.lang.String applyServletMapping(java.lang.String url)
url
- the URL to apply the servlet mapping to (e.g. "/main")
public void addTransactionToken(javax.servlet.jsp.PageContext pageContext, Hyperlink link)
pageContext
- Search the context's scopes for the resources.link
- Hyperlinkpublic java.lang.String getControlAction(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport taghandler)
pageContext
- JSP Page Contexttaghandler
- The Controls JSP-Tag
null
public java.lang.Object lookupBean(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String property, HttpScope scope) throws java.lang.Exception
pageContext
- JSP page contextname
- Name of the beanproperty
- Name of a beans propertyscope
- the scope where the bean should be located
null
java.lang.Exception
- is thrown in case of an errorpublic ActionPainter createActionPainter(PainterContext ctx, ControlAction action)
ctx
- The Painter Contextaction
- ControlAction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |