com.tonbeller.jpivot.table.navi
Class DrillExpandUI

java.lang.Object
  extended by com.tonbeller.jpivot.table.PartBuilderSupport
      extended by com.tonbeller.jpivot.table.TableComponentExtensionSupport
          extended by com.tonbeller.jpivot.table.navi.DrillExpandUI
All Implemented Interfaces:
ModelChangeListener, PartBuilder, TableComponentExtension, Available, com.tonbeller.wcf.bookmarks.Bookmarkable, java.util.EventListener
Direct Known Subclasses:
DrillExpandMemberUI, DrillExpandPositionUI, DrillReplaceUI

public abstract class DrillExpandUI
extends TableComponentExtensionSupport
implements ModelChangeListener

adds expand-node, collapse-node functionality. Decorates the controller (dispatcher) and view (renderer) of the table component.

Author:
av

Field Summary
 
Fields inherited from class com.tonbeller.jpivot.table.TableComponentExtensionSupport
enabled
 
Fields inherited from class com.tonbeller.jpivot.table.PartBuilderSupport
table
 
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable
EXTENSIONAL, INTENSIONAL
 
Constructor Summary
DrillExpandUI()
           
 
Method Summary
protected abstract  boolean canCollapse(Span span)
           
protected abstract  boolean canExpand(Span span)
           
protected abstract  void collapse(Span span)
           
protected abstract  void expand(Span span)
           
protected abstract  java.lang.String getCollapseImage()
           
protected abstract  java.lang.String getExpandImage()
           
protected abstract  java.lang.String getOtherImage()
           
 void initialize(com.tonbeller.wcf.controller.RequestContext context, TableComponent table)
          deferred ctor, called once after creation
protected abstract  boolean initializeExtension()
           
 boolean isAvailable()
          true, if the current olapModel supports all extensions that are required by this partBuilder.
 void modelChanged(ModelChangeEvent e)
          model data have changed, e.g. user has navigated
 void startBuild(com.tonbeller.wcf.controller.RequestContext context)
          called before the DOM is built after the TableRenderer has been fully initialized
 void structureChanged(ModelChangeEvent e)
          major change, e.g. extensions added/removed
 
Methods inherited from class com.tonbeller.jpivot.table.TableComponentExtensionSupport
getBookmarkState, isEnabled, setBookmarkState, setEnabled
 
Methods inherited from class com.tonbeller.jpivot.table.PartBuilderSupport
destroy, setDirty, stopBuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.table.TableComponentExtension
getId
 
Methods inherited from interface com.tonbeller.jpivot.table.PartBuilder
destroy, stopBuild
 

Constructor Detail

DrillExpandUI

public DrillExpandUI()
Method Detail

initialize

public void initialize(com.tonbeller.wcf.controller.RequestContext context,
                       TableComponent table)
                throws java.lang.Exception
Description copied from interface: PartBuilder
deferred ctor, called once after creation

Specified by:
initialize in interface PartBuilder
Overrides:
initialize in class PartBuilderSupport
Throws:
java.lang.Exception

startBuild

public void startBuild(com.tonbeller.wcf.controller.RequestContext context)
Description copied from interface: PartBuilder
called before the DOM is built after the TableRenderer has been fully initialized

Specified by:
startBuild in interface PartBuilder
Overrides:
startBuild in class PartBuilderSupport

initializeExtension

protected abstract boolean initializeExtension()
Returns:
true if extension is available

canExpand

protected abstract boolean canExpand(Span span)

expand

protected abstract void expand(Span span)

canCollapse

protected abstract boolean canCollapse(Span span)

collapse

protected abstract void collapse(Span span)

getExpandImage

protected abstract java.lang.String getExpandImage()

getCollapseImage

protected abstract java.lang.String getCollapseImage()

getOtherImage

protected abstract java.lang.String getOtherImage()

isAvailable

public boolean isAvailable()
Description copied from interface: PartBuilder
true, if the current olapModel supports all extensions that are required by this partBuilder. If false, a GUI will not show related items.

Specified by:
isAvailable in interface PartBuilder
Specified by:
isAvailable in interface Available
Overrides:
isAvailable in class PartBuilderSupport

modelChanged

public void modelChanged(ModelChangeEvent e)
Description copied from interface: ModelChangeListener
model data have changed, e.g. user has navigated

Specified by:
modelChanged in interface ModelChangeListener

structureChanged

public void structureChanged(ModelChangeEvent e)
Description copied from interface: ModelChangeListener
major change, e.g. extensions added/removed

Specified by:
structureChanged in interface ModelChangeListener