bluej.action
Class OnlineExampleAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by bluej.action.AbstractEnvAction
          extended by bluej.action.OnlineExampleAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class OnlineExampleAction
extends AbstractEnvAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class bluej.action.AbstractEnvAction
bluej, prefs
 
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
OnlineExampleAction(java.lang.String menuName, java.lang.String msg)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 void createFile(java.lang.String className, java.lang.String fileName, java.lang.String fileURL)
          Create a file from the fileURL
 void processLocalExample()
          Copy all files from the local examples directory to the current project
 void processOnlineExample()
           
 
Methods inherited from class bluej.action.AbstractEnvAction
getBluej, getPrefs, setBluej, setPrefs
 
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

OnlineExampleAction

public OnlineExampleAction(java.lang.String menuName,
                           java.lang.String msg)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)

processLocalExample

public void processLocalExample()
Copy all files from the local examples directory to the current project


processOnlineExample

public void processOnlineExample()

createFile

public void createFile(java.lang.String className,
                       java.lang.String fileName,
                       java.lang.String fileURL)
                throws java.lang.Exception
Create a file from the fileURL

Parameters:
fileName -
fileURL -
Throws:
java.lang.Exception