net.sourceforge.java.feednread.frontend.event.action
Class CheckboxAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended bynet.sourceforge.java.feednread.frontend.event.action.CheckboxAction
All Implemented Interfaces:
IAction
Direct Known Subclasses:
NewsContentViewAction, NewsFeedAddressBarViewAction, NewsFeedTabBarViewAction, NotificationBarViewAction, SideBarViewAction, ToolBarViewAction

public class CheckboxAction
extends Action

Action to render a customized checkbox item from an Image.

Author:
Sebastian Machhausen

Field Summary
private  boolean checked
           true if checked; false otherwise
 
Fields inherited from class org.eclipse.jface.action.Action
 
Fields inherited from class org.eclipse.core.commands.common.EventManager
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
CheckboxAction(String text)
           Creates a new CheckboxAction.
 
Method Summary
 boolean isChecked()
           Gets the checked status of this CheckboxAction.
 void runWithEvent(Event event)
           Inverts the checked status of this CheckboxAction and calls runWithEvent(Event).
 void setChecked(boolean checked)
           Sets the checked status of this CheckboxAction.
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, setAccelerator, setActionDefinitionId, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

checked

private boolean checked

true if checked; false otherwise

Constructor Detail

CheckboxAction

public CheckboxAction(String text)

Creates a new CheckboxAction.

Parameters:
text - the text to set for this CheckboxAction
Method Detail

setChecked

public void setChecked(boolean checked)

Sets the checked status of this CheckboxAction.

Parameters:
checked - true for checked; false for unchecked

isChecked

public boolean isChecked()

Gets the checked status of this CheckboxAction.

Returns:
true if checked; false if unchecked

runWithEvent

public void runWithEvent(Event event)

Inverts the checked status of this CheckboxAction and calls runWithEvent(Event).