Class SwingFormsResources

java.lang.Object
ca.corbett.extras.ResourceLoader
ca.corbett.forms.SwingFormsResources

public final class SwingFormsResources extends ResourceLoader
Centralizes and manages access to the various resource images that are used in swing-forms. All icons are stored internally at 48x48, but can be requested at any size. This class maintains a cache of icons at their native size to avoid unnecessary loads.
Since:
swing-extras 2.4
Author:
scorbo2
  • Field Details

    • NATIVE_SIZE

      public static final int NATIVE_SIZE
      The native size (width and height) of all swing-forms icons.
      See Also:
  • Method Details

    • getValidIcon

      public static ImageIcon getValidIcon(int size)
      Returns an ImageIcon to represent a "valid" FormField - that is, one that has no validation errors.
    • getInvalidIcon

      public static ImageIcon getInvalidIcon(int size)
      Returns an ImageIcon to represent an "invalid" FormField - that is, one that has at least one validation error.
    • getHelpIcon

      public static ImageIcon getHelpIcon(int size)
      Returns an ImageIcon to represent a FormField that has some help or informational text associated with it.
    • getBlankIcon

      public static ImageIcon getBlankIcon(int size)
      Returns a transparent ImageIcon, useful for reserving space where an icon should go.
    • getLockedIcon

      public static ImageIcon getLockedIcon(int size)
      Returns an ImageIcon to represent a lock.
    • getUnlockedIcon

      public static ImageIcon getUnlockedIcon(int size)
      Returns an ImageIcon to represent an open lock.
    • getCopyIcon

      public static ImageIcon getCopyIcon(int size)
      Returns an ImageIcon to represent a copy operation.
    • getHiddenIcon

      public static ImageIcon getHiddenIcon(int size)
      Returns an ImageIcon to represent something that is hidden.
    • getRevealedIcon

      public static ImageIcon getRevealedIcon(int size)
      Returns an ImageIcon to represent something that is revealed.
    • getPlusIcon

      public static ImageIcon getPlusIcon(int size)
      Returns an ImageIcon to represent a plus sign (expand, zoom in, etc.).
    • getMinusIcon

      public static ImageIcon getMinusIcon(int size)
      Returns an ImageIcon to represent a minus sign (collapse, zoom out, etc.).
    • getAddIcon

      public static ImageIcon getAddIcon(int size)
      Returns an ImageIcon to represent adding an item.
    • getRemoveIcon

      public static ImageIcon getRemoveIcon(int size)
      Returns an ImageIcon to represent removing an item.
    • getRemoveAllIcon

      public static ImageIcon getRemoveAllIcon(int size)
      Returns an ImageIcon to represent removing all items.
    • getEditIcon

      public static ImageIcon getEditIcon(int size)
      Returns an ImageIcon to represent editing an item.
    • getMoveLeftIcon

      public static ImageIcon getMoveLeftIcon(int size)
      Returns an ImageIcon to represent moving an item to the left.
    • getMoveRightIcon

      public static ImageIcon getMoveRightIcon(int size)
      Returns an ImageIcon to represent moving an item to the right.
    • getMoveUpIcon

      public static ImageIcon getMoveUpIcon(int size)
      Returns an ImageIcon to represent moving an item up.
    • getMoveDownIcon

      public static ImageIcon getMoveDownIcon(int size)
      Returns an ImageIcon to represent moving an item down.
    • getMoveAllLeftIcon

      public static ImageIcon getMoveAllLeftIcon(int size)
      Returns an ImageIcon to represent moving all items to the left.
    • getMoveAllRightIcon

      public static ImageIcon getMoveAllRightIcon(int size)
      Returns an ImageIcon to represent moving all items to the right.
    • getDocumentEditIcon

      public static ImageIcon getDocumentEditIcon(int size)
      Returns an ImageIcon to represent editing a document or item.
    • getRenameIcon

      public static ImageIcon getRenameIcon(int size)
      Returns an ImageIcon to represent renaming an item.
    • getSettingsIcon

      public static ImageIcon getSettingsIcon(int size)
      Returns an ImageIcon to represent settings or configuration.