public final class PrintSelectionAction extends PrintAction
app, id, MODIFIERS_TOOLTIP_KEY, NO_MNEMONIC, SELECTED_ICON_KEY, UNSELECTED_ICON_KEY
changeSupport, enabled
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 and Description |
---|
PrintSelectionAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEditingContextSensitive()
This method must return
true if this part is
intrinsically context sensitive and it must return
false if this part is intrinsically not context
sensitive. |
void |
updateEnabled()
This action should enable or disable itself using standard method
setEnabled(boolean).
|
exec, finish, init, printingPage
doIt, doProgress, isCanceled, progress, run
actionPerformed, activeEditorChanged, applyPreferences, destroyApp, editingContextChanged, flushPreferences, getAccelerator, getApp, getDialogTitle, getIcon, getId, getLabel, getMnemonic, getMnemonicIndex, getModifiersToolTip, getSelectedIcon, getToolTip, getUnselectedIcon, hasListeners, initApp, isSelected, namespacePrefixesChanged, saveStateChanged, setAccelerator, setDisabledIcons, setIcon, setLabel, setMnemonic, setMnemonicIndex, setModifiersToolTip, setSelected, setSelectedIcon, setToolTip, setUnselectedIcon, undoStateChanged, validityStateChanged, wasCtrlClick, wasRightClick, wasShiftClick
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public boolean isEditingContextSensitive()
AppAction
true
if this part is
intrinsically context sensitive and it must return
false
if this part is intrinsically not context
sensitive.
This method is invoked once: when the App registers this part (just
before invoking AppPart.initApp(com.xmlmind.xmleditapp.desktop.App, java.lang.String)
). Therefore, it is useless to
sometimes return true
and other times to return
false
.
Should return true
if AppAction.updateEnabled()
is to be
invoked each time the editing context changes (caret moved to another
text node, text selected, etc). Should return false
otherwise.
isEditingContextSensitive
in interface AppPart
isEditingContextSensitive
in class AppAction
AppPart.editingContextChanged()
public void updateEnabled()
AppAction
This method is invoked:
updateEnabled
in class PrintAction
AppAction.activeEditorChanged()
,
AppAction.editingContextChanged()