org.basex.gui
Class GUIBaseCmd

java.lang.Object
  extended by org.basex.gui.GUIBaseCmd
All Implemented Interfaces:
GUICmd

public abstract class GUIBaseCmd
extends java.lang.Object
implements GUICmd

This class provides a default implementation for GUI commands.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
static GUICmd SEPARATOR
          Separator.
 
Constructor Summary
GUIBaseCmd()
           
 
Method Summary
 boolean checked()
          Tests if this command includes a menu checkbox.
 java.lang.String help()
          Returns the command help.
 java.lang.String key()
          Returns the command shortcut.
 void refresh(GUI main, javax.swing.AbstractButton button)
          Enables or disables the specified button, depending on the command properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.basex.gui.GUICmd
execute, label
 

Field Detail

SEPARATOR

public static final GUICmd SEPARATOR
Separator.

Constructor Detail

GUIBaseCmd

public GUIBaseCmd()
Method Detail

checked

public boolean checked()
Description copied from interface: GUICmd
Tests if this command includes a menu checkbox.

Specified by:
checked in interface GUICmd
Returns:
result of check

help

public java.lang.String help()
Description copied from interface: GUICmd
Returns the command help.

Specified by:
help in interface GUICmd
Returns:
command help

key

public java.lang.String key()
Description copied from interface: GUICmd
Returns the command shortcut.

Specified by:
key in interface GUICmd
Returns:
command shortcut

refresh

public void refresh(GUI main,
                    javax.swing.AbstractButton button)
Description copied from interface: GUICmd
Enables or disables the specified button, depending on the command properties.

Specified by:
refresh in interface GUICmd
Parameters:
main - reference to the main window
button - button to be modified