Class DesignShortcutActionConverter

    • Constructor Detail

      • DesignShortcutActionConverter

        public DesignShortcutActionConverter()
    • Method Detail

      • convertToModel

        public Result<ShortcutAction> convertToModel​(String value,
                                                     ValueContext context)
        Description copied from interface: Converter
        Converts the given value from model type to presentation type.

        A converter can optionally use locale to do the conversion.

        Specified by:
        convertToModel in interface Converter<String,​ShortcutAction>
        Parameters:
        value - The value to convert. Can be null
        context - The value context for the conversion.
        Returns:
        The converted value compatible with the source type
      • convertToPresentation

        public String convertToPresentation​(ShortcutAction value,
                                            ValueContext context)
        Description copied from interface: Converter
        Converts the given value from presentation type to model type.

        A converter can optionally use locale to do the conversion.

        Specified by:
        convertToPresentation in interface Converter<String,​ShortcutAction>
        Parameters:
        value - The value to convert. Can be null
        context - The value context for the conversion.
        Returns:
        The converted value compatible with the source type
      • getKeycodeForString

        public int getKeycodeForString​(String attributePresentation)
      • getStringForKeycode

        public String getStringForKeycode​(int keyCode)