ca.sqlpower.wabit.swingui.action
Class CreateLayoutFromQueryAction

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

public class CreateLayoutFromQueryAction
extends javax.swing.AbstractAction

See Also:
Serialized Form

Field Summary
static javax.swing.Icon ADD_LAYOUT_ICON
           
 
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
CreateLayoutFromQueryAction(WabitWorkspace wabitworkspace, WabitObject objectToLayout, java.lang.String layoutName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static Report createDefaultLayout(WabitWorkspace workspace, ReportContentRenderer contentRenderer, java.lang.String layoutName)
          Creates a new layout with standard margins, headers, and footers.
 
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
 

Field Detail

ADD_LAYOUT_ICON

public static final javax.swing.Icon ADD_LAYOUT_ICON
Constructor Detail

CreateLayoutFromQueryAction

public CreateLayoutFromQueryAction(WabitWorkspace wabitworkspace,
                                   WabitObject objectToLayout,
                                   java.lang.String layoutName)
Method Detail

actionPerformed

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

createDefaultLayout

public static Report createDefaultLayout(WabitWorkspace workspace,
                                         ReportContentRenderer contentRenderer,
                                         java.lang.String layoutName)
Creates a new layout with standard margins, headers, and footers. The body of the content is provided by the given ReportContentRenderer

Parameters:
workspace - The workspace that the new layout will be added to
contentRenderer - This is the renderer which the new layout will use
layoutName - This is the name of the new Layout, in the tree " Layout" will be appended to this name.
Returns:
The new layout that was added to the workspace.


Copyright © 2009. All Rights Reserved.