public interface GralTableLine_ifc<UserData> extends GralWidget_ifc
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
sVersion
Modifier and Type | Method and Description |
---|---|
GralTableLine_ifc<UserData> |
addChildLine(java.lang.String childKey,
java.lang.String[] childTexts,
UserData data)
Inserts a line as child of this.
|
GralTableLine_ifc<UserData> |
addNextLine(java.lang.String childKey,
java.lang.String[] childTexts,
UserData data)
Inserts a line behind the current line.
|
GralTableLine_ifc<UserData> |
addPrevLine(java.lang.String childKey,
java.lang.String[] childTexts,
UserData data)
Inserts a line before the current line.
|
void |
deleteLine() |
java.lang.String |
getCellText(int column)
Returns the text which is assigned to the cell of the table.
|
java.lang.String[] |
getCellTexts() |
int |
getSelectedColumn() |
GralTable<UserData> |
getTable()
Gets the table where this line is member of.
|
UserData |
getUserData()
Returns the instance which is related to the line on #setUserData or on construction.
|
GralTableLine_ifc<UserData> |
parentNode() |
void |
setBackColor(GralColor colorNormal,
GralColor colorSelected,
GralColor colorMarked,
GralColor colorSomeMarked,
GralColor colorSelectMarked,
int ix)
Sets the background color for a special cell of line or for all cells of this line
which has not a special cell color for the several states of the line.
|
java.lang.String |
setCellText(java.lang.String text,
int column) |
void |
showChildren(boolean show,
boolean bLeftGrandChildrenOpen)
Opens or closes showing children of this line.
|
void |
showChildren(boolean show,
boolean bLeftGrandChildrenOpen,
boolean showReally) |
getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getImplWidget, isChanged, isEditable, isGraphicDisposed, isNotEditableOrShouldInitialize, redraw, redraw, refreshFromVariable, refreshFromVariable, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setText, setTextColor
getFocusedWidget, getImplAccess, getName, gralMng, isInFocus, isVisible, pos, setFocus, setFocused, setFocusedWidget, setVisible
static final int version
setBackColor(GralColor, GralColor, GralColor, GralColor, GralColor, int)
with colorSelect etc. for content-depending table presentation.
void setBackColor(GralColor colorNormal, GralColor colorSelected, GralColor colorMarked, GralColor colorSomeMarked, GralColor colorSelectMarked, int ix)
colorNormal
- non selected, non markedcolorSelected
- non marked, the selected line.colorMarked
- marked, not the selected linecolorSomeMarked
- some marked, not the selected linecolorSelectMarked
- marked or some marked, the selected line.ix
- -1 for the line, 0... for one cell of the line.java.lang.String getCellText(int column)
column
- The column of table.java.lang.IndexOutOfBoundsException
- on fault column.java.lang.String[] getCellTexts()
java.lang.String setCellText(java.lang.String text, int column)
UserData getUserData()
int getSelectedColumn()
GralTableLine_ifc<UserData> addChildLine(java.lang.String childKey, java.lang.String[] childTexts, UserData data)
addPrevLine(String, String[], Object)
or addNextLine(String, String[], Object)
in respect to a given child line too.lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- GralTableLine_ifc<UserData> addNextLine(java.lang.String childKey, java.lang.String[] childTexts, UserData data)
lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- GralTableLine_ifc<UserData> addPrevLine(java.lang.String childKey, java.lang.String[] childTexts, UserData data)
lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- void deleteLine()
GralTableLine_ifc<UserData> parentNode()
void showChildren(boolean show, boolean bLeftGrandChildrenOpen)
show
- true then show, false then close this bough.bLeftGrandChildrenOpen
- if show==true, false then close sub children boughs of this, true left opened grand children open.
This is an important behavior of operating with a tree view. Both variants are desirable in different situations.void showChildren(boolean show, boolean bLeftGrandChildrenOpen, boolean showReally)