Package ca.corbett.forms
Class SwingFormsResources
java.lang.Object
ca.corbett.extras.ResourceLoader
ca.corbett.forms.SwingFormsResources
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe native size (width and height) of all swing-forms icons.Fields inherited from class ca.corbett.extras.ResourceLoader
prefix -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcongetAddIcon(int size) Returns an ImageIcon to represent adding an item.static ImageIcongetBlankIcon(int size) Returns a transparent ImageIcon, useful for reserving space where an icon should go.static ImageIcongetCopyIcon(int size) Returns an ImageIcon to represent a copy operation.static ImageIcongetDocumentEditIcon(int size) Returns an ImageIcon to represent editing a document or item.static ImageIcongetEditIcon(int size) Returns an ImageIcon to represent editing an item.static ImageIcongetHelpIcon(int size) Returns an ImageIcon to represent a FormField that has some help or informational text associated with it.static ImageIcongetHiddenIcon(int size) Returns an ImageIcon to represent something that is hidden.static ImageIcongetInvalidIcon(int size) Returns an ImageIcon to represent an "invalid" FormField - that is, one that has at least one validation error.static ImageIcongetLockedIcon(int size) Returns an ImageIcon to represent a lock.static ImageIcongetMinusIcon(int size) Returns an ImageIcon to represent a minus sign (collapse, zoom out, etc.).static ImageIcongetMoveAllLeftIcon(int size) Returns an ImageIcon to represent moving all items to the left.static ImageIcongetMoveAllRightIcon(int size) Returns an ImageIcon to represent moving all items to the right.static ImageIcongetMoveDownIcon(int size) Returns an ImageIcon to represent moving an item down.static ImageIcongetMoveLeftIcon(int size) Returns an ImageIcon to represent moving an item to the left.static ImageIcongetMoveRightIcon(int size) Returns an ImageIcon to represent moving an item to the right.static ImageIcongetMoveUpIcon(int size) Returns an ImageIcon to represent moving an item up.static ImageIcongetPlusIcon(int size) Returns an ImageIcon to represent a plus sign (expand, zoom in, etc.).static ImageIcongetRemoveAllIcon(int size) Returns an ImageIcon to represent removing all items.static ImageIcongetRemoveIcon(int size) Returns an ImageIcon to represent removing an item.static ImageIcongetRenameIcon(int size) Returns an ImageIcon to represent renaming an item.static ImageIcongetRevealedIcon(int size) Returns an ImageIcon to represent something that is revealed.static ImageIcongetSettingsIcon(int size) Returns an ImageIcon to represent settings or configuration.static ImageIcongetUnlockedIcon(int size) Returns an ImageIcon to represent an open lock.static ImageIcongetValidIcon(int size) Returns an ImageIcon to represent a "valid" FormField - that is, one that has no validation errors.Methods inherited from class ca.corbett.extras.ResourceLoader
extractResourceToFile, getIcon, getImage, getPrefix, getTextResource, getTextResourceAsLines, loadIcon, loadIcon, loadImage, setPrefix
-
Field Details
-
NATIVE_SIZE
public static final int NATIVE_SIZEThe native size (width and height) of all swing-forms icons.- See Also:
-
-
Method Details
-
getValidIcon
Returns an ImageIcon to represent a "valid" FormField - that is, one that has no validation errors. -
getInvalidIcon
Returns an ImageIcon to represent an "invalid" FormField - that is, one that has at least one validation error. -
getHelpIcon
Returns an ImageIcon to represent a FormField that has some help or informational text associated with it. -
getBlankIcon
Returns a transparent ImageIcon, useful for reserving space where an icon should go. -
getLockedIcon
Returns an ImageIcon to represent a lock. -
getUnlockedIcon
Returns an ImageIcon to represent an open lock. -
getCopyIcon
Returns an ImageIcon to represent a copy operation. -
getHiddenIcon
Returns an ImageIcon to represent something that is hidden. -
getRevealedIcon
Returns an ImageIcon to represent something that is revealed. -
getPlusIcon
Returns an ImageIcon to represent a plus sign (expand, zoom in, etc.). -
getMinusIcon
Returns an ImageIcon to represent a minus sign (collapse, zoom out, etc.). -
getAddIcon
Returns an ImageIcon to represent adding an item. -
getRemoveIcon
Returns an ImageIcon to represent removing an item. -
getRemoveAllIcon
Returns an ImageIcon to represent removing all items. -
getEditIcon
Returns an ImageIcon to represent editing an item. -
getMoveLeftIcon
Returns an ImageIcon to represent moving an item to the left. -
getMoveRightIcon
Returns an ImageIcon to represent moving an item to the right. -
getMoveUpIcon
Returns an ImageIcon to represent moving an item up. -
getMoveDownIcon
Returns an ImageIcon to represent moving an item down. -
getMoveAllLeftIcon
Returns an ImageIcon to represent moving all items to the left. -
getMoveAllRightIcon
Returns an ImageIcon to represent moving all items to the right. -
getDocumentEditIcon
Returns an ImageIcon to represent editing a document or item. -
getRenameIcon
Returns an ImageIcon to represent renaming an item. -
getSettingsIcon
Returns an ImageIcon to represent settings or configuration.
-