ca.sqlpower.wabit.swingui.action
Class CreateLayoutFromQueryAction
java.lang.Object
javax.swing.AbstractAction
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
| 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 |
| 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 |
ADD_LAYOUT_ICON
public static final javax.swing.Icon ADD_LAYOUT_ICON
CreateLayoutFromQueryAction
public CreateLayoutFromQueryAction(WabitWorkspace wabitworkspace,
WabitObject objectToLayout,
java.lang.String layoutName)
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 tocontentRenderer - This is the renderer which the new layout will uselayoutName - 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.