org.gnome.unique
Class Command
Object
org.freedesktop.bindings.Constant
org.gnome.unique.Command
public class Command
- extends org.freedesktop.bindings.Constant
Predefined commands that can be sent from one Application to another.
If one of these responses constants fits your needs, it is recommended that
you make use of it.
If your needs require it, however, you can define your own responses codes
by extending this class. For example:
public class NinjaCommand extends Command
{
protected NinjaCommand(String nickname) {
super(nickname);
}
public static final NinjaCommand HACK = new NinjaCommand("HACK");
public static final NinjaCommand SLASH = new NinjaCommand("SLASH");
public static final NinjaCommand BURN = new NinjaCommand("BURN");
}
- Since:
- 4.0.12
- Author:
- Andrew Cowie
Methods inherited from class org.freedesktop.bindings.Constant |
toString |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ACTIVATE
public static final Command ACTIVATE
- Generally interpreted to mean that the receiving instance should
present()
itself.
- Since:
- 4.0.12
CLOSE
public static final Command CLOSE
NEW
public static final Command NEW
OPEN
public static final Command OPEN