Interface GUICommandFactory
-
- All Known Implementing Classes:
GUICommandFactoryImpl
public interface GUICommandFactoryFactory for creatingGUICommandinstances from string representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull GUICommandcreateCommand(@NotNull java.lang.String commandString)Creates a newGUICommandinstance from string representation.GUICommandcreateCommandDecode(@NotNull java.lang.String encodedCommandString)Creates a newGUICommandinstance from string representation.@NotNull java.lang.Stringdecode(@NotNull java.lang.String command)Decodes a key binding if necessary.@NotNull java.lang.Stringencode(@NotNull java.lang.String command)Encodes a key binding if necessary.
-
-
-
Method Detail
-
createCommandDecode
GUICommand createCommandDecode(@NotNull @NotNull java.lang.String encodedCommandString)
Creates a newGUICommandinstance from string representation.- Parameters:
encodedCommandString- the command string representation- Returns:
- the new command instance
-
createCommand
@NotNull @NotNull GUICommand createCommand(@NotNull @NotNull java.lang.String commandString)
Creates a newGUICommandinstance from string representation.- Parameters:
commandString- the command string representation- Returns:
- the new command instance
-
encode
@NotNull @NotNull java.lang.String encode(@NotNull @NotNull java.lang.String command)Encodes a key binding if necessary.- Parameters:
command- the key binding- Returns:
- the encoded key binding
-
decode
@NotNull @NotNull java.lang.String decode(@NotNull @NotNull java.lang.String command)Decodes a key binding if necessary.- Parameters:
command- the key binding- Returns:
- the decoded key binding
-
-