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

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<DimensionPane,MondrianModel.Level>
              extended by ca.sqlpower.architect.swingui.olap.action.CreateLevelAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CreateLevelAction
extends CreateOLAPChildAction<DimensionPane,MondrianModel.Level>

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
CreateLevelAction(ArchitectSwingSession session, PlayPen olapPlayPen)
           
 
Method Summary
protected  MondrianModel.Level addNewChild(DimensionPane 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.Level 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

CreateLevelAction

public CreateLevelAction(ArchitectSwingSession session,
                         PlayPen olapPlayPen)
Method Detail

addNewChild

protected MondrianModel.Level addNewChild(DimensionPane 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<DimensionPane,MondrianModel.Level>
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.Level model)
Description copied from class: CreateOLAPChildAction
Creates a DataEntryPanel for editing the given child item.

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


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