Interface GUICommandFactory
- All Known Implementing Classes:
GUICommandFactoryImpl
public interface GUICommandFactory
Factory for creating
GUICommand instances from string
representation.-
Method Summary
Modifier and TypeMethodDescription@NotNull GUICommandcreateCommand(@NotNull String commandString) Creates a newGUICommandinstance from string representation.createCommandDecode(@NotNull String encodedCommandString) Creates a newGUICommandinstance from string representation.@NotNull StringDecodes a key binding if necessary.@NotNull StringEncodes a key binding if necessary.
-
Method Details
-
createCommandDecode
Creates a newGUICommandinstance from string representation.- Parameters:
encodedCommandString- the command string representation- Returns:
- the new command instance
-
createCommand
Creates a newGUICommandinstance from string representation.- Parameters:
commandString- the command string representation- Returns:
- the new command instance
-
encode
Encodes a key binding if necessary.- Parameters:
command- the key binding- Returns:
- the encoded key binding
-
decode
Decodes a key binding if necessary.- Parameters:
command- the key binding- Returns:
- the decoded key binding
-