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
Refactoring - boolean getters and miscellaneous
[fanfix.git]
/
src
/
jexer
/
TLabel.java
diff --git
a/src/jexer/TLabel.java
b/src/jexer/TLabel.java
index e57ad9b1de1dbe9e94844ca3e2a6ff85dd5de618..ad30035980ef1c4ae13fdd3cac0ac89a39eb43b8 100644
(file)
--- a/
src/jexer/TLabel.java
+++ b/
src/jexer/TLabel.java
@@
-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
;
}
/**
}
/**
@@
-94,7
+94,7
@@
public final class TLabel extends TWidget {
// Set parent and window
super(parent, false, x, y, text.length(), 1);
// Set parent and window
super(parent, false, x, y, text.length(), 1);
- this.
text
= text;
+ this.
label
= text;
this.colorKey = colorKey;
}
this.colorKey = colorKey;
}
@@
-108,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().putStrXY(0, 0,
text
, color);
+ getScreen().putStrXY(0, 0,
label
, color);
}
}
}
}