private class BrowseImpl.LabelColumnRenderer extends java.lang.Object implements BrowseImpl.ColumnRenderer
clear() method is called
before rendering and printResult() is called to finish
it.| Modifier and Type | Field and Description |
|---|---|
private java.lang.StringBuffer[] |
bufs
Temporary buffers for render result.
|
| Constructor and Description |
|---|
LabelColumnRenderer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(BrowseColumnConfig col,
int colIndex,
int colWidth,
int scroll)
Renders data from an one column.
|
void |
addMarks(int rowIdx)
Renders an editable line and a selected line marks.
|
void |
addRightSpaces(int width)
Renders several spaces to make right space column.
|
void |
addSeparator()
Renders a separator character.
|
void |
clear()
Clears an old content.
|
void |
printResult()
Copies buffers content into
rcLabels member. |
public LabelColumnRenderer()
public void clear()
public void printResult()
rcLabels member.public void addData(BrowseColumnConfig col, int colIndex, int colWidth, int scroll)
BrowseImpl.ColumnRendereraddData in interface BrowseImpl.ColumnRenderercolIndex - Is not used.col - Column to render.colWidth - The full width for formatting.scroll - Scrolling correction. Means the number of characters which
should be erased from the left (if positive) or from the
right (if negative). This scroll differs from the scroll in
DisplayFormat.formatScreenValue() because it
means the scroll of the whole browse column not the scroll
of screen value inside the column.BrowseImpl.ColumnRenderer.addData(com.goldencode.p2j.ui.BrowseColumnConfig, int, int, int)public void addMarks(int rowIdx)
BrowseImpl.ColumnRendereraddMarks in interface BrowseImpl.ColumnRendererrowIdx - The screen index of the row currently being displayed.BrowseImpl.ColumnRenderer.addMarks(int)public void addSeparator()
BrowseImpl.ColumnRendereraddSeparator in interface BrowseImpl.ColumnRendererBrowseImpl.ColumnRenderer.addSeparator()public void addRightSpaces(int width)
BrowseImpl.ColumnRendereraddRightSpaces in interface BrowseImpl.ColumnRendererwidth - The number of spaces.BrowseImpl.ColumnRenderer.addRightSpaces(int)