|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.admin.wizardframework.components.AbstractWizardComponent
The default component implementation all wizard components should inherit. While not being abstract in the java sense of the word it provides default implementations for all the functions in IWizardComponent while not defining any individual behavior by itself.
| Field Summary | |
static int |
HORIZONTAL_LAYOUT
|
static int |
VERTICAL_LAYOUT
|
| Constructor Summary | |
AbstractWizardComponent()
|
|
| Method Summary | |
void |
clearIfInconsistent(java.lang.String changedObject,
IWizardContext context)
the default implementtion clears all values from this component's branch in the session. |
void |
doAfterSubmit(IWizardContext context)
the default implemention does nothing |
void |
doBeforeDisplay(IWizardContext context)
the default implemention does nothing before display |
com.sapportals.htmlb.Component |
getControlInFocus(IWizardContext ctx)
|
java.lang.String |
getDescription(IWizardContext ctx)
Set the description of a pane - this function is relevant only for panes. |
com.sapportals.htmlb.Component |
getDisplay(IWizardContext context)
the default implementation returns null - if your component has a display it should inherit AbstractDisplayComponent or AbstractInputComponent. |
java.util.List |
getErrorMessages(IWizardContext context)
the default implemention returns null |
java.lang.String |
getPath()
get the path of this component (internally used) |
protected java.lang.Object |
getProperty(java.lang.String key,
IBasicEditingContext context)
get the property stored under |
java.lang.String |
getTitle(IWizardContext ctx)
Set the title of a pane - this function is relevant only for panes. |
void |
init(IWizardContext context)
the default implemention does nothing on init |
boolean |
isComplete(IWizardContext context)
the default implemention returns true |
boolean |
isInitialized(IWizardContext context)
always returns true - override this function if your component needs dynamic initialization |
boolean |
isMandatory()
|
void |
processInput(IWizardContext context)
the default implemention does no input processing. |
void |
setMandatory(boolean iMandatory)
|
void |
setPath(java.lang.String iPath)
set the path of this component. e.g. it's position in the wizard hierarchy. path components are seperated by IWizardSession.PATH_DELIMITER. example: "pane1.nameComponent.firstNameInputField". |
protected void |
setProperty(java.lang.String key,
java.lang.Object value,
IBasicEditingContext context)
set the property under |
protected void |
setTempProperty(java.lang.String key,
java.lang.Object value,
IBasicEditingContext context)
Set the temporary property under |
void |
setupComponent(IWizardContext ctx)
setup the component here. if this component is a container add all subcomponents here |
void |
wasChanged(IWizardContext context)
this method should be called whenever a component is changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VERTICAL_LAYOUT
public static final int HORIZONTAL_LAYOUT
| Constructor Detail |
public AbstractWizardComponent()
| Method Detail |
public void setupComponent(IWizardContext ctx)
IWizardComponentsetupComponent in interface IWizardComponentpublic java.lang.String getTitle(IWizardContext ctx)
IWizardComponentgetTitle in interface IWizardComponentpublic java.lang.String getDescription(IWizardContext ctx)
IWizardComponentgetDescription in interface IWizardComponentpublic void setPath(java.lang.String iPath)
setPath in interface IWizardComponentpublic java.lang.String getPath()
getPath in interface IWizardComponent
protected java.lang.Object getProperty(java.lang.String key,
IBasicEditingContext context)
protected void setProperty(java.lang.String key,
java.lang.Object value,
IBasicEditingContext context)
protected void setTempProperty(java.lang.String key,
java.lang.Object value,
IBasicEditingContext context)
public boolean isInitialized(IWizardContext context)
isInitialized in interface IWizardComponentcom.sapportals.admin.wizardframework.api.IWizardComponentpublic void init(IWizardContext context)
init in interface IWizardComponentpublic void doBeforeDisplay(IWizardContext context)
doBeforeDisplay in interface IWizardComponentpublic com.sapportals.htmlb.Component getDisplay(IWizardContext context)
getDisplay in interface IWizardComponentpublic void processInput(IWizardContext context)
processInput in interface IWizardComponentpublic void doAfterSubmit(IWizardContext context)
doAfterSubmit in interface IWizardComponentpublic void wasChanged(IWizardContext context)
wasChanged in interface IDependencyObject
public void clearIfInconsistent(java.lang.String changedObject,
IWizardContext context)
clearIfInconsistent in interface IDependencyObjectpublic boolean isComplete(IWizardContext context)
public java.util.List getErrorMessages(IWizardContext context)
getErrorMessages in interface IWizardComponentcom.sapportals.admin.wizardframework.api.IWizardComponentpublic boolean isMandatory()
isMandatory in interface IWizardComponentpublic void setMandatory(boolean iMandatory)
setMandatory in interface IWizardComponentcom.sapportals.admin.wizardframework.api.IWizardComponentis - this component (i.e. the property it collects) a mandatory part of the pane the component resides in?
this will influence the display of the component and the behavior of the pane (error messages are displayed only for mandatory components)public com.sapportals.htmlb.Component getControlInFocus(IWizardContext ctx)
getControlInFocus in interface IWizardComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||