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

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

public class CreateHierarchyAction
extends CreateOLAPChildAction<DimensionPane,MondrianModel.Hierarchy>

Action for adding a hierarchy to the selected dimension.

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
CreateHierarchyAction(ArchitectSwingSession session, PlayPen olapPlayPen)
           
 
Method Summary
protected  MondrianModel.Hierarchy 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.Hierarchy 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

CreateHierarchyAction

public CreateHierarchyAction(ArchitectSwingSession session,
                             PlayPen olapPlayPen)
Method Detail

addNewChild

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

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


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