public void draw() {
super.draw();
- CellAttributes background = getTheme().getColor("tmenu");
CellAttributes menuColor;
- CellAttributes menuMnemonicColor;
- if (getAbsoluteActive()) {
+ if (isAbsoluteActive()) {
menuColor = getTheme().getColor("tmenu.highlighted");
- menuMnemonicColor = getTheme().getColor("tmenu.mnemonic.highlighted");
} else {
- if (getEnabled()) {
+ if (isEnabled()) {
menuColor = getTheme().getColor("tmenu");
- menuMnemonicColor = getTheme().getColor("tmenu.mnemonic");
} else {
menuColor = getTheme().getColor("tmenu.disabled");
- menuMnemonicColor = getTheme().getColor("tmenu.disabled");
}
}
@Override
public void onKeypress(final TKeypressEvent keypress) {
- if (menu.getActive()) {
+ if (menu.isActive()) {
menu.onKeypress(keypress);
return;
}
*/
@Override
public void dispatch() {
- assert (getEnabled());
- if (getAbsoluteActive()) {
- if (!menu.getActive()) {
+ assert (isEnabled());
+ if (isAbsoluteActive()) {
+ if (!menu.isActive()) {
getApplication().addSubMenu(menu);
menu.setActive(true);
}
*/
@Override
public TWidget getActiveChild() {
- if (menu.getActive()) {
+ if (menu.isActive()) {
return menu;
}
// Menu not active, return me