Class SetFontSizeAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener, javax.swing.Action

    @OpenApiAll
    public class SetFontSizeAction
    extends SelectItemAction
    Action for choosing font size.
    See Also:
    Serialized Form
    • Field Detail

      • FONT_SIZE

        public static final java.lang.String FONT_SIZE
        The value of font size property key.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetFontSizeAction

        public SetFontSizeAction()
        Creates action and fills it predefined font size selection list.
    • Method Detail

      • getFontSize

        public java.lang.Integer getFontSize()
        Returns selected font size value.
        Returns:
        selected font size.
      • setFontSize

        public void setFontSize​(java.lang.Integer newFontSize)
        Sets new font size value.
        Parameters:
        newFontSize - new font size.
      • setValue

        public void setValue​(java.lang.Object val)
        Sets new font size value.
        Overrides:
        setValue in class SelectItemAction
        Parameters:
        val - new font size. Can be passed as Integer or String(convertible to int). If value is not correct, old font size will be left.