|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.thin.beans.BaseThinBeanUI
Abstract base class for ThinBeanUI instances
Fields inherited from interface oracle.dss.thin.beans.ThinBeanUI |
EVENT_HANDLED, EVENT_NOT_HANDLED, EVENT_RESPONSE_DONE |
Constructor Summary | |
BaseThinBeanUI() Constructor. |
Method Summary | |
void |
addErrorHandler(ErrorHandler errorHandler) Specifies the error handler for this thin bean. |
void |
checkpointState() Initiates tracking of checkpoint state. |
java.lang.String |
generateOnClickSubmit(java.lang.String event) Generates Javascript for an OnClick handler. |
java.lang.String |
getCheckpointState() Retrieves state differences since the last call to checkpointState . |
EventTarget |
getEventTarget(java.lang.String event) Retrieves the event target for the specified event. |
java.util.Locale |
getLocale() Retrieves the Locale that this ThinBeanUI uses. |
java.lang.String |
getState() Retrieves the state of this thin bean. |
java.lang.String |
getThinBeanName() Retrieves the unique name of this thin bean. |
void |
removeErrorHandler() Removes a customized error handler for this thin bean. |
void |
setBaseState() Establishes a base state for the ThinBean , from which state changes are tracked. |
void |
setCheckpointState(java.lang.String state) Sets on this thin bean the state changes since the last call to checkpointState . |
void |
setEventTarget(java.lang.String event, EventTarget target) Specifies an event target for an event that this ThinBeanUI generates. |
void |
setLocale(java.util.Locale loc) Specifies the Locale for this ThinBeanUI . |
void |
setState(java.lang.String state) Sets the state of this ThinBean . |
void |
setThinBeanName(java.lang.String thinBeanName) Specifies a unique name for this thin bean. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.thin.beans.ThinBeanUI |
handleEvent |
Constructor Detail |
public BaseThinBeanUI()
Method Detail |
public void setThinBeanName(java.lang.String thinBeanName)
ThinBean
ThinBeanName
as the value of the source
query parameter, to identify the thin bean that should handle the event.setThinBeanName
in interface ThinBean
oracle.dss.thin.beans.ThinBean
thinBeanName
- A unique name for this thin bean.BIConstants.SOURCE
public java.lang.String getThinBeanName()
ThinBean
ThinBeanName
uniquely identifies a thin bean in an application. Thin-bean events use the ThinBeanName
as the value of the source
query parameter, to identify the thin bean that should handle the event.getThinBeanName
in interface ThinBean
oracle.dss.thin.beans.ThinBean
BIConstants.SOURCE
public void setBaseState()
ThinBean
ThinBean
, from which state changes are tracked. This method clears the current state string for the thin bean.
Whenever you instantiate a thin bean, call this method. If you perform standard initialization every time you load a thin bean, then call this method after the standard initialization code. If you do custom initialization on some, but not all, thin beans, then call this method before the custom initialization code. Any changes that you make to a thin bean state after you call this method are added to the state string that the getState
method returns.
setBaseState
in interface ThinBean
public void setState(java.lang.String state)
ThinBean
ThinBean
. This method takes the state information from a state string and sets it on this thin bean. The state string represents changes that have been made to this thin bean since the last call to the setBaseState
method.
Where you get the state string depends on whether you store state information directly in the URL or in an oracle.cabo.servlet.state.State
object. If you store state in the URL, then the state string comes from the URL. If you store state in a State
object and store the ID of that object in the URL, then the state comes from the State
object. In either case, the stored information originally should have come from a call to the getState
method of this thin bean.
Setting the state of a thin bean lets you recreate a previously displayed page.
Call this method before you handle any thin-bean events. Thin-bean events often change the state of thin beans, so calling this method after you handle events causes the effects of the event handling to be overwritten.
setState
in interface ThinBean
oracle.dss.thin.beans.ThinBean
state
- The string that represents the state of this thin bean.ThinBean.getState()
public java.lang.String getState()
ThinBean
String
that this method returns represents changes that have been made to this thin bean since the last call to its setBaseState
method. Call this method after you handle any thin-bean events to get the current state of this thin bean.
You can store this state information directly in the URL, or you can store the state string in an oracle.cabo.servlet.state.State
, and store the ID of the State
in the URL.
The state information accrues as a user interacts with a thin bean, so the String
that this method returns grows larger with each request that involves this thin bean. For example, the state of a Query
might include information about the measures and selections in the query. If a user drills, then the drill information is added to the state string. If a user changes the layout of the query, then the new layout information is added as well. Each modification to the thin bean adds to the state string. If you store the state of all of the thin beans in your application in the URL, then you must be careful to avoid exceeding the URL limit for any browser that your application supports.
Call this method after you handle any thin-bean events.
getState
in interface ThinBean
oracle.dss.thin.beans.ThinBean
setBaseState
. Unless you use checkpointing, the returned state string represents the current state of this thin bean.ThinBean.setState(java.lang.String)
, ThinBean.setBaseState()
, CheckpointState
public java.lang.String getCheckpointState()
CheckpointState
checkpointState
.
You normally store the returned String
in the URL. The return value from this method, together with the return value from the getState
method, describe all of the state changes that have been made to this thin bean since it was initialized (since the last call to setBaseState
).
getCheckpointState
in interface CheckpointState
oracle.dss.thin.beans.CheckpointState
checkpointState
was last called.CheckpointState.checkpointState()
, ThinBean.getState()
, ThinBean.setBaseState()
public void setCheckpointState(java.lang.String state) throws ThinException
CheckpointState
checkpointState
.setCheckpointState
in interface CheckpointState
oracle.dss.thin.beans.CheckpointState
state
- The state differences from the last call to checkpointState
.ThinException
- If the state could not be set.ThinBean.setState(java.lang.String)
public void checkpointState()
CheckpointState
getState
method of the thin bean. Save the state string that getState
returns in an oracle.cabo.servlet.state.MutableState
object. Save the MutableState
to the BI Beans Catalog, by calling the saveState
method of the BIStateManager
. Then, call this method to keep track of changes that occur after you save the state string in the Catalog.checkpointState
in interface CheckpointState
oracle.dss.thin.beans.CheckpointState
ThinBean.getState()
, BIStateManager
public void setEventTarget(java.lang.String event, EventTarget target)
ThinBeanUI
ThinBeanUI
generates. Call this method to specify the ThinBeanUI
that should handle the event. You can also use event targets to direct an event to another part of your application, to change the target frame for an event, and to add application parameters to an event.setEventTarget
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
event
- A constant that identifies the event to target. Valid constants are defined in the BIConstants
interface and end with "_EVENT".target
- The event target that specifies the thin bean that should handle the event.BIConstants
public EventTarget getEventTarget(java.lang.String event)
ThinBeanUI
getEventTarget
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
event
- A constant that identifies the event whose target you want. Valid constants are defined in the BIConstants
interface and end with "_EVENT".event
.BIConstants
public java.lang.String generateOnClickSubmit(java.lang.String event)
OnClick
handler. Call this method to get Javascript that you can set as the value of the ON_CLICK_ATTR
of a UIX ButtonBean
or LinkBean
. You can use this method to get Javascript for OK and Cancel buttons or links that you add to the page that contains this BaseThinBeanUI
.event
- A constant that represents the thin-bean event that the Javascript should generate. Valid constants are defined in the BIConstants
interface, and they end with "_EVENT".BIConstants
public void addErrorHandler(ErrorHandler errorHandler)
The default error handler prints messages to the console.
Use this method to install your own error handler.
addErrorHandler
in interface ErrorHandlerCallback
eh
- The error handler to use.public void removeErrorHandler()
removeErrorHandler
in interface ErrorHandlerCallback
public void setLocale(java.util.Locale loc)
ThinBeanUI
Locale
for this ThinBeanUI
.setLocale
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
locale
- The Locale
for this ThinBeanUI
.public java.util.Locale getLocale()
ThinBeanUI
Locale
that this ThinBeanUI
uses.getLocale
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
Locale
for this ThinBeanUI
.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |