|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.nw.pcc.km.service.editor.component.AbstractEditorComponent
public abstract class AbstractEditorComponent
Abstract for editor components to extend. Implements common component methods
| Field Summary | |
|---|---|
protected ResourceBundle |
bundle
|
protected ComponentConfig |
componentConfig
|
static String |
CORE_VALUE
|
protected AbstractEditorObject |
editorObject
|
static String |
TITLE_VALUE
|
| Constructor Summary | |
|---|---|
AbstractEditorComponent()
|
|
AbstractEditorComponent(AbstractEditorObject editorObject)
|
|
| Method Summary | |
|---|---|
String |
getCoreValue()
Gets the value registered as the core or key value by the component |
Element |
getDefaultXMLElement(Document document,
String elementId,
String tagName,
String defaultValue,
IPropertyName propName)
Creates default XML element represented by this component should contain default value. |
protected Element |
getGenericXML(Document document,
String elementId,
String tagName,
boolean includePropertyValues)
Creates an XML element for the generic case when the component is an inputfield. |
com.sapportals.htmlb.Component |
getHtmlbComponent()
Gets the htmlb component of this editor component |
String |
getLabel(String key)
Gets a locale specific label from a resurce bundle for the given key |
Collection<String> |
getReferences()
Returns list of referenced objects (paths) |
abstract Element |
getXMLElement(Document document,
String string,
String tagName,
boolean includePropertyValues)
Creates the XML element represented by this component |
void |
init(AbstractEditorObject editorObject,
ComponentConfig cc)
|
void |
initializeFromPageContext(AbstractEditorObject editorObject,
com.sapportals.htmlb.rendering.IPageContext context,
ComponentConfig cc)
Called by the editor framework to initialise the component after it has created in an editor document. |
void |
registerLink(IResource parent)
Called by framework when document is saved to allow the component to register any links it knows about with the link manager service |
void |
setCoreValue(String s)
|
void |
setHtmlbComponent(com.sapportals.htmlb.Component comp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sap.nw.pcc.km.service.editor.component.IEditorComponent |
|---|
initialiseFromXML |
| Field Detail |
|---|
public static final String CORE_VALUE
public static final String TITLE_VALUE
protected AbstractEditorObject editorObject
protected ComponentConfig componentConfig
protected ResourceBundle bundle
| Constructor Detail |
|---|
public AbstractEditorComponent(AbstractEditorObject editorObject)
public AbstractEditorComponent()
| Method Detail |
|---|
public void init(AbstractEditorObject editorObject,
ComponentConfig cc)
public void initializeFromPageContext(AbstractEditorObject editorObject,
com.sapportals.htmlb.rendering.IPageContext context,
ComponentConfig cc)
IEditorComponent
initializeFromPageContext in interface IEditorComponenteditorObject - corresponding editor objectcontext - HTMLB page context from which the component has to retrieve its value as entered by the user.cc - an object representing the configuration for this editor component type.
public abstract Element getXMLElement(Document document,
String string,
String tagName,
boolean includePropertyValues)
IEditorComponent
getXMLElement in interface IEditorComponentpublic com.sapportals.htmlb.Component getHtmlbComponent()
IEditorComponent
getHtmlbComponent in interface IEditorComponentpublic void setHtmlbComponent(com.sapportals.htmlb.Component comp)
public Element getDefaultXMLElement(Document document,
String elementId,
String tagName,
String defaultValue,
IPropertyName propName)
IEditorComponent
getDefaultXMLElement in interface IEditorComponent
protected Element getGenericXML(Document document,
String elementId,
String tagName,
boolean includePropertyValues)
document -
public String getCoreValue()
IEditorComponent
getCoreValue in interface IEditorComponentpublic void setCoreValue(String s)
public String getLabel(String key)
key -
public void registerLink(IResource parent)
IEditorComponent
registerLink in interface IEditorComponentpublic Collection<String> getReferences()
IEditorComponent
getReferences in interface IEditorComponent| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||