Class ColorPersistor

java.lang.Object
org.eclipse.nebula.widgets.nattable.persistence.ColorPersistor

public final class ColorPersistor extends Object
  • Field Details

    • STYLE_PERSISTENCE_PREFIX

      public static final String STYLE_PERSISTENCE_PREFIX
      See Also:
    • DEFAULT_COLOR

      public static final org.eclipse.swt.graphics.Color DEFAULT_COLOR
  • Method Details

    • saveColor

      public static void saveColor(String prefix, Properties properties, org.eclipse.swt.graphics.Color color)
    • loadColor

      public static org.eclipse.swt.graphics.Color loadColor(String prefix, Properties properties)
    • asString

      public static String asString(org.eclipse.swt.graphics.Color color)
      Parameters:
      color - The Color for which the String representation is requested.
      Returns:
      The String representation of the provided SWT Color.
    • asColor

      public static org.eclipse.swt.graphics.Color asColor(String colorAsString)
      Create a Color instance using the String created by asColor(String).
      Parameters:
      colorAsString - The String representation of a SWT Color.
      Returns:
      The SWT Color for the given String.