private class BrowseImpl.SpaceColumnRenderer extends java.lang.Object implements BrowseImpl.ColumnRenderer
Modifier and Type | Field and Description |
---|---|
protected boolean |
dcrFocused
Is widget focused.
|
protected boolean |
dcrReadOnly
Indicates read-only mode.
|
protected int |
dcrRowIndex
The index of currently rendered row.
|
Constructor and Description |
---|
SpaceColumnRenderer()
Dummy 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.
|
Color |
getColor(Color color)
Calculate row color.
|
void |
newRow(boolean readOnly,
boolean focused,
int rowIndex)
Begins rendering of a new row.
|
protected boolean dcrReadOnly
protected boolean dcrFocused
protected int dcrRowIndex
public void addData(BrowseColumnConfig col, int colIndex, int colWidth, int scroll)
BrowseImpl.ColumnRenderer
addData
in interface BrowseImpl.ColumnRenderer
col
- Is not used.colIndex
- Is not used.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 Color getColor(Color color)
color
- Base color.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)
public void newRow(boolean readOnly, boolean focused, int rowIndex)
readOnly
- The widget in read-only mode.focused
- The widget is focused.rowIndex
- Index of the row in the browse model.