org.graffiti.plugin.view.interactive
Interface SlotEditableEnum

All Known Implementing Classes:
MouseButton

public interface SlotEditableEnum

Enumerations implementing SlotEditableEnum are supported by the tool system to be used as the type of parameter slots. The tool system creates a component (e.g. a JComboBox) for them, which allows the user to select the enumeration constant.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
Slot, SlotEditorComponentBuilder

Method Summary
 String getName(Bundle bundle)
          Returns the name of this enumeration constant as seen by the user when graphically editing the tools.
 List<? extends SlotEditableEnum> getValues()
          Returns a list of all enumeration constants.
 int ordinal()
          Returns the ordinal of this enumeration constant.
 

Method Detail

getName

String getName(Bundle bundle)
Returns the name of this enumeration constant as seen by the user when graphically editing the tools. The name is stored in the specified bundle.

Parameters:
bundle - the resource bundle that contains the name of this enumeration constant.
Returns:
the name of this enumeration constant as seen by the user when graphically editing the tools.

getValues

List<? extends SlotEditableEnum> getValues()
Returns a list of all enumeration constants.

Returns:
a list of all enumeration constants.

ordinal

int ordinal()
Returns the ordinal of this enumeration constant.

Returns:
the ordinal of this enumeration constant.
See Also:
Enum.ordinal()


Generated at 2012-05-30 11:00:36 PM CEST