|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPortionPainter
This is the abstract Base Class for all Portion Painter. A Portion Painter has no own Painter Context. It uses the Painter Context of the Parent Control
Field Summary | |
private ControlPainter |
ctrlPainter
The Control Painter |
Constructor Summary | |
ControlPortionPainter()
Creates a new ViewPainter |
Method Summary | |
java.lang.String |
attr(java.lang.Object raw)
Converts a String to a valid HTML Attribute |
java.lang.String |
attr(java.lang.Object raw,
boolean filter)
Converts a String to a valid HTML Attribute |
java.lang.String |
attr(java.lang.Object raw,
boolean filter,
int maxlength)
Converts a String to a valid HTML Attribute |
protected ActionPainter |
createActionPainter(ControlActionDef action)
Creates an ActionPainter. |
protected ActionPainter |
createActionPainter(ControlActionDef action,
java.lang.String actionName)
Creates an ActionPainter. |
protected org.apache.ecs.html.IMG |
createImage(ImageModel image)
Creates an HTML image Tag for the specified image model |
protected org.apache.ecs.html.IMG |
createImage(java.lang.String resourceId)
Retrieves an image for the specified Id |
protected org.apache.ecs.html.IMG |
createImage(java.lang.String resourceId,
java.lang.Object param)
Retrieves an image for the specified Id |
protected org.apache.ecs.ConcreteElement |
createSpacer(int height,
int width)
Creates a spacer image with the given dimension |
protected Color |
getColor(java.lang.String resourceId)
Retrieves an color for the specified Id |
protected ControlPainter |
getControlPainter()
|
protected java.lang.String |
getElementClass(int type)
The method returns the HTML style class required for a list or treelist control. |
protected java.lang.String |
getFrameworkString(java.lang.String resourceId)
Returns a framework string resource |
protected java.lang.String |
getFrameworkString(java.lang.String resourceId,
java.lang.Object[] arguments)
Retrieves an framework String for the specified Id |
protected ImageModel |
getImage(java.lang.String resourceId)
Retrieves an image for the specified Id |
protected ImageModel |
getImage(java.lang.String resourceId,
java.lang.Object param)
Retrieves an image for the specified Id |
protected java.lang.String |
getImageSrc(java.lang.String resourceId)
Retrieves an image for the specified Id |
protected java.lang.String |
getImageSrc(java.lang.String resourceId,
java.lang.Object param)
Retrieves an image for the specified Id |
protected java.util.Locale |
getLocale()
Retrieves the current Locale |
protected javax.servlet.jsp.PageContext |
getPageContext()
Returns the JSP page context |
protected PainterContext |
getPainterContext()
|
protected Principal |
getPrincipal()
|
protected java.util.Locale |
getSafeLocale()
Retrieves the current Locale or the system locale when localization is not turned on |
protected java.lang.String |
html(java.lang.Object raw)
Converts a String to an equivalent HTML-String |
protected java.lang.String |
html(java.lang.Object raw,
boolean filter)
Converts a String to an equivalent HTML-String |
protected java.lang.String |
html(java.lang.Object raw,
boolean filter,
int maxlength)
Converts a String to an equivalent HTML-String |
protected boolean |
isRunAtClient()
This Method checks if the control should run on the client |
protected java.lang.String |
localize(java.lang.String keyOrString)
Localizes a string depending on the localization settings of the Painter context |
protected java.lang.String |
removeHtml(java.lang.Object html)
Removes all HTML formatting from the given HTML-String |
protected java.lang.String |
removeHtml(java.lang.Object html,
boolean filter)
Removes all HTML formatting from the given HTML-String depending on the filter setting |
void |
setControlPainter(ControlPainter ctrlPainter)
Sets the ControlPainter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ControlPainter ctrlPainter
Constructor Detail |
public ControlPortionPainter()
Method Detail |
public void setControlPainter(ControlPainter ctrlPainter)
ctrlPainter
- The Control Painterprotected ControlPainter getControlPainter()
protected PainterContext getPainterContext()
protected boolean isRunAtClient()
true
when the component should run on the
clientprotected java.util.Locale getLocale()
protected java.util.Locale getSafeLocale()
protected java.lang.String localize(java.lang.String keyOrString)
keyOrString
- String Literal or Resource Key
protected Principal getPrincipal()
protected ActionPainter createActionPainter(ControlActionDef action, java.lang.String actionName)
action
- ControlActionactionName
- Additional Action Name
protected Color getColor(java.lang.String resourceId)
resourceId
- Color Code
null
protected org.apache.ecs.html.IMG createImage(java.lang.String resourceId)
resourceId
- Image Code
null
protected org.apache.ecs.html.IMG createImage(ImageModel image)
image
- Image
null
protected org.apache.ecs.html.IMG createImage(java.lang.String resourceId, java.lang.Object param)
resourceId
- Image Codeparam
- Markup Parameter
null
protected java.lang.String getImageSrc(java.lang.String resourceId)
resourceId
- Image Code
protected java.lang.String getImageSrc(java.lang.String resourceId, java.lang.Object param)
resourceId
- Image Codeparam
- Markup Parameter
protected ImageModel getImage(java.lang.String resourceId)
resourceId
- Image Code
null
protected ImageModel getImage(java.lang.String resourceId, java.lang.Object param)
resourceId
- Image Codeparam
- Markup Parameter
protected org.apache.ecs.ConcreteElement createSpacer(int height, int width)
height
- spacer heightwidth
- spacer width
protected java.lang.String removeHtml(java.lang.Object html)
html
- Object in HTML format
protected java.lang.String removeHtml(java.lang.Object html, boolean filter)
html
- Object in HTML formatfilter
- Filter
protected java.lang.String html(java.lang.Object raw)
raw
- Object
protected java.lang.String html(java.lang.Object raw, boolean filter)
raw
- Objectfilter
- Filter
protected java.lang.String html(java.lang.Object raw, boolean filter, int maxlength)
raw
- Objectfilter
- Filtermaxlength
- The maximum number of visible characters
public java.lang.String attr(java.lang.Object raw)
raw
- Object
public java.lang.String attr(java.lang.Object raw, boolean filter)
raw
- Objectfilter
- Filter
public java.lang.String attr(java.lang.Object raw, boolean filter, int maxlength)
raw
- Objectfilter
- Filtermaxlength
- The maximum number of visible characters
protected javax.servlet.jsp.PageContext getPageContext()
protected java.lang.String getFrameworkString(java.lang.String resourceId)
resourceId
- Id of the resource/key
protected java.lang.String getFrameworkString(java.lang.String resourceId, java.lang.Object[] arguments)
resourceId
- The resource idarguments
- MessageFormat arguments
protected ActionPainter createActionPainter(ControlActionDef action)
action
- ControlAction
protected java.lang.String getElementClass(int type)
type
- The required style class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |