|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 String |
DISPATCH_EVENT
|
static 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 String |
ON_DELEGATED_CLICK
|
static String |
ON_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUICommand |
static String |
ON_MASS_EXECUTE
constant to use as a target for the creation of Events through
the WdfEventDispatcher for IUIMassCommand |
static 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 HashMap |
renderKeys
|
protected ISearchSession |
searchsession
|
| Method Summary | |
void |
addControlStatus(String id,
IControlStatus status)
|
protected boolean |
checkEvent(WdfEvent event)
returns true, if the event to clean status has been fired |
String |
createDispatchableID(String handler,
ArrayList values)
|
String |
createDispatchableID(String handler,
String value)
|
abstract String |
createNavigationTarget(ICollection collection)
creates the needed information for a Link or Button to
offer navigation to the given ICollection. |
List |
decodeValues(Event event)
|
protected void |
deleteAllControlStatus(boolean partial)
|
void |
deleteControlStatus(String id)
|
ResourcePropertyAmalgamation |
getAmalgamation()
|
abstract IUIBaseCommand |
getCommand()
|
IControlStatus |
getControlStatus(String id)
|
String |
getCssCacheID()
|
DynPage |
getDynamicPage()
|
abstract String |
getDynamicPane()
returns the name of the PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow. |
ArrayList |
getEventValues(Event event)
|
String[] |
getInputFromEntryControls()
iterates through all controls that implement the IInputFieldControlinterface and
asks for their input. |
abstract Hashtable |
getParameters()
|
abstract 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()
|
abstract String |
getStartUri()
returns the starturi of the control or null. |
abstract IProxy |
getTargetControl()
returns the event handler control. |
abstract String |
getUri()
returns the uri of the control. |
String |
getUserInput(String key)
|
protected void |
initialize()
|
boolean |
isPreviewEnabled()
returns a flag, if the present screen offers functionality to view resources in this screen. |
WdfEvent |
onDelegatedClick(Event event)
|
abstract WdfEvent |
onExecute(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 WdfEvent |
onMassExecute(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()
|
String |
register(IDelegatedReceiver receiver)
|
void |
setCssCacheID(String id)
|
protected void |
setRID(RID rid)
|
abstract void |
setUri(String string)
sets the uri of the control. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HashMap renderKeys
protected ISearchSession searchsession
protected boolean isFirstCall
public static final String ON_EXECUTE
Events through
the WdfEventDispatcher for IUICommand
public static final String ON_MASS_EXECUTE
Events through
the WdfEventDispatcher for IUIMassCommand
public static final String ON_NAVIGATE
Events through
the WdfEventDispatcher when a navigation via resource-URLs is wanted
public static final String ON_DELEGATED_CLICK
public static final String HTMLB_PREFIX
HashMap with
the URL-Parameters that can be used by all classes holds less entries
public static final String DISPATCH_EVENT
| Method Detail |
public abstract WdfEvent onExecute(Event event)
throws 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.
WdfException
public abstract WdfEvent onMassExecute(Event event)
throws 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.
WdfExceptionpublic abstract String getDynamicPane()
PaneElement that holds the PaneElement
that can be replaced with a dynamic screenflow.
public abstract PaneElement getPresentDynamicPane()
throws 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.
WdfException
public abstract 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().
collection - the folder to navigate to
WdfException - if an exception occurs in the repository framework or the WDF
WcmExceptionpublic abstract IProxy getTargetControl()
return this
WdfEventDispatcher when
creating a Link or Button. Must not return null
public abstract Hashtable getParameters()
throws WcmException
String, the hashtable's own clone method will suffice.
WcmException
public abstract IUIBaseCommand getCommand()
throws WcmException
IUIBaseCommand can ask the AbstractProxyControl for this
command and use it.
WcmExceptionpublic abstract String getUri()
null
public abstract void setUri(String string)
null
public abstract String getStartUri()
null. The start-uri states
the furthermost ancestor of the uri that is available for browsing.
public boolean isPreviewEnabled()
false.public IResource getResource()
null.
The implementation available in this abstract class always returns null.
protected void initialize()
throws WdfException
WdfException
public 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
WcmException
public void addControlStatus(String id,
IControlStatus status)
public IControlStatus getControlStatus(String id)
public void deleteControlStatus(String id)
protected 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(WdfEvent event)
true, if the event to clean status has been fired
protected void refreshAllControlStatus()
public void setCssCacheID(String id)
public String getCssCacheID()
public String register(IDelegatedReceiver receiver)
public ArrayList getEventValues(Event event)
throws WcmException
WcmException
public WdfEvent onDelegatedClick(Event event)
throws WdfException
WdfExceptionpublic ISearchSession getSearchSession()
public String createDispatchableID(String handler,
ArrayList values)
throws WcmException
WcmException
public String createDispatchableID(String handler,
String value)
throws WcmException
WcmExceptionpublic List decodeValues(Event event)
public DynPage getDynamicPage()
public ResourcePropertyAmalgamation getAmalgamation()
public String getUserInput(String key)
protected final RID getRID()
protected final void setRID(RID rid)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||