com.tonbeller.jpivot.table.span
Class PropertySpanBuilder

java.lang.Object
  extended by com.tonbeller.jpivot.table.span.PropertySpanBuilder
All Implemented Interfaces:
ModelChangeListener, PropertyConfig, Available, com.tonbeller.wcf.bookmarks.Bookmarkable, java.util.EventListener

public class PropertySpanBuilder
extends java.lang.Object
implements PropertyConfig, ModelChangeListener, Available

adds Span elements to a SpanCalc containing Member Properties.

Author:
av

Nested Class Summary
static class PropertySpanBuilder.BookmarkState
           
 
Field Summary
 
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable
EXTENSIONAL, INTENSIONAL
 
Constructor Summary
PropertySpanBuilder(OlapModel model)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          notifies the listener that this config has changed (and the model has possibly to be redrawn)
 void addPropertySpans(SpanCalc sc)
          adds property columns to sc
 void destroy(javax.servlet.http.HttpSession session)
           
 java.util.List[] getAvailablePropertiesColumns()
           
 java.lang.Object getBookmarkState(int levelOfDetail)
           
 java.util.List getVisiblePropertyMetas()
           
 void initialize(com.tonbeller.wcf.controller.RequestContext context)
           
 boolean isAvailable()
          does the underlying OLAP model support properties?
 boolean isShowProperties()
          shall properties be shown at all?
 void modelChanged(ModelChangeEvent e)
          model data have changed, e.g. user has navigated
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setBookmarkState(java.lang.Object state)
           
 void setShowProperties(boolean b)
           
protected  void setVisiblePropertiesExtension()
          updates the visibleProperties in the extension
 void setVisiblePropertyMetas(java.util.List metas)
          sets the ordered list of visible MemberPropertyMeta instances.
 void structureChanged(ModelChangeEvent e)
          major change, e.g. extensions added/removed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySpanBuilder

public PropertySpanBuilder(OlapModel model)
Method Detail

initialize

public void initialize(com.tonbeller.wcf.controller.RequestContext context)

destroy

public void destroy(javax.servlet.http.HttpSession session)

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

isAvailable

public boolean isAvailable()
Description copied from interface: PropertyConfig
does the underlying OLAP model support properties?

Specified by:
isAvailable in interface PropertyConfig
Specified by:
isAvailable in interface Available

addPropertySpans

public void addPropertySpans(SpanCalc sc)
adds property columns to sc

Parameters:
sc - the SpanCalc to modify

isShowProperties

public boolean isShowProperties()
Description copied from interface: PropertyConfig
shall properties be shown at all?

Specified by:
isShowProperties in interface PropertyConfig

setShowProperties

public void setShowProperties(boolean b)
Specified by:
setShowProperties in interface PropertyConfig

setVisiblePropertyMetas

public void setVisiblePropertyMetas(java.util.List metas)
Description copied from interface: PropertyConfig
sets the ordered list of visible MemberPropertyMeta instances.

Specified by:
setVisiblePropertyMetas in interface PropertyConfig
Parameters:
metas - list containing MemberPropertyMeta. Properties which are not present in the list will not be shown. If null, all properties are shown.

getVisiblePropertyMetas

public java.util.List getVisiblePropertyMetas()
Specified by:
getVisiblePropertyMetas in interface PropertyConfig

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: PropertyConfig
notifies the listener that this config has changed (and the model has possibly to be redrawn)

Specified by:
addPropertyChangeListener in interface PropertyConfig

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface PropertyConfig

getBookmarkState

public java.lang.Object getBookmarkState(int levelOfDetail)
Specified by:
getBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkable

setBookmarkState

public void setBookmarkState(java.lang.Object state)
Specified by:
setBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkable

setVisiblePropertiesExtension

protected void setVisiblePropertiesExtension()
updates the visibleProperties in the extension


getAvailablePropertiesColumns

public java.util.List[] getAvailablePropertiesColumns()