Record Class SmileUtilities.ActionIcons
java.lang.Object
java.lang.Record
smile.swing.SmileUtilities.ActionIcons
- Record Components:
small- the small icon, for menu items and small toolbar buttons.large- the large icon, for a large toolbar.
- Enclosing interface:
SmileUtilities
The small and large icon variants of an action, as Swing asks for them
through
Action.SMALL_ICON and
Action.LARGE_ICON_KEY.-
Constructor Summary
ConstructorsConstructorDescriptionActionIcons(ImageIcon small, ImageIcon large) Creates an instance of aActionIconsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies both variants to an action.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.large()Returns the value of thelargerecord component.small()Returns the value of thesmallrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionIcons
-
-
Method Details
-
applyTo
Applies both variants to an action.- Parameters:
action- the action to decorate.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
small
-
large
-