2022-09-26 19:09:02 +02:00
|
|
|
package io.gitlab.jfronny.inceptum.gtk.menu;
|
|
|
|
|
2022-12-17 21:53:21 +01:00
|
|
|
import org.gtk.gio.SimpleAction;
|
2022-09-26 19:09:02 +02:00
|
|
|
|
|
|
|
public abstract class MenuItem {
|
2022-12-17 21:53:21 +01:00
|
|
|
protected final SimpleAction action;
|
2022-09-26 19:09:02 +02:00
|
|
|
|
|
|
|
public MenuItem(SimpleAction action) {
|
2022-12-17 21:53:21 +01:00
|
|
|
this.action = action;
|
2022-09-26 19:09:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean getEnabled() {
|
2022-12-17 21:53:21 +01:00
|
|
|
return action.getEnabled();
|
2022-09-26 19:09:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setEnabled(boolean enabled) {
|
2022-12-17 21:53:21 +01:00
|
|
|
action.enabled = enabled;
|
2022-09-26 19:09:02 +02:00
|
|
|
}
|
|
|
|
}
|