Package com.nomagic.actions
Class SetFontFaceAction
java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.actions.ActionsCategory
com.nomagic.actions.SelectItemAction
com.nomagic.actions.SetFontFaceAction
- All Implemented Interfaces:
com.nomagic.actions.ShortcutsNotCustomizable
,ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,Comparable
,EventListener
,Action
@OpenApiAll
public class SetFontFaceAction
extends SelectItemAction
implements com.nomagic.actions.ShortcutsNotCustomizable
Action for choosing font face.
- See Also:
-
Field Summary
Fields inherited from class com.nomagic.actions.SelectItemAction
ADDITIONAL_PROPERTY_MAX_WIDTH
Fields inherited from class com.nomagic.actions.ActionsCategory
ACTIONS_PROPERTY, ADDED_ACTION_PROPERTY, CHANGE_ACTIONS_PROPERTY, DISABLE_IF_EMPTY, MAX_CATEGORY_ACTIONS, REMOVE_IF_EMPTY, REMOVED_ACTION_PROPERTY, USE_AS_SEPARATOR_IN_UI
Fields inherited from class com.nomagic.actions.NMAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, DO_NOT_REGISTER_ACTION_TO_COMPONENTS, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Fields inherited from interface com.nomagic.actions.ShortcutsNotCustomizable
SHORTCUTS_NOT_CUSTOMIZABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns selected font face value.void
setFontFace
(String newFontFace) Sets new font face value.Methods inherited from class com.nomagic.actions.SelectItemAction
accept, clone, createAction, getItems, getValue, getValueName, isChangeable, isDisplayAsComboBox, isShowActionName, propertyChange, setChangeable, setDisplayAsComboBox, setItems, setList, setShowActionName, setValue, updateState
Methods inherited from class com.nomagic.actions.ActionsCategory
actionPerformed, addAction, addAction, addActionNearTheGiven, addActions, breakActions, breakActions, breakActions, breakeActions, createSeparatorCategory, forEach, forEachIncludingSelf, getAction, getActions, getActionsRecursively, getCategories, isDisplayHeader, isEmpty, isNested, isUseActionForDisable, removeAction, removeIf, setActions, setDisplayHeader, setNested, setUseActionForDisable, shallowClone, size, sort
Methods inherited from class com.nomagic.actions.NMAction
addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, toString
Methods inherited from class javax.swing.AbstractAction
getKeys, getValue, isEnabled, putValue, setEnabled
-
Field Details
-
FONT_FACE
The value of font face property key.- See Also:
-
-
Constructor Details
-
SetFontFaceAction
public SetFontFaceAction()Creates action and fills it with all system fonts.
-
-
Method Details
-
getFontFace
Returns selected font face value.- Returns:
- selected font face name.
-
setFontFace
Sets new font face value.- Parameters:
newFontFace
- value.
-