|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.jpivot.core.ExtensionSupport
com.tonbeller.jpivot.olap.model.OlapModelDecorator
com.tonbeller.jpivot.tags.OlapModelProxy
public class OlapModelProxy
proxy for OlapModel. There is one instance per session, the GUI components refer to this instance. When the underlying OlapModel (decoree) is exchanged, a structureChanged event is fired.
OlapModelProxy is responsible for calling initialize/destroy on its decoree(s). When a new decoree is set, the previous one will be destroyed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.model.OlapModel |
---|
OlapModel.EmptyCubeException, OlapModel.ResultTooLargeException |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NAME
|
Fields inherited from class com.tonbeller.jpivot.olap.model.OlapModelDecorator |
---|
delegate |
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
---|
EXTENSIONAL, INTENSIONAL |
Method Summary | |
---|---|
void |
addModelChangeListener(ModelChangeListener l)
adds a model change listener |
void |
destroy()
OlapModelProxy is responsible for calling initialize/destroy |
void |
destroyAll()
|
void |
destroyQuery(java.lang.String queryName)
|
StateManager |
getStateManager()
for Tests only |
void |
initialize()
OlapModelProxy is responsible for calling initialize/destroy |
void |
initializeAndShow(OlapModel model)
destroys the current model, if present. |
void |
initializeAndShow(java.lang.String queryName,
OlapModel model)
destroys the current model with the given queryName , if present. |
static OlapModelProxy |
instance(java.lang.String id,
javax.servlet.http.HttpSession session)
|
static OlapModelProxy |
instance(java.lang.String id,
javax.servlet.http.HttpSession session,
boolean stackMode)
retrieves the instance from the session. |
void |
removeModelChangeListener(ModelChangeListener l)
removes a model change listener |
void |
showByName(java.lang.String queryName)
shows the query that was initialized with queryName . |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent ev)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent ev)
|
Methods inherited from class com.tonbeller.jpivot.olap.model.OlapModelDecorator |
---|
addExtension, decorate, getBookmarkState, getDelegate, getDimensions, getExtension, getExtensions, getID, getMeasures, getResult, getRootModel, getTopDecorator, setBookmarkState, setDelegate, setID, setLocale, setServletContext |
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport |
---|
getId, getModel, modelInitialized, setId, setModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_NAME
Method Detail |
---|
public static OlapModelProxy instance(java.lang.String id, javax.servlet.http.HttpSession session)
public static OlapModelProxy instance(java.lang.String id, javax.servlet.http.HttpSession session, boolean stackMode)
id
- the name of the session attribute that will be created. Use this name to reference
from other tags like pivot table, chart etc.session
- the current session, will contain the new created attributestackMode
- if true, queries with different names are stacked, i.e. a StackStateManager
will be used. Otherwise queries with different names will exist parallel, i.e. a PageStackManager
is used. This attribute is evaluated only when the session attribute is created, i.e. when
this method is called for the first time.public void initializeAndShow(OlapModel model) throws java.lang.Exception
java.lang.Exception
public void initializeAndShow(java.lang.String queryName, OlapModel model) throws java.lang.Exception
queryName
, if present.
Then the new model is initalized and shown. Depending on the StateManager type
queries with other names may be popped off the stack and destroyed.
java.lang.Exception
showByName(String)
public void showByName(java.lang.String queryName) throws java.lang.Exception
queryName
.
java.lang.Exception
initializeAndShow(String, OlapModel)
public void destroyAll() throws java.lang.Exception
java.lang.Exception
public void destroyQuery(java.lang.String queryName) throws java.lang.Exception
java.lang.Exception
public void addModelChangeListener(ModelChangeListener l)
Model
addModelChangeListener
in interface Model
addModelChangeListener
in class OlapModelDecorator
public void removeModelChangeListener(ModelChangeListener l)
Model
removeModelChangeListener
in interface Model
removeModelChangeListener
in class OlapModelDecorator
public void valueBound(javax.servlet.http.HttpSessionBindingEvent ev)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent ev)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public void destroy()
destroy
in interface OlapModel
destroy
in class OlapModelDecorator
RuntimeExecption
- if calledpublic void initialize()
initialize
in interface OlapModel
initialize
in class OlapModelDecorator
RuntimeExecption
- if calledpublic StateManager getStateManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |