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
Merge branch 'master' of https://github.com/klamonte/jexer
[fanfix.git]
/
src
/
jexer
/
TRadioGroup.java
diff --git
a/src/jexer/TRadioGroup.java
b/src/jexer/TRadioGroup.java
index c1b652352d1b4b36049be132fed9fa229d96382e..723148fd1f781e080901cf013fc41e510a2b5283 100644
(file)
--- a/
src/jexer/TRadioGroup.java
+++ b/
src/jexer/TRadioGroup.java
@@
-65,7
+65,7
@@
public final class TRadioGroup extends TWidget {
* @param button new button that became selected
*/
void setSelected(final TRadioButton button) {
* @param button new button that became selected
*/
void setSelected(final TRadioButton button) {
- assert (button.
get
Selected());
+ assert (button.
is
Selected());
if (selectedButton != null) {
selectedButton.setSelected(false);
}
if (selectedButton != null) {
selectedButton.setSelected(false);
}
@@
-84,13
+84,9
@@
public final class TRadioGroup extends TWidget {
final String label) {
// Set parent and window
final String label) {
// Set parent and window
- super(parent);
+ super(parent
, x, y, label.length() + 4, 2
);
- setX(x);
- setY(y);
- setHeight(2);
this.label = label;
this.label = label;
- setWidth(label.length() + 4);
}
/**
}
/**
@@
-100,7
+96,7
@@
public final class TRadioGroup extends TWidget {
public void draw() {
CellAttributes radioGroupColor;
public void draw() {
CellAttributes radioGroupColor;
- if (
get
AbsoluteActive()) {
+ if (
is
AbsoluteActive()) {
radioGroupColor = getTheme().getColor("tradiogroup.active");
} else {
radioGroupColor = getTheme().getColor("tradiogroup.inactive");
radioGroupColor = getTheme().getColor("tradiogroup.active");
} else {
radioGroupColor = getTheme().getColor("tradiogroup.inactive");