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

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ca.sqlpower.architect.swingui.action.AbstractArchitectAction
          extended by ca.sqlpower.architect.swingui.olap.action.CreateOLAPChildAction<CubePane,MondrianModel.Measure>
              extended by ca.sqlpower.architect.swingui.olap.action.CreateMeasureAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CreateMeasureAction
extends CreateOLAPChildAction<CubePane,MondrianModel.Measure>

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
CreateMeasureAction(ArchitectSwingSession session, PlayPen olapPlayPen)
           
 
Method Summary
protected  MondrianModel.Measure addNewChild(CubePane pane)
          Creates a new child of type C, sets good default values for its properties, and adds it to the model as appropriate.
protected  ca.sqlpower.swingui.DataEntryPanel createDataEntryPanel(MondrianModel.Measure model)
          Creates a DataEntryPanel for editing the given child item.
 
Methods inherited from class ca.sqlpower.architect.swingui.olap.action.CreateOLAPChildAction
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

CreateMeasureAction

public CreateMeasureAction(ArchitectSwingSession session,
                           PlayPen olapPlayPen)
Method Detail

addNewChild

protected MondrianModel.Measure addNewChild(CubePane pane)
Description copied from class: CreateOLAPChildAction
Creates a new child of type C, sets good default values for its properties, and adds it to the model as appropriate.

Specified by:
addNewChild in class CreateOLAPChildAction<CubePane,MondrianModel.Measure>
Returns:
A new child instance with reasonable default property values, which has been added into the business model tree in the appropriate place.

createDataEntryPanel

protected ca.sqlpower.swingui.DataEntryPanel createDataEntryPanel(MondrianModel.Measure model)
Description copied from class: CreateOLAPChildAction
Creates a DataEntryPanel for editing the given child item.

Specified by:
createDataEntryPanel in class CreateOLAPChildAction<CubePane,MondrianModel.Measure>
Parameters:
model - the item that should be edited in the data entry panel


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