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()
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.ColumnRenderer
addData
in interface BrowseImpl.ColumnRenderer
colIndex
- 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()
BrowseImpl.ColumnRenderer
addMarks
in interface BrowseImpl.ColumnRenderer
BrowseImpl.ColumnRenderer.addMarks()
public void addSeparator()
BrowseImpl.ColumnRenderer
addSeparator
in interface BrowseImpl.ColumnRenderer
BrowseImpl.ColumnRenderer.addSeparator()
public void addRightSpaces(int width)
BrowseImpl.ColumnRenderer
addRightSpaces
in interface BrowseImpl.ColumnRenderer
width
- The number of spaces.BrowseImpl.ColumnRenderer.addRightSpaces(int)