|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The editor context is the session representor. It contains APIs for manage properties on the session, and other helper methods.
| Method Summary | |
IEditorResponse |
getEditorResponse()
Get the editor response of the current context. |
com.sapportals.htmlb.event.Event |
getEvent()
Get the event object that was sent by the Htmlb The event can be then checked for inside details. (navigation details for example) |
java.util.Map |
getInitialParameters()
Get the request parameters passed to the editor |
java.lang.Object |
getProperty(java.lang.String key)
Get the property at path "key" from the session |
com.sapportals.portal.prt.component.IPortalComponentRequest |
getRequest()
Get the request that this context was constructed from. |
com.sapportals.util.session.util.StoreableMap |
getSubtreeAsMap(java.lang.String subtreeRoot)
Get subtree of properties as StoreableMap |
boolean |
isDirty()
Get whether the editor state was changed and therfore the data need to be saved when the editor will be closed. |
boolean |
isEmbeddedEditor()
Indicates whether this editor was opened as embedded editor of another editor. |
boolean |
isHoldLock()
Indicates whether in the current context, the locking mechanism was opertaed successfully. |
boolean |
isReadOnly()
Indicates weather the editor is in read-only mode |
void |
removeProperty(java.lang.String key)
Remove the property at path "key" from the session |
void |
removeSubtree(java.lang.String subtreeRoot)
Remove the property at path "key" and all of it's subproperties at path "key.*" from the session |
void |
setDirty(boolean isDirty)
Set whether the editor state was changed and therfore requires save operation when the editor will be closed. |
void |
setLoadDataRequired(boolean requireLoadData)
Set whether the editor data must be loaded. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Set the property at path "key" in the session |
void |
setReadOnly()
Mark this context as a "read only" state. |
void |
setTemporaryProperty(java.lang.String key,
java.lang.Object value)
Set the temporary property at path "key" in the session This property will be availible only In the current request cycle. |
| Method Detail |
public void setLoadDataRequired(boolean requireLoadData)
requireLoadData - true if the data must be loaded,
false if the data was already loadedpublic void setDirty(boolean isDirty)
isDirty - - true if save is needed.public boolean isDirty()
public java.util.Map getInitialParameters()
getInitialParameters in interface IBasicEditingContextpublic IEditorResponse getEditorResponse()
IEditorResponsepublic boolean isEmbeddedEditor()
public com.sapportals.htmlb.event.Event getEvent()
public boolean isHoldLock()
public void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface IBasicEditingContextpublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface IBasicEditingContextpublic void setReadOnly()
public boolean isReadOnly()
true if in read-only mode, or false if in read-write modepublic com.sapportals.util.session.util.StoreableMap getSubtreeAsMap(java.lang.String subtreeRoot)
getSubtreeAsMap in interface IBasicEditingContextsubtreeRoot - the property that is the roor for the subtree
public void setTemporaryProperty(java.lang.String key,
java.lang.Object value)
setTemporaryProperty in interface IBasicEditingContextpublic void removeProperty(java.lang.String key)
removeProperty in interface IBasicEditingContextpublic void removeSubtree(java.lang.String subtreeRoot)
removeSubtree in interface IBasicEditingContextpublic com.sapportals.portal.prt.component.IPortalComponentRequest getRequest()
IMPORTANT
The request must be used only for services that are not
supported by the editor framework!!
DO NOT USE THE REQUEST FOR SAVING PROPERTIES OR/AND ANY OTHER SERVICE
THAT THE EDIOTR FRAMEWORK PROVIDES!!!
getRequest in interface IBasicEditingContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||