|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.painter.def.col.ColumnPainterBase
Base Class for column painters
| Constructor Summary | |
ColumnPainterBase()
Constructor |
|
| Method Summary | |
protected void |
addElement(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx,
ImageModel image,
org.apache.ecs.ConcreteElement content)
Helper to add a content with an optional image to the cell element |
void |
applyDesignRules(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
Applies all matching design rules to the cell |
protected org.apache.ecs.ConcreteElement |
applyStyle(org.apache.ecs.ConcreteElement element,
ColumnDesignModel column)
Applies the column styles to the HTML element |
protected org.apache.ecs.ConcreteElement |
applyStyle(org.apache.ecs.ConcreteElement element,
ColumnDesignModel column,
boolean addHandlers)
Applies the column styles to the HTML element |
protected org.apache.ecs.ConcreteElement |
createCheckAllButton(PainterContext ctx,
ColumnDesignModel column,
SelectMode mode)
Creates the check all button |
protected org.apache.ecs.ConcreteElement |
createCheckColumnButton(PainterContext ctx,
ColumnDesignModel column)
Creates the check all button |
protected java.util.Collection |
createHeaderButtons(PainterContext ctx,
ColumnDesignModel column)
Creates the buttons for the column header |
protected org.apache.ecs.ConcreteElement |
createUncheckAllButton(PainterContext ctx,
ColumnDesignModel column,
SelectMode mode)
Creates the uncheck all button |
protected org.apache.ecs.ConcreteElement |
createUncheckColumnButton(PainterContext ctx,
ColumnDesignModel column)
Creates the uncheck all button |
protected java.lang.String |
getAnchor(ColumnDesignModel column,
LineIterator iter)
Returns the Anchor Attribute which should be included in a HyperLink |
protected static java.lang.String |
getBodyContent(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
Try to find a previously registered JSP Body for this row bean |
protected ImageModel |
getHeaderImage(ColumnHeaderDesignModel header)
Returns the Image of a column header |
protected java.lang.String |
getLinkName(ColumnDesignModel column,
LineIterator iter)
Returns the Anchor name Attribute which should be included in a HyperLink |
protected java.lang.String |
getTarget(ColumnDesignModel column,
LineIterator iter)
Returns the Target Attribute which should be included in a HyperLink |
protected java.lang.String |
getTooltip(CellPainterContext cpctx)
Returns the localized and HTML encoded Tooltip Attribute which should be used for the row |
protected java.lang.String |
getTooltip(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
Deprecated. use getTooltip(CellPainterContext) instead |
protected boolean |
isDisabled(CellPainterContext cpctx)
Checks if the column or cell is disabled or not |
protected boolean |
isEditable(CellPainterContext cpctx)
Checks if the column or cell is editable or not |
protected boolean |
isEditable(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
Deprecated. use isEditable(CellPainterContext) instead |
void |
paintCell(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
Paints a single Cell |
void |
paintCell(org.apache.ecs.html.TD cellElement,
PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
Deprecated. please use or overwrite paintCell(TD, CellPainterContext) |
protected void |
paintEmptyCell(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
The column painter will call this method to render an empty cell |
void |
paintHeader(org.apache.ecs.html.TD headerElement,
CellPainterContext cpctx)
Paints the column header |
void |
paintHeader(org.apache.ecs.html.TD headerElement,
PainterContext ctx,
ColumnDesignModel column)
Deprecated. please use or overwrite paintHeader(TD, CellPainterContext) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColumnPainterBase()
| Method Detail |
public void applyDesignRules(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
throws java.lang.Exception
ColumnPainter
applyDesignRules in interface ColumnPaintercellElement - the cell elementcpctx - the cell painter context
java.lang.Exception - When an error occursColumnPainter.applyDesignRules(org.apache.ecs.html.TD, com.cc.framework.ui.painter.def.CellPainterContext)
public void paintCell(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
throws java.lang.Exception
ColumnPainter
paintCell in interface ColumnPaintercellElement - The cell elementcpctx - the cell painter context
java.lang.Exception - When an error occursColumnPainter.paintCell(
org.apache.ecs.html.TD,
com.cc.framework.ui.painter.def.CellPainterContext)
protected void paintEmptyCell(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx)
throws java.lang.Exception
cellElement - The cell elementcpctx - the cell painter context
java.lang.Exception - When an error occurs
public void paintHeader(org.apache.ecs.html.TD headerElement,
CellPainterContext cpctx)
throws java.lang.Exception
ColumnPainter
paintHeader in interface ColumnPainterheaderElement - The header cellcpctx - the cell painter context
java.lang.Exception - When an error occursColumnPainter.paintHeader(
org.apache.ecs.html.TD,
com.cc.framework.ui.painter.def.CellPainterContext)
public final void paintCell(org.apache.ecs.html.TD cellElement,
PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
throws java.lang.Exception
cellElement - The cell elementctx - the painter contextcolumn - the columns design modeliter - the row iterator positioned on the current row bean
java.lang.Exception - When an error occurs
protected static java.lang.String getBodyContent(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
ctx - the painter contextcolumn - the columns design modeliter - the iterator with the current row bean
null
protected org.apache.ecs.ConcreteElement applyStyle(org.apache.ecs.ConcreteElement element,
ColumnDesignModel column)
element - HTML elementcolumn - Column
protected org.apache.ecs.ConcreteElement applyStyle(org.apache.ecs.ConcreteElement element,
ColumnDesignModel column,
boolean addHandlers)
element - HTML elementcolumn - ColumnaddHandlers - This flag indicates that all script handlers should be added
to the element
protected java.util.Collection createHeaderButtons(PainterContext ctx,
ColumnDesignModel column)
ctx - the painter contextcolumn - the columns design model
protected ImageModel getHeaderImage(ColumnHeaderDesignModel header)
header - the header design model
public final void paintHeader(org.apache.ecs.html.TD headerElement,
PainterContext ctx,
ColumnDesignModel column)
throws java.lang.Exception
headerElement - The header elementctx - the painter contextcolumn - the columns design model
java.lang.Exception - When an error occurs
protected org.apache.ecs.ConcreteElement createCheckAllButton(PainterContext ctx,
ColumnDesignModel column,
SelectMode mode)
ctx - the painter contextcolumn - the columns design modelmode - the select mode of the list
protected org.apache.ecs.ConcreteElement createUncheckAllButton(PainterContext ctx,
ColumnDesignModel column,
SelectMode mode)
ctx - the painter contextcolumn - the columns design modelmode - the select mode of the list
protected org.apache.ecs.ConcreteElement createCheckColumnButton(PainterContext ctx,
ColumnDesignModel column)
ctx - the painter contextcolumn - the columns design model
protected org.apache.ecs.ConcreteElement createUncheckColumnButton(PainterContext ctx,
ColumnDesignModel column)
ctx - the painter contextcolumn - the columns design model
protected java.lang.String getTarget(ColumnDesignModel column,
LineIterator iter)
column - ColumnDesignModeliter - LineIterator
protected java.lang.String getAnchor(ColumnDesignModel column,
LineIterator iter)
column - ColumnDesignModeliter - LineIterator
protected java.lang.String getLinkName(ColumnDesignModel column,
LineIterator iter)
column - ColumnDesignModeliter - LineIterator
protected java.lang.String getTooltip(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
ctx - the painter contextcolumn - ColumnDesignModeliter - LineIterator
protected java.lang.String getTooltip(CellPainterContext cpctx)
cpctx - the cell painter context
protected boolean isEditable(PainterContext ctx,
ColumnDesignModel column,
LineIterator iter)
ctx - the painter contextcolumn - The columniter - the iterator with the current row bean
true if the cell is editableprotected boolean isEditable(CellPainterContext cpctx)
cpctx - the cell painter context
true if the cell is editableprotected boolean isDisabled(CellPainterContext cpctx)
cpctx - the cell painter context
true if the cell is editable
protected void addElement(org.apache.ecs.html.TD cellElement,
CellPainterContext cpctx,
ImageModel image,
org.apache.ecs.ConcreteElement content)
throws java.lang.Exception
cellElement - the cell elementcpctx - the cell painter contextimage - optional imagecontent - the cells content
java.lang.Exception - when an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||