ca.sqlpower.architect.swingui.olap.action
Class CreateDimensionUsageAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ca.sqlpower.architect.swingui.action.AbstractArchitectAction
          extended by ca.sqlpower.architect.swingui.olap.action.CreateUsageAction<DimensionPane,CubePane>
              extended by ca.sqlpower.architect.swingui.olap.action.CreateDimensionUsageAction
All Implemented Interfaces:
SelectionListener, PlayPen.CancelableListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CreateDimensionUsageAction
extends CreateUsageAction<DimensionPane,CubePane>

Creates a dimension usage after the user clicks a DimensionPane and a CubePane.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.sqlpower.architect.swingui.olap.action.CreateUsageAction
active
 
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
CreateDimensionUsageAction(ArchitectSwingSession session, PlayPen pp)
           
 
Method Summary
protected  void createUsage(DimensionPane dp, CubePane cp)
          Creates the usage this action is supposed to create, and attaches it to the appropriate place(s) in the business model as well as adding it and attaching it to the playpen.
 
Methods inherited from class ca.sqlpower.architect.swingui.olap.action.CreateUsageAction
actionPerformed, cancel, itemDeselected, itemSelected
 
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

CreateDimensionUsageAction

public CreateDimensionUsageAction(ArchitectSwingSession session,
                                  PlayPen pp)
Method Detail

createUsage

protected void createUsage(DimensionPane dp,
                           CubePane cp)
Description copied from class: CreateUsageAction
Creates the usage this action is supposed to create, and attaches it to the appropriate place(s) in the business model as well as adding it and attaching it to the playpen.

Specified by:
createUsage in class CreateUsageAction<DimensionPane,CubePane>
Parameters:
dp - The pane of type P1 that the user clicked
cp - The pane of type P2 that the user clicked


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