|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
Base class for all control model classes
Copyright 2004 SAP AG
| Constructor Summary | |
Component()
|
|
Component(String id)
|
|
| Method Summary | |
protected String |
getEncodedIdForForm(Form theForm)
internal use only. |
String |
getId()
get the name of this component |
Container |
getParent()
|
abstract String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only. |
protected void |
initFromShortId(IPageContext pc,
String id)
internal use only. |
static Component |
initializeFromId(String originalId,
String id,
IPageContext pc,
String idInPage)
internal use only. |
boolean |
isJsObjectNeeded()
return if a js object is needed on the client side for this component |
void |
preRender(IPageContext pc)
preRender traverses the component tree right before rendering |
void |
render(IPageContext rendererContext)
render the component using the current context. |
String |
renderAsString(IPageContext pageContext)
Experimental. |
boolean |
requiresForm()
check if a special component really requires a form around it. |
void |
setId(String id)
set the name of this component |
void |
setJsObjectNeeded(boolean jsObjectNeeded)
determines if a js object is needed for this component |
void |
setParent(Container parent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Component()
public Component(String id)
| Method Detail |
public Container getParent()
public void setParent(Container parent)
public String getId()
public void setId(String id)
id - the name of this componentpublic abstract String getUI()
public void render(IPageContext rendererContext)
rendererContext - the context in which to render.public String renderAsString(IPageContext pageContext)
pageContext - the current IPageContext for rendering.
protected String getEncodedIdForForm(Form theForm)
public static Component initializeFromId(String originalId,
String id,
IPageContext pc,
String idInPage)
originalId - the ID the user used for the componentid - the internal class ID, generated by getEncodedIdForFormpc - the IPageContext, required for accessing parametersidInPage - the ID used internally in the HTML page
protected void initFromShortId(IPageContext pc,
String id)
id - the Id as it was returned by getEncodedIdForForm()
protected void initFromPageContext(IPageContext pc,
String baseId)
pc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)public boolean requiresForm()
Basically, any Component that is capable of firing a server side event or that contains user input must be placed in a form.
public boolean isJsObjectNeeded()
public void setJsObjectNeeded(boolean jsObjectNeeded)
public void preRender(IPageContext pc)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||