X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTButton.java;h=0fc36a2de2afac6f682e44af5e930289c9cbb60a;hb=0d47c5460c8e9d1198928308767a63ad35f46eb8;hp=5e5edd03ca37a7a67285df1efd78bd810ede21c8;hpb=92554d64c21c6a477fd23a06ca3a64a542b622a3;p=fanfix.git diff --git a/src/jexer/TButton.java b/src/jexer/TButton.java index 5e5edd0..0fc36a2 100644 --- a/src/jexer/TButton.java +++ b/src/jexer/TButton.java @@ -145,10 +145,10 @@ public final class TButton extends TWidget { shadowColor.setForeColor(Color.BLACK); shadowColor.setBold(false); - if (!getEnabled()) { + if (!isEnabled()) { buttonColor = getTheme().getColor("tbutton.disabled"); menuMnemonicColor = getTheme().getColor("tbutton.disabled"); - } else if (getAbsoluteActive()) { + } else if (isAbsoluteActive()) { buttonColor = getTheme().getColor("tbutton.active"); menuMnemonicColor = getTheme().getColor("tbutton.mnemonic.highlighted"); } else { @@ -158,11 +158,11 @@ public final class TButton extends TWidget { if (inButtonPress) { getScreen().putCharXY(1, 0, ' ', buttonColor); - getScreen().putStrXY(2, 0, mnemonic.getRawLabel(), buttonColor); + getScreen().putStringXY(2, 0, mnemonic.getRawLabel(), buttonColor); getScreen().putCharXY(getWidth() - 1, 0, ' ', buttonColor); } else { getScreen().putCharXY(0, 0, ' ', buttonColor); - getScreen().putStrXY(1, 0, mnemonic.getRawLabel(), buttonColor); + getScreen().putStringXY(1, 0, mnemonic.getRawLabel(), buttonColor); getScreen().putCharXY(getWidth() - 2, 0, ' ', buttonColor); getScreen().putCharXY(getWidth() - 1, 0, @@ -191,7 +191,7 @@ public final class TButton extends TWidget { public void onMouseDown(final TMouseEvent mouse) { this.mouse = mouse; - if ((mouseOnButton()) && (mouse.getMouse1())) { + if ((mouseOnButton()) && (mouse.isMouse1())) { // Begin button press inButtonPress = true; } @@ -206,7 +206,7 @@ public final class TButton extends TWidget { public void onMouseUp(final TMouseEvent mouse) { this.mouse = mouse; - if (inButtonPress && mouse.getMouse1()) { + if (inButtonPress && mouse.isMouse1()) { inButtonPress = false; // Dispatch the event if (action != null) {