X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioButton.java;h=b4170ba82cbd579494e2967f0055e5ecedfe09ac;hb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;hp=cdb56aa35860d3734235ce0ff35a3e942b81352b;hpb=d6ee0801333ff93dffd851f4c1a44519c96c371d;p=fanfix.git diff --git a/src/jexer/TRadioButton.java b/src/jexer/TRadioButton.java index cdb56aa..b4170ba 100644 --- a/src/jexer/TRadioButton.java +++ b/src/jexer/TRadioButton.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -37,7 +37,7 @@ import static jexer.TKeypress.*; /** * TRadioButton implements a selectable radio button. */ -public final class TRadioButton extends TWidget { +public class TRadioButton extends TWidget { // ------------------------------------------------------------------------ // Variables -------------------------------------------------------------- @@ -158,15 +158,14 @@ public final class TRadioButton extends TWidget { radioButtonColor = getTheme().getColor("tradiobutton.inactive"); } - getScreen().putCharXY(0, 0, '(', radioButtonColor); + putCharXY(0, 0, '(', radioButtonColor); if (selected) { - getScreen().putCharXY(1, 0, GraphicsChars.CP437[0x07], - radioButtonColor); + putCharXY(1, 0, GraphicsChars.CP437[0x07], radioButtonColor); } else { - getScreen().putCharXY(1, 0, ' ', radioButtonColor); + putCharXY(1, 0, ' ', radioButtonColor); } - getScreen().putCharXY(2, 0, ')', radioButtonColor); - getScreen().putStringXY(4, 0, label, radioButtonColor); + putCharXY(2, 0, ')', radioButtonColor); + putStringXY(4, 0, label, radioButtonColor); } // ------------------------------------------------------------------------