X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTLabel.java;h=ad30035980ef1c4ae13fdd3cac0ac89a39eb43b8;hb=7c870d89433346ccb5505f8f9ba62d3fc18fe996;hp=e57ad9b1de1dbe9e94844ca3e2a6ff85dd5de618;hpb=8caf0d51b8930199bd593aced424d9e4a8c4c092;p=fanfix.git diff --git a/src/jexer/TLabel.java b/src/jexer/TLabel.java index e57ad9b..ad30035 100644 --- a/src/jexer/TLabel.java +++ b/src/jexer/TLabel.java @@ -40,24 +40,24 @@ public final class TLabel extends TWidget { /** * Label text. */ - private String text = ""; + private String label = ""; /** * Get label text. * * @return label text */ - public String getText() { - return text; + public String getLabel() { + return label; } /** * Set label text. * - * @param text new label text + * @param label new label text */ - public void setText(final String text) { - this.text = text; + public void setLabel(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); - this.text = text; + this.label = text; this.colorKey = colorKey; } @@ -108,7 +108,7 @@ public final class TLabel extends TWidget { CellAttributes background = getWindow().getBackground(); color.setBackColor(background.getBackColor()); - getScreen().putStrXY(0, 0, text, color); + getScreen().putStrXY(0, 0, label, color); } }