|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.imp.PainterContextWrapper com.cc.framework.ui.painter.def.CellPainterContext
Painter context for cell elements. The purpose of this class is to reduce the number of arguments that have to be passed to the rendering methods. It also allows us to pass additional information to the column painters without breaking the interface.
Field Summary | |
private ColumnDesignModel |
column
The current column |
private int |
columnIndex
the Index for the current column |
private int |
columns
The number of columns |
private JoinMode |
joinMode
This flag indicates a joined column |
private LineIterator |
lineIterator
The line iterator with the current line |
private int |
pageIndex
the index of the current page |
private ColumnPainter |
painter
The column painter |
private int |
rowPageIndex
the index of the current row form the top of the current page |
private int |
rowsPerPage
The number of rows on the current page |
private SortOrder |
sortOrder
The sort order of the current column |
private int |
tabIndex
the Tab Index for a nested input field |
Fields inherited from class com.cc.framework.ui.painter.imp.PainterContextWrapper |
|
Constructor Summary | |
CellPainterContext(PainterContext painterContext)
Creates a new Cell Painter Context object |
Method Summary | |
java.lang.Object |
getCellValue()
|
ColumnDesignModel |
getColumn()
|
int |
getColumnIndex()
|
int |
getColumns()
|
JoinMode |
getJoinMode()
|
LineIterator |
getLineIterator()
Returns the iterator which is positioned on the current Row Bean. |
int |
getPageIndex()
|
ColumnPainter |
getPainter()
|
PainterContext |
getPainterContext()
Deprecated. the CellPainterContext implements now the PainterContext interface so this method is not required any longer. Just use CellPainterContext directly. |
int |
getRowPageIndex()
|
int |
getRowsPerPage()
|
SortOrder |
getSortOrder()
Returns the sort order for the current column. |
int |
getTabIndex()
|
boolean |
isJoined()
|
void |
reset()
This method releases all internal references |
void |
setColumn(ColumnDesignModel column,
SortOrder sortOrder,
ColumnPainter painter)
Selects the current column. |
void |
setColumnIndex(int columnIndex)
|
void |
setColumns(int columns)
|
void |
setJoinMode(JoinMode joinMode)
|
void |
setLineIterator(LineIterator lineIterator)
|
void |
setPageIndex(int pageIndex)
|
void |
setRowPageIndex(int rowPageIndex)
|
void |
setRowsPerPage(int rowsPerPage)
|
void |
setTabIndex(int tabIndex)
|
void |
setTabIndex(OrientationType orientation,
int tabIndexBase)
Calculates the Tabulator index for the current cell based on the given keyboard navigation schema. |
Methods inherited from class com.cc.framework.ui.painter.imp.PainterContextWrapper |
attr, attr, attr, close, createActionPainter, createActionPainter, createImage, createImage, createImage, createImage, createInput, createInput, decorateURL, getAsString, getAttribute, getAttribute, getAwtColor, getColor, getControl, getElementName, getFrameworkString, getFrameworkString, getImage, getImage, getImage, getImageSrc, getImageSrc, getImageSrc, getLocale, getNestedContext, getPageContext, getPrincipal, getResourceDir, getServletContext, getSource, getSource, getStringResource, getStyleId, hasAttribute, html, html, html, isDisplayOnly, isRunAtClient, localize, localize, localize, localizeKey, open, popAttributes, pushAttributes, removeAttribute, removeHtml, removeHtml, request, response, session, setAttribute, setFactory, showComments, truncate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.painter.PainterContext |
attr, attr, attr, close, createActionPainter, createActionPainter, createImage, createImage, createImage, createImage, createInput, createInput, decorateURL, getAsString, getAttribute, getAwtColor, getColor, getControl, getElementName, getFrameworkString, getFrameworkString, getImage, getImage, getImage, getImageSrc, getImageSrc, getImageSrc, getLocale, getPageContext, getResourceDir, getSource, getSource, getStringResource, getStyleId, hasAttribute, html, html, html, isDisplayOnly, isRunAtClient, localize, localize, localize, localizeKey, open, popAttributes, pushAttributes, removeAttribute, removeHtml, removeHtml, setAttribute, setFactory, showComments, truncate |
Methods inherited from interface com.cc.framework.adapter.RequestContext |
getNestedContext, getPrincipal |
Methods inherited from interface com.cc.framework.http.HttpContext |
getAttribute, getServletContext, request, response, session |
Field Detail |
private ColumnDesignModel column
private int columnIndex
private int columns
private JoinMode joinMode
private LineIterator lineIterator
private int rowPageIndex
private int rowsPerPage
private int pageIndex
private ColumnPainter painter
private SortOrder sortOrder
private int tabIndex
Constructor Detail |
public CellPainterContext(PainterContext painterContext)
painterContext
- The control's painter contextMethod Detail |
public void reset()
public PainterContext getPainterContext()
public ColumnDesignModel getColumn()
public java.lang.Object getCellValue()
public int getColumnIndex()
public int getColumns()
public LineIterator getLineIterator()
public int getRowPageIndex()
public int getRowsPerPage()
public int getPageIndex()
public ColumnPainter getPainter()
public SortOrder getSortOrder()
public int getTabIndex()
public boolean isJoined()
true
when the cell should be joined to the
previous cellpublic JoinMode getJoinMode()
public void setColumn(ColumnDesignModel column, SortOrder sortOrder, ColumnPainter painter)
column
- The column to set.sortOrder
- The sortOrder to set.painter
- The column painter to set.public void setColumnIndex(int columnIndex)
columnIndex
- The columnIndex to set.public void setColumns(int columns)
columns
- The number of columns to set.public void setJoinMode(JoinMode joinMode)
joinMode
- The column join modepublic void setLineIterator(LineIterator lineIterator)
lineIterator
- The lineIterator to set.public void setRowPageIndex(int rowPageIndex)
rowPageIndex
- The linePageIndex to set.public void setRowsPerPage(int rowsPerPage)
rowsPerPage
- The rows per page to set. -1 if the number of rows is not
limitedpublic void setPageIndex(int pageIndex)
pageIndex
- The pageIndex to set.public void setTabIndex(int tabIndex)
tabIndex
- The tabIndex to set.public void setTabIndex(OrientationType orientation, int tabIndexBase)
orientation
- Tabulator orientation in this gridtabIndexBase
- The Tabulator base index. That is the index for the first cell
of the grid
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |