Class KeyStrokeConverter

java.lang.Object
org.nuiton.converter.KeyStrokeConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter, NuitonConverter<KeyStroke>

public class KeyStrokeConverter extends Object implements NuitonConverter<KeyStroke>
To convert KeyStroke from and to String.
Since:
1.0
Author:
Sylvain Letellier - letellier@codelutin.com
  • Constructor Details

    • KeyStrokeConverter

      public KeyStrokeConverter()
  • Method Details

    • convert

      public <T> T convert(Class<T> aClass, Object value)
      Specified by:
      convert in interface org.apache.commons.beanutils.Converter
    • isEnabled

      protected boolean isEnabled(Class<?> aClass)
    • getType

      public Class<KeyStroke> getType()
      Specified by:
      getType in interface NuitonConverter<KeyStroke>
      Returns:
      the main type of the converter.