de.miethxml.hawron.gui.context.editor
Class EditorAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.miethxml.hawron.gui.context.editor.EditorAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, EditorCloseListener, java.util.EventListener, RepositorySelectionListener, java.io.Serializable

public class EditorAction
extends javax.swing.AbstractAction
implements EditorCloseListener, RepositorySelectionListener

Author:
Simon Mieth
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
EditorAction()
           
EditorAction(Editor editor)
           
EditorAction(java.lang.String name)
           
EditorAction(java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void close(CacheableEditor editor)
           
 void destroy()
           
 void directorySelected(Reloadable model, FileModel directory)
           
 void fileSelected(Reloadable model, FileModel file)
           
 java.lang.String getToolTip()
           
 boolean isCheckSupportedExtensions()
           
 void setCheckSupportedExtensions(boolean check)
           
 void setFileSystemModel(RepositoryModel model)
           
 void unselect()
           
 
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
 

Constructor Detail

EditorAction

public EditorAction()

EditorAction

public EditorAction(java.lang.String name)
Parameters:
name -

EditorAction

public EditorAction(java.lang.String name,
                    javax.swing.Icon icon)
Parameters:
name -
icon -

EditorAction

public EditorAction(Editor editor)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

close

public void close(CacheableEditor editor)
Specified by:
close in interface EditorCloseListener

directorySelected

public void directorySelected(Reloadable model,
                              FileModel directory)
Specified by:
directorySelected in interface RepositorySelectionListener

fileSelected

public void fileSelected(Reloadable model,
                         FileModel file)
Specified by:
fileSelected in interface RepositorySelectionListener

setFileSystemModel

public void setFileSystemModel(RepositoryModel model)

getToolTip

public java.lang.String getToolTip()

destroy

public void destroy()

unselect

public void unselect()
Specified by:
unselect in interface RepositorySelectionListener

isCheckSupportedExtensions

public boolean isCheckSupportedExtensions()
Returns:
Returns the supportAll.

setCheckSupportedExtensions

public void setCheckSupportedExtensions(boolean check)