Class SetFontSizeAction

All Implemented Interfaces:
com.nomagic.actions.ShortcutsNotCustomizable, ActionListener, PropertyChangeListener, Serializable, Cloneable, Comparable, EventListener, Action

@OpenApiAll public final class SetFontSizeAction extends SelectItemAction implements com.nomagic.actions.ShortcutsNotCustomizable
Action for choosing font size.
See Also:
  • Field Details

  • Constructor Details

    • SetFontSizeAction

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

    • getFontSize

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

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

      public void setValue(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.