X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioButton.java;h=ddeec0911711b6621be41e4854b459826f93537f;hb=7c870d89433346ccb5505f8f9ba62d3fc18fe996;hp=685f1f484d752072d11eca248f997426a0070ce1;hpb=8caf0d51b8930199bd593aced424d9e4a8c4c092;p=fanfix.git diff --git a/src/jexer/TRadioButton.java b/src/jexer/TRadioButton.java index 685f1f4..ddeec09 100644 --- a/src/jexer/TRadioButton.java +++ b/src/jexer/TRadioButton.java @@ -52,7 +52,7 @@ public final class TRadioButton extends TWidget { * @return if true then this is the one button in the group that is * selected */ - public boolean getSelected() { + public boolean isSelected() { return selected; } @@ -106,7 +106,7 @@ public final class TRadioButton extends TWidget { this.label = label; this.id = id; - setHasCursor(true); + setCursorVisible(true); setCursorX(1); } @@ -133,7 +133,7 @@ public final class TRadioButton extends TWidget { public void draw() { CellAttributes radioButtonColor; - if (getAbsoluteActive()) { + if (isAbsoluteActive()) { radioButtonColor = getTheme().getColor("tradiobutton.active"); } else { radioButtonColor = getTheme().getColor("tradiobutton.inactive"); @@ -157,7 +157,7 @@ public final class TRadioButton extends TWidget { */ @Override public void onMouseDown(final TMouseEvent mouse) { - if ((mouseOnRadioButton(mouse)) && (mouse.getMouse1())) { + if ((mouseOnRadioButton(mouse)) && (mouse.isMouse1())) { // Switch state selected = !selected; if (selected) {