net.atlanticbb.tantlinger.ui.text.actions
Class TableEditAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.bushe.swing.action.BasicAction
          extended by net.atlanticbb.tantlinger.ui.DefaultAction
              extended by net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction
                  extended by net.atlanticbb.tantlinger.ui.text.actions.TableEditAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, org.bushe.swing.action.Actionable, org.bushe.swing.action.ContextAware, org.bushe.swing.action.DelegatesEnabled, org.bushe.swing.action.EnabledUpdater, org.bushe.swing.action.ItemAction, org.bushe.swing.action.ShouldBeEnabledDelegate

public class TableEditAction
extends HTMLTextEditAction

Action for adding and removing table elements

Author:
Bob Tantlinger
See Also:
Serialized Form

Field Summary
static int DELETE_CELL
           
static int DELETE_COL
           
static int DELETE_ROW
           
static int INSERT_CELL
           
static int INSERT_COL
           
static int INSERT_ROW
           
 
Fields inherited from class net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction
DISABLED, EDITOR, SOURCE, WYSIWYG
 
Fields inherited from class org.bushe.swing.action.BasicAction
DEFAULT_ENABLED_STATE
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
TableEditAction(int type)
           
 
Method Summary
protected  void sourceEditPerformed(java.awt.event.ActionEvent e, javax.swing.JEditorPane editor)
           
protected  void updateWysiwygContextState(javax.swing.JEditorPane wysEditor)
           
protected  void wysiwygEditPerformed(java.awt.event.ActionEvent e, javax.swing.JEditorPane ed)
           
 
Methods inherited from class net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction
actionPerformedCatch, contextChanged, execute, getCurrentEditor, getEditMode, updateSourceContextState
 
Methods inherited from class net.atlanticbb.tantlinger.ui.DefaultAction
shouldBeEnabled, updateEnabled
 
Methods inherited from class org.bushe.swing.action.BasicAction
actionPerformed, actionPerformedFinally, actionPerformedTemplate, actionPerformedTry, addActionListener, addItemListener, addShouldBeEnabledDelegate, clearContext, createIcon, createIcon, getAccelerator, getActionCommandName, getActionName, getContext, getContextValue, getGroup, getId, getLongDescription, getMenuShowsIcon, getMnemonic, getRoles, getShortDescription, getSmallIcon, getToolbarShowsText, isSelected, propogateActionEvent, propogateItemEvent, putContextValue, putValue, removeActionListener, removeItemListener, removeShouldBeEnabledDelegate, setAccelerator, setActionCommandName, setActionName, setContext, setId, setLongDescription, setMenuShowsIcon, setMnemonic, setRoles, setSelected, setShortDescription, setSmallIcon, setToolbarShowsText, shouldBeEnabled, toString, updateEnabledState
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, removePropertyChangeListener, setEnabled
 

Field Detail

INSERT_CELL

public static final int INSERT_CELL
See Also:
Constant Field Values

DELETE_CELL

public static final int DELETE_CELL
See Also:
Constant Field Values

INSERT_ROW

public static final int INSERT_ROW
See Also:
Constant Field Values

DELETE_ROW

public static final int DELETE_ROW
See Also:
Constant Field Values

INSERT_COL

public static final int INSERT_COL
See Also:
Constant Field Values

DELETE_COL

public static final int DELETE_COL
See Also:
Constant Field Values
Constructor Detail

TableEditAction

public TableEditAction(int type)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

wysiwygEditPerformed

protected void wysiwygEditPerformed(java.awt.event.ActionEvent e,
                                    javax.swing.JEditorPane ed)
Specified by:
wysiwygEditPerformed in class HTMLTextEditAction

updateWysiwygContextState

protected void updateWysiwygContextState(javax.swing.JEditorPane wysEditor)
Overrides:
updateWysiwygContextState in class HTMLTextEditAction

sourceEditPerformed

protected void sourceEditPerformed(java.awt.event.ActionEvent e,
                                   javax.swing.JEditorPane editor)
Specified by:
sourceEditPerformed in class HTMLTextEditAction