eTextReader.actions
Class HighlightTypeNotationAction
java.lang.Object
javax.swing.AbstractAction
eTextReader.actions.BaseAction
eTextReader.actions.NotationListingAction
eTextReader.actions.HighlightTypeNotationAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class HighlightTypeNotationAction
- extends NotationListingAction
A NotationListingAction that only shows highlights of a particular type
- Author:
- mcfall
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
protected java.lang.String |
getName()
Returns the name associated with this action, displayed in menus, buttons, etc. |
protected java.lang.String |
getTooltipText()
Returns the tooltip text associated with this action |
void |
setHighlightType(java.lang.String type)
Changes the type of highlight that this action is associated with |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subjectFilter
private FieldFilter subjectFilter
typeFilter
private AnnotationTypeFilter typeFilter
HighlightTypeNotationAction
public HighlightTypeNotationAction()
HighlightTypeNotationAction
public HighlightTypeNotationAction(java.lang.String filename)
HighlightTypeNotationAction
public HighlightTypeNotationAction(ContentContainer container)
- Parameters:
container
-
HighlightTypeNotationAction
public HighlightTypeNotationAction(ContentContainer container,
java.lang.String fileName)
- Parameters:
container
- fileName
-
setHighlightType
public void setHighlightType(java.lang.String type)
- Changes the type of highlight that this action is associated with
- Parameters:
type
- the new type of highlight
getName
protected java.lang.String getName()
- Description copied from class:
NotationListingAction
- Returns the name associated with this action, displayed in menus, buttons, etc.
- Specified by:
getName
in class NotationListingAction
- Returns:
- the String used to represent this action
getTooltipText
protected java.lang.String getTooltipText()
- Description copied from class:
NotationListingAction
- Returns the tooltip text associated with this action
- Specified by:
getTooltipText
in class NotationListingAction
- Returns:
- the String used as the tooltip text