tecgraf.javautils.pdfviewer.core.actions
Class PDFAbstractDocumentOpenAwareAction
java.lang.Object
javax.swing.AbstractAction
tecgraf.javautils.pdfviewer.core.actions.PDFAbstractDocumentOpenAwareAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, PDFDocumentOpenCloseListener
- Direct Known Subclasses:
- PDFAbstractPageChangeAction, PDFCloseAction, PDFFitHeightAction, PDFFitWholePageAction, PDFFitWidthAction, PDFShowThumbnailsAction, PDFZoomInAction, PDFZoomOutAction
public abstract class PDFAbstractDocumentOpenAwareAction
- extends AbstractAction
- implements PDFDocumentOpenCloseListener
Ação básica que fica inibida/desabilitada de acordo com a existência de um
doucmento aberto.
- Author:
- Tecgraf
- See Also:
- Serialized Form
| 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 |
PDFAbstractDocumentOpenAwareAction
public PDFAbstractDocumentOpenAwareAction(PDFCorePanel pdfCorePanel,
Icon icon)
- Construtor
- Parameters:
pdfCorePanel - painel básico.icon - ícone da ação
getPDFCorePanel
protected PDFCorePanel getPDFCorePanel()
- Consulta o painel básico associado.
- Returns:
- o painel
documentOpened
public void documentOpened(PDFCorePanel source)
- Indica que um documento PDF foi aberto
- Specified by:
documentOpened in interface PDFDocumentOpenCloseListener
- Parameters:
source - PDFCorePanel origem do evento
documentClosed
public void documentClosed(PDFCorePanel source)
- Indica que um documento PDF foi fechado
- Specified by:
documentClosed in interface PDFDocumentOpenCloseListener
- Parameters:
source - PDFCorePanel origem do evento
Copyright © 2015 Tecgraf/PUC-Rio. All rights reserved.