TabbedPane: support closable tabs (issue #40)

This commit is contained in:
Karl Tauber
2020-10-20 09:37:28 +02:00
parent 8ccda81d9a
commit 700bb9b567
15 changed files with 583 additions and 37 deletions

View File

@@ -95,6 +95,19 @@ public class TriStateCheckBox
repaint();
}
public Boolean getValue() {
switch( state ) {
default:
case INDETERMINATE: return null;
case SELECTED: return true;
case UNSELECTED: return false;
}
}
public void setValue( Boolean value ) {
setState( value == null ? State.INDETERMINATE : (value ? State.SELECTED : State.UNSELECTED) );
}
public boolean isThirdStateEnabled() {
return thirdStateEnabled;
}