org.xmlhammer.gui.actions
Class OpenAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.bounce.RunnableAction
          extended by org.xmlhammer.gui.actions.OpenAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.EventListener, javax.swing.Action

public class OpenAction
extends org.bounce.RunnableAction

An action that can be used to open a XML Hammer project.

Version:
$Revision: 1.23 $, $Date: 2008/03/05 22:13:43 $
Author:
Edwin Dankert
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
OpenAction(XMLHammer parent)
          The constructor for the action which allows opening of XML Documents.
 
Method Summary
static Project open(java.net.URI uri)
           
 void run()
          The implementation of the add document action, called after a user action.
 
Methods inherited from class org.bounce.RunnableAction
actionPerformed
 
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

OpenAction

public OpenAction(XMLHammer parent)
The constructor for the action which allows opening of XML Documents.

Parameters:
parent - the parent frame.
Method Detail

run

public void run()
The implementation of the add document action, called after a user action.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class org.bounce.RunnableAction

open

public static Project open(java.net.URI uri)
                    throws javax.xml.bind.JAXBException,
                           javax.xml.transform.TransformerException
Throws:
javax.xml.bind.JAXBException
javax.xml.transform.TransformerException


Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.