de.cau.cs.kieler.core.kivi.menu
Enum KiviMenuContributionService.LocationScheme

java.lang.Object
  extended by java.lang.Enum<KiviMenuContributionService.LocationScheme>
      extended by de.cau.cs.kieler.core.kivi.menu.KiviMenuContributionService.LocationScheme
All Implemented Interfaces:
Comparable<KiviMenuContributionService.LocationScheme>
Enclosing class:
KiviMenuContributionService

public static enum KiviMenuContributionService.LocationScheme
extends Enum<KiviMenuContributionService.LocationScheme>

A location scheme enumeration allowing to determine the locations of KIVi menu contributions.

Rating red

Enum Constant Summary
MENU
          Menu contribution is to be attached to the main menu only.
MENU_POPUP
          Menu contribution is to be attached to both main and popup menus.
MENU_POPUP_TOOLBAR
          Menu contribution is to be attached to main menu, popup menus, and toolbar.
MENU_TOOLBAR
          Menu contribution is to be attached to both main menu and toolbar.
POPUP
          Menu contribution is to be attached to popup menus only.
POPUP_TOOLBAR
          Menu contribution is to be attached to both popup menus and toolbar.
TOOLBAR
          Menu contribution is to be attached to the toolbar only.
 
Method Summary
static KiviMenuContributionService.LocationScheme valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KiviMenuContributionService.LocationScheme[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MENU

public static final KiviMenuContributionService.LocationScheme MENU
Menu contribution is to be attached to the main menu only.


POPUP

public static final KiviMenuContributionService.LocationScheme POPUP
Menu contribution is to be attached to popup menus only.


TOOLBAR

public static final KiviMenuContributionService.LocationScheme TOOLBAR
Menu contribution is to be attached to the toolbar only.


MENU_POPUP

public static final KiviMenuContributionService.LocationScheme MENU_POPUP
Menu contribution is to be attached to both main and popup menus.


MENU_TOOLBAR

public static final KiviMenuContributionService.LocationScheme MENU_TOOLBAR
Menu contribution is to be attached to both main menu and toolbar.


POPUP_TOOLBAR

public static final KiviMenuContributionService.LocationScheme POPUP_TOOLBAR
Menu contribution is to be attached to both popup menus and toolbar.


MENU_POPUP_TOOLBAR

public static final KiviMenuContributionService.LocationScheme MENU_POPUP_TOOLBAR
Menu contribution is to be attached to main menu, popup menus, and toolbar.

Method Detail

values

public static KiviMenuContributionService.LocationScheme[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KiviMenuContributionService.LocationScheme c : KiviMenuContributionService.LocationScheme.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KiviMenuContributionService.LocationScheme valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null