|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sapportals.wcm.rendering.base.AbstractProxyControl
implements the IProxy and extends the
WcmBaseControl. It acts as the base class for all classes that
work as interface between the WD-framework and the rendering classes underneath.
| Field Summary | |
static java.lang.String |
DISPATCH_EVENT
|
static java.lang.String |
HTMLB_PREFIX
constant that can be used to filter out parameters in the URL that are only needed for htmlb. |
protected boolean |
isFirstCall
|
static java.lang.String |
ON_DELEGATED_CLICK
|
static java.lang.String |
ON_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUICommand |
static java.lang.String |
ON_MASS_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUIMassCommand |
static java.lang.String |
ON_NAVIGATE
constant to use as a target for the creation of Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted |
protected java.util.HashMap |
renderKeys
|
protected ISearchSession |
searchsession
|
| Fields inherited from interface com.sapportals.wcm.rendering.base.IProxy |
ROOT_RID |
| Constructor Summary | |
AbstractProxyControl()
|
|
| Method Summary | |
void |
addControlStatus(java.lang.String id,
IControlStatus status)
acts as a wrapper around the ControlStatusService. |
protected boolean |
checkEvent(com.sapportals.wdf.event.WdfEvent event)
returns true, if the event to clean status has been fired |
java.lang.String |
createDispatchableID(java.lang.String handler,
java.util.ArrayList values)
creates an id that contains dispatch information. |
java.lang.String |
createDispatchableID(java.lang.String handler,
java.lang.String value)
creates an id that contains dispatch information. |
abstract java.lang.String |
createNavigationTarget(ICollection collection)
creates the needed information for a Link or Button to
offer navigation to the given ICollection. |
java.util.List |
decodeValues(com.sapportals.htmlb.event.Event event)
Returns the values created via the createDispatchableID methods and returns the list of parameters
in the same order they were when submitting them. |
protected void |
deleteAllControlStatus(boolean partial)
|
void |
deleteControlStatus(java.lang.String id)
deletes the instance of the IControlStatus that was created with the given key.
|
ResourcePropertyAmalgamation |
getAmalgamation()
|
abstract IUIBaseCommand |
getCommand()
|
IControlStatus |
getControlStatus(java.lang.String id)
returns the IControlStatus that has been added to the proxy using its
addControlStatus method. |
java.lang.String |
getCssCacheID()
|
com.sapportals.htmlb.page.DynPage |
getDynamicPage()
returns the DynPage the proxy is created in |
abstract java.lang.String |
getDynamicPane()
returns the name of the PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow. |
java.util.ArrayList |
getEventValues(com.sapportals.htmlb.event.Event event)
|
java.lang.String[] |
getInputFromEntryControls()
iterates through all controls that implement the IInputFieldControlinterface and
asks for their input. |
abstract java.util.Hashtable |
getParameters()
|
abstract com.sapportals.wdf.element.PaneElement |
getPresentDynamicPane()
returns the PaneElement that holds the current control. |
IResource |
getResource()
returns the present resource of the control or null.
|
protected RID |
getRID()
|
ISearchSession |
getSearchSession()
returns the search session attribute of the proxy. |
abstract java.lang.String |
getStartUri()
returns the starturi of the control or null. |
abstract IProxy |
getTargetControl()
returns the event handler control. |
abstract java.lang.String |
getUri()
returns the uri of the control. |
java.lang.String |
getUserInput(java.lang.String key)
returns the input from the http-request that was specified in a field with the given field |
protected void |
initialize()
|
boolean |
isPreviewEnabled()
returns a flag, if the present screen offers functionality to view resources in this screen. |
com.sapportals.wdf.event.WdfEvent |
onDelegatedClick(com.sapportals.htmlb.event.Event event)
|
abstract com.sapportals.wdf.event.WdfEvent |
onExecute(com.sapportals.htmlb.event.Event event)
This method is called by the WDF when a Link or a Button
with this target has been clicked and the ON_EXECUTE constant has been
used as target for link or button creation. |
abstract com.sapportals.wdf.event.WdfEvent |
onMassExecute(com.sapportals.htmlb.event.Event event)
This method is called by the WDF when a Link or a Button
with this target has been clicked and the ON_MASS_EXECUTE constant has been
used as target for link or button creation. |
protected void |
refreshAllControlStatus()
|
java.lang.String |
register(IDelegatedReceiver receiver)
registers the given receiver with the implementing class of this interface. |
void |
setCssCacheID(java.lang.String id)
|
protected void |
setRID(RID rid)
|
abstract void |
setUri(java.lang.String string)
sets the uri of the control. |
| Methods inherited from interface com.sapportals.wcm.rendering.base.IProxy |
createUniqueComponentId, getHabitat, getResourceContext |
| Field Detail |
protected java.util.HashMap renderKeys
protected ISearchSession searchsession
protected boolean isFirstCall
public static final java.lang.String ON_EXECUTE
Events through
the WdfEventDispatcher for IUICommandpublic static final java.lang.String ON_MASS_EXECUTE
Events through
the WdfEventDispatcher for IUIMassCommandpublic static final java.lang.String ON_NAVIGATE
Events through
the WdfEventDispatcher when a navigation via resource-URLs is wantedpublic static final java.lang.String ON_DELEGATED_CLICK
public static final java.lang.String HTMLB_PREFIX
HashMap with
the URL-Parameters that can be used by all classes holds less entriespublic static final java.lang.String DISPATCH_EVENT
| Constructor Detail |
public AbstractProxyControl()
| Method Detail |
public abstract com.sapportals.wdf.event.WdfEvent onExecute(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
Link or a Button
with this target has been clicked and the ON_EXECUTE constant has been
used as target for link or button creation. All IExecCommand created by the
UICommandFactory are also pointing to this method when clicked.
The inner structure of the values encoded in the Event can only be decoded
by the UICommandFactory The IExecCommand can change the static
screenflow, defined in the xml-files of the WDF. If they do, this change is carried out within
this method. The returned event triggers the screenflow.event - encapsulates all information needed to carry out the functionality
of the link or button that raised it.WdfEventReceivers and
that might trigger a screenflow. Can return null.a - WdfException that can encapsulate other exceptions.
public abstract com.sapportals.wdf.event.WdfEvent onMassExecute(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
Link or a Button
with this target has been clicked and the ON_MASS_EXECUTE constant has been
used as target for link or button creation. All IMassExecCommand created by the
UICommandFactory are also pointing to this method when clicked.
The inner structure of the values encoded in the Event can only be decoded
by the UICommandFactory The IMassExecCommand can change the static
screenflow, defined in the xml-files of the WDF. If they do, this change is carried out within
this method. The returned event triggers the screenflow.event - encapsulates all information needed to carry out the functionality
of the link or button that raised it.WdfEventReceivers and
that might trigger a screenflow. Can return null.a - WdfException that can encapsulate other exceptions.public abstract java.lang.String getDynamicPane()
PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow.getDynamicPane in interface IProxy
public abstract com.sapportals.wdf.element.PaneElement getPresentDynamicPane()
throws com.sapportals.wdf.WdfException
PaneElement that holds the current control.WdfException. - This can happen, if the static WDF-file is badly configured,
e.g. if the Pane, whose name is returned in the controls getDynamicPane
holds no or more than one pane.
public abstract java.lang.String createNavigationTarget(ICollection collection)
throws WcmException
Link or Button to
offer navigation to the given ICollection. It uses the
WdfEventDispatcher. The parameters in this string have to be in the
following order: Components in an iView may specify the same navigation target,
it is necessary to ensure unique IDs for each of these components. One way to do this
is to add some unique string at a later position in the parameter list, such as
new UUID().toString().createNavigationTarget in interface IProxycollection - the folder to navigate toWdfException - if an exception occurs in the repository framework or the WDFpublic abstract IProxy getTargetControl()
return this
getTargetControl in interface IProxyWdfEventDispatcher when
creating a Link or Button. Must not return null
public abstract java.util.Hashtable getParameters()
throws WcmException
getParameters in interface IProxyString, the hashtable's own clone method will suffice.
public abstract IUIBaseCommand getCommand()
throws WcmException
getCommand in interface IProxyIUIBaseCommand can ask the AbstractProxyControl for this
command and use it.public abstract java.lang.String getUri()
nullgetUri in interface IProxypublic abstract void setUri(java.lang.String string)
nullpublic abstract java.lang.String getStartUri()
null. The start-uri states
the furthermost ancestor of the uri that is available for browsing.getStartUri in interface IProxypublic boolean isPreviewEnabled()
isPreviewEnabled in interface IProxyfalse.public IResource getResource()
null.
The implementation available in this abstract class always returns null.getResource in interface IProxy
protected void initialize()
throws com.sapportals.wdf.WdfException
public java.lang.String[] getInputFromEntryControls()
throws WcmException
IInputFieldControlinterface and
asks for their input. The controls must be registered at the WD-Framework
by the implementing class.null
The implementation available in this abstract class always returns null.WdfException - Exception raised in failure situation
public void addControlStatus(java.lang.String id,
IControlStatus status)
IProxyControlStatusService. The class that calls this method
must be able to reproduce the key at a later time to retrieve the status provided here. The
implementation must map the keys returned by the ControlStatusService to the key
provided here. The method will raise a NullPointerException if any of the parameters
is nulladdControlStatus in interface IProxycom.sapportals.wcm.rendering.base.IProxykey - - the key the calling class will use to retrieve the given status through the proxy's
getControlStatus method. Must not be nullstatus - - the status the calling class wants to store. Must not be nullpublic IControlStatus getControlStatus(java.lang.String id)
IProxyIControlStatus that has been added to the proxy using its
addControlStatus method. The calling class must be aware of the fact, that this
method might return null, even if the status has been created with this key before.
This can have several reasons. First of all, the ControlStatusService might have
removed the status due to a too long idle time or a too high server load. Also, certain events
within the interaction (e.g. the navigation to another resource) can trigger the deletion of
all status' registered with that proxy.getControlStatus in interface IProxycom.sapportals.wcm.rendering.base.IProxykey - the key of the status to retrieve, must not be nullpublic void deleteControlStatus(java.lang.String id)
IProxyIControlStatus that was created with the given key.
If no instance for this key can be found, the implementing class should log this fact.deleteControlStatus in interface IProxycom.sapportals.wcm.rendering.base.IProxykey - the id of the status to delete as it was specified by the calling class in the
addControlStatus method of this interfaceprotected void deleteAllControlStatus(boolean partial)
partial - flag telling if all IControlStatus instances
should be deleted (this is for value false), or if only
instances should be deleted which do not implement the
IRefreshSurvivor interface (this is for value true).protected boolean checkEvent(com.sapportals.wdf.event.WdfEvent event)
true, if the event to clean status has been firedprotected void refreshAllControlStatus()
public void setCssCacheID(java.lang.String id)
public java.lang.String getCssCacheID()
public java.lang.String register(IDelegatedReceiver receiver)
IProxyString instance. After a server-roundtrip, the IProxy will recreate all
receivers from the previous trip and therefore all of these receivers will register with the same IDs
again. This ensures, that a receiver will be identified when an Event is received
by the proxyregister in interface IProxycom.sapportals.wcm.rendering.base.IProxyp0 -
public java.util.ArrayList getEventValues(com.sapportals.htmlb.event.Event event)
throws WcmException
public com.sapportals.wdf.event.WdfEvent onDelegatedClick(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
public ISearchSession getSearchSession()
IProxygetSearchSession in interface IProxycom.sapportals.wcm.rendering.base.IProxynull
public java.lang.String createDispatchableID(java.lang.String handler,
java.util.ArrayList values)
throws WcmException
IProxyEvent is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.createDispatchableID in interface IProxycom.sapportals.wcm.rendering.base.IProxyhandler - The method that will be called when the event with this id is fired.values - The objects of this list will be encoded using their
toString() method and will be available in the handler method when the event is receivedComponent.WcmException - Exception raised in failure situation<{WcmException}> -
public java.lang.String createDispatchableID(java.lang.String handler,
java.lang.String value)
throws WcmException
IProxyEvent is
raised with this id, the event will be send to the implementing class, using the
information of the given parameters.createDispatchableID in interface IProxycom.sapportals.wcm.rendering.base.IProxyhandler - The method that will be called when the event with this id is fired.value - The value will be available in the handler method when the event is received.
This value will not be encodedComponent.WcmException - Exception raised in failure situation<{WcmException}> - public java.util.List decodeValues(com.sapportals.htmlb.event.Event event)
IProxycreateDispatchableID methods and returns the list of parameters
in the same order they were when submitting them. There will be no en- or decoding done to take care of special
characters. If the createDispatchableID(String, String) method is used,
a List with only one entry will be returned.decodeValues in interface IProxycom.sapportals.wcm.rendering.base.IProxyevent - The event that contains the encoded values.public com.sapportals.htmlb.page.DynPage getDynamicPage()
IProxygetDynamicPage in interface IProxycom.sapportals.wcm.rendering.base.IProxypublic ResourcePropertyAmalgamation getAmalgamation()
getAmalgamation in interface IAmalgamationProviderpublic java.lang.String getUserInput(java.lang.String key)
IProxygetUserInput in interface IProxycom.sapportals.wcm.rendering.base.IProxykey - - the key that was used as ID when creating the field in the http-responseprotected final RID getRID()
protected final void setRID(RID rid)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||