Definition at line 16 of file TextItem.java.
Public Member Functions | |
TextItem (String msg, int len) | |
void | setText (String msg) |
void | moveRight () |
used for arrowkeys | |
void | moveLeft () |
used for arrowkeys | |
void | putChar (char ch) |
replace StringBuffer char at index | |
void | eraseLine () |
replace all chars with whitespace | |
String | getText () |
void | setSelected (boolean bFlag) |
void | redraw () |
void | setAttribute (int value) |
boolean | isSelected () |
void | setColors (int color1, int color2) |
void | setPosition (int y, int x) |
int | getRow () |
void | enableEdit (boolean bFlag) |
|
constructs a fixed width TextItem
Definition at line 34 of file TextItem.java. References pkgView.TextItem.setText(). |
|
stores text in the widget and pads to a fixed length so that stale text on the display will be erased
Definition at line 50 of file TextItem.java. Referenced by pkgMcj.PanelRow.clearRow(), pkgMcj.Mcj.errorMsg(), pkgMcj.Mcj.Mcj(), pkgMcj.MenuBar.MenuBar(), pkgMcj.PanelGrid.PanelGrid(), pkgMcj.PanelGrid.redraw(), pkgMcj.PanelGrid.setCurrentPath(), and pkgView.TextItem.TextItem(). |
|
gets text from the widget.
Definition at line 110 of file TextItem.java. Referenced by pkgMcj.PanelGrid.redraw(). |
|
If the flag is true, set the widget selected. Else restore the default color. Note the screen must be refreshed by the calling method.
Definition at line 120 of file TextItem.java. Referenced by pkgMcj.Mcj.Mcj(), pkgMcj.MenuBar.MenuBar(), pkgMcj.PanelGrid.PanelGrid(), pkgMcj.PanelGrid.redraw(), and pkgMcj.DropMenu.redraw(). |
|
redraws the text string with current attributes. This only writes to the screen buffer, the calling method must refresh the display. Definition at line 130 of file TextItem.java. References pkgView.ScreenKit.ttyMvAddStr(). Referenced by pkgMcj.Mcj.errorMsg(), pkgMcj.PanelRow.redraw(), pkgMcj.PanelGrid.redraw(), pkgMcj.MenuBar.redraw(), and pkgMcj.DropMenu.redraw(). |
|
sets the screen attribute used by ncurses.
Definition at line 147 of file TextItem.java. Referenced by pkgMcj.Mcj.Mcj(), pkgMcj.MenuBar.MenuBar(), pkgMcj.PanelGrid.PanelGrid(), and pkgMcj.PanelRow.setAttributes(). |
|
Definition at line 155 of file TextItem.java. |
|
sets/changes default color and active color
Definition at line 166 of file TextItem.java. Referenced by pkgMcj.DropMenu.DropMenu(), pkgMcj.Mcj.Mcj(), pkgMcj.MenuBar.MenuBar(), pkgMcj.PanelGrid.PanelGrid(), and pkgMcj.PanelRow.setColors(). |
|
set position
Definition at line 177 of file TextItem.java. Referenced by pkgMcj.DropMenu.DropMenu(), pkgMcj.Mcj.Mcj(), pkgMcj.MenuBar.MenuBar(), and pkgMcj.PanelGrid.PanelGrid(). |
|
get position
Definition at line 187 of file TextItem.java. |
|
enables edit Definition at line 195 of file TextItem.java. |