Class BasicCalendarHeaderHandler.ZoomOutAction
java.lang.Object
javax.swing.AbstractAction
org.jdesktop.swingx.action.AbstractActionExt
org.jdesktop.swingx.hyperlink.AbstractHyperlinkAction<JXMonthView>
org.jdesktop.swingx.plaf.basic.BasicCalendarHeaderHandler.ZoomOutAction
- All Implemented Interfaces:
ActionListener, ItemListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
BasicCalendarHeaderHandler
protected static class BasicCalendarHeaderHandler.ZoomOutAction
extends AbstractHyperlinkAction<JXMonthView>
Quick fix for Issue #1046-swingx: header text not updated if zoomable.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeListenerprivate String[]Localized month strings used in title.private StringValueFields inherited from class AbstractHyperlinkAction
target, VISITED_KEYFields inherited from class AbstractActionExt
GROUP, IS_STATE, LARGE_ICONFields inherited from class AbstractAction
changeSupport, enabledFields inherited from interface 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate PropertyChangeListenerprotected voidinstalls a propertyChangeListener on the target and updates the visual properties from the target.protected voidremoves the propertyChangeListener.protected voidprivate voidMethods inherited from class AbstractHyperlinkAction
getTarget, isVisited, itemStateChanged, setStateAction, setTarget, setVisitedMethods inherited from class AbstractActionExt
dispose, getAccelerator, getActionCommand, getGroup, getLargeIcon, getLongDescription, getMnemonic, getName, getShortDescription, getSmallIcon, isSelected, isStateAction, setAccelerator, setActionCommand, setGroup, setLargeIcon, setLongDescription, setMnemonic, setMnemonic, setName, setSelected, setShortDescription, setSmallIcon, setStateAction, toStringMethods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
linkListener
-
monthNames
Localized month strings used in title. -
tsv
-
-
Constructor Details
-
ZoomOutAction
public ZoomOutAction()
-
-
Method Details
-
actionPerformed
-
installTarget
protected void installTarget()installs a propertyChangeListener on the target and updates the visual properties from the target.- Overrides:
installTargetin classAbstractHyperlinkAction<JXMonthView>
-
updateLocale
private void updateLocale() -
uninstallTarget
protected void uninstallTarget()removes the propertyChangeListener.Implementation NOTE: this does not clean-up internal state! There is no need to because updateFromTarget handles both null and not-null targets. Hmm...
- Overrides:
uninstallTargetin classAbstractHyperlinkAction<JXMonthView>
-
updateFromTarget
protected void updateFromTarget() -
getTargetListener
-