Enum MenuCommandType
- java.lang.Object
-
- java.lang.Enum<MenuCommandType>
-
- com.thecoderscorner.menu.remote.commands.MenuCommandType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MenuCommandType>
public enum MenuCommandType extends java.lang.Enum<MenuCommandType>
Enumeration of the types of messages that can be sent to and from the server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACKNOWLEDGEMENTACTION_BOOT_ITEMANALOG_BOOT_ITEMBOOLEAN_BOOT_ITEMBOOTSTRAPCHANGE_INT_FIELDDIALOG_UPDATEENUM_BOOT_ITEMFLOAT_BOOT_ITEMHEARTBEATJOINPAIRING_REQUESTREMOTE_BOOT_ITEMRUNTIME_LIST_BOOTSUBMENU_BOOT_ITEMTEXT_BOOT_ITEM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()static MenuCommandTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MenuCommandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOIN
public static final MenuCommandType JOIN
-
PAIRING_REQUEST
public static final MenuCommandType PAIRING_REQUEST
-
HEARTBEAT
public static final MenuCommandType HEARTBEAT
-
BOOTSTRAP
public static final MenuCommandType BOOTSTRAP
-
ANALOG_BOOT_ITEM
public static final MenuCommandType ANALOG_BOOT_ITEM
-
ACTION_BOOT_ITEM
public static final MenuCommandType ACTION_BOOT_ITEM
-
SUBMENU_BOOT_ITEM
public static final MenuCommandType SUBMENU_BOOT_ITEM
-
ENUM_BOOT_ITEM
public static final MenuCommandType ENUM_BOOT_ITEM
-
BOOLEAN_BOOT_ITEM
public static final MenuCommandType BOOLEAN_BOOT_ITEM
-
TEXT_BOOT_ITEM
public static final MenuCommandType TEXT_BOOT_ITEM
-
RUNTIME_LIST_BOOT
public static final MenuCommandType RUNTIME_LIST_BOOT
-
FLOAT_BOOT_ITEM
public static final MenuCommandType FLOAT_BOOT_ITEM
-
REMOTE_BOOT_ITEM
public static final MenuCommandType REMOTE_BOOT_ITEM
-
ACKNOWLEDGEMENT
public static final MenuCommandType ACKNOWLEDGEMENT
-
CHANGE_INT_FIELD
public static final MenuCommandType CHANGE_INT_FIELD
-
DIALOG_UPDATE
public static final MenuCommandType DIALOG_UPDATE
-
-
Method Detail
-
values
public static MenuCommandType[] 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 (MenuCommandType c : MenuCommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuCommandType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public java.lang.String getCode()
-
-