ca.sqlpower.architect.swingui.action
Class ExportPlaypenToPDFAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ca.sqlpower.architect.swingui.action.AbstractArchitectAction
          extended by ca.sqlpower.architect.swingui.action.ProgressAction
              extended by ca.sqlpower.architect.swingui.action.ExportPlaypenToPDFAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ExportPlaypenToPDFAction
extends ProgressAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.sqlpower.architect.swingui.action.AbstractArchitectAction
frame, playpen, session
 
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
ExportPlaypenToPDFAction(ArchitectSwingSession session)
           
 
Method Summary
 void cleanUp(ca.sqlpower.util.MonitorableImpl monitor)
          Perform any cleanup code here
 void doStuff(ca.sqlpower.util.MonitorableImpl monitor, java.util.Map<java.lang.String,java.lang.Object> properties)
          doStuff replaces the actionPerformed() call
 java.lang.String getButtonText()
          Return the text that shows up on the dialog button
 java.lang.String getDialogMessage()
          Gets the message that will be displayed on the progressbar
 boolean setup(ca.sqlpower.util.MonitorableImpl monitor, java.util.Map<java.lang.String,java.lang.Object> properties)
          When an action is performed on this it pops up the save dialog and requests a file to save to.
 
Methods inherited from class ca.sqlpower.architect.swingui.action.ProgressAction
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

ExportPlaypenToPDFAction

public ExportPlaypenToPDFAction(ArchitectSwingSession session)
Method Detail

setup

public boolean setup(ca.sqlpower.util.MonitorableImpl monitor,
                     java.util.Map<java.lang.String,java.lang.Object> properties)
When an action is performed on this it pops up the save dialog and requests a file to save to. When it gets that it draws the playpen to a PDF file on a seperate thread.

Specified by:
setup in class ProgressAction
Returns:
return true to continue with the action, return false to stop the action This could be used to respond to user choice to cancel the action

cleanUp

public void cleanUp(ca.sqlpower.util.MonitorableImpl monitor)
Description copied from class: ProgressAction
Perform any cleanup code here

Specified by:
cleanUp in class ProgressAction

doStuff

public void doStuff(ca.sqlpower.util.MonitorableImpl monitor,
                    java.util.Map<java.lang.String,java.lang.Object> properties)
Description copied from class: ProgressAction
doStuff replaces the actionPerformed() call

Specified by:
doStuff in class ProgressAction

getDialogMessage

public java.lang.String getDialogMessage()
Description copied from class: ProgressAction
Gets the message that will be displayed on the progressbar

Specified by:
getDialogMessage in class ProgressAction
Returns:
the message displayed on the dialog above the progressbar

getButtonText

public java.lang.String getButtonText()
Description copied from class: ProgressAction
Return the text that shows up on the dialog button

Specified by:
getButtonText in class ProgressAction


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca