git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
color chooser widget
[fanfix.git]
/
src
/
jexer
/
TLabel.java
diff --git
a/src/jexer/TLabel.java
b/src/jexer/TLabel.java
index d56be67f7d3815a42dc25c6f43c7e9a416db9cb8..fb00ac47599a5379127f12a41edc915d5b341f3c 100644
(file)
--- a/
src/jexer/TLabel.java
+++ b/
src/jexer/TLabel.java
@@
-1,4
+1,4
@@
-/*
*
+/*
* Jexer - Java Text User Interface
*
* License: LGPLv3 or later
* Jexer - Java Text User Interface
*
* License: LGPLv3 or later
@@
-40,24
+40,24
@@
public final class TLabel extends TWidget {
/**
* Label text.
*/
/**
* Label text.
*/
- private String
text
= "";
+ private String
label
= "";
/**
* Get label text.
*
* @return label text
*/
/**
* Get label text.
*
* @return label text
*/
- public String get
Text
() {
- return
text
;
+ public String get
Label
() {
+ return
label
;
}
/**
* Set label text.
*
}
/**
* Set label text.
*
- * @param
text
new label text
+ * @param
label
new label text
*/
*/
- public void set
Text(final String text
) {
- this.
text = text
;
+ public void set
Label(final String label
) {
+ this.
label = label
;
}
/**
}
/**
@@
-92,13
+92,9
@@
public final class TLabel extends TWidget {
final int y, final String colorKey) {
// Set parent and window
final int y, final String colorKey) {
// Set parent and window
- super(parent, false);
+ super(parent, false
, x, y, text.length(), 1
);
- this.text = text;
- setX(x);
- setY(y);
- setHeight(1);
- setWidth(text.length());
+ this.label = text;
this.colorKey = colorKey;
}
this.colorKey = colorKey;
}
@@
-112,7
+108,7
@@
public final class TLabel extends TWidget {
CellAttributes background = getWindow().getBackground();
color.setBackColor(background.getBackColor());
CellAttributes background = getWindow().getBackground();
color.setBackColor(background.getBackColor());
- getScreen().putStr
XY(0, 0, text
, color);
+ getScreen().putStr
ingXY(0, 0, label
, color);
}
}
}
}