com.sapportals.admin.wizardframework.components

Class FlowContainer

java.lang.Object
  extended by com.sapportals.admin.wizardframework.components.AbstractWizardComponent
      extended by com.sapportals.admin.wizardframework.components.FlowContainer
All Implemented Interfaces:
IDependencyObject, IWizardComponent, IWizardComponentContainer
Direct Known Subclasses:
AbstractWizardPane, Group

Deprecated. Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com).

public class FlowContainer
extends AbstractWizardComponent
implements IWizardComponentContainer

The class that represents a container flow. A container can contain other wizard components. It executes enclosed components in the order in which the components were added.
For example, if component a was added to a container before component b, the container calls a.init(), b.init(), a.doBeforeDisplay(), b.doBeforeDisplay...


Field Summary
static int HORIZONTAL_LAYOUT
          Deprecated. A constant that indicates the horizontal layout.
static int VERTICAL_LAYOUT
          Deprecated. A constant that indicates the vertical layout.
 
Constructor Summary
FlowContainer()
          Deprecated. A blank constructor.
FlowContainer(int iLayout)
          Deprecated. A constructor that sets a layout.
FlowContainer(int iLayout, int iPadding)
          Deprecated. A constructor that sets a layout and padding.
 
Method Summary
 void addComponent(String key, com.sapportals.htmlb.Component component)
          Deprecated. Adds an HTMLB component to a container specified by a key.
 void addComponent(String key, IWizardComponent component)
          Deprecated. Adds a wizard component to the container specified by a key.
 void addComponent(String key, IWizardComponent component, boolean isMandatoryField)
          Deprecated. Adds a mandatory wizard component to a container specified by a key.
 void clearIfInconsistent(String changedObjectKey, IWizardContext context)
          Deprecated. Clears all values from the object and its subtree when the object this object depends on was changed.
protected  void delegateDoBeforeDisplay(IWizardContext context)
          Deprecated. Performs doBeforeDisplay(com.sapportals.admin.wizardframework.api.IWizardContext) on each subcomponent.
protected  void delegateProcessInput(IWizardContext ctx)
          Deprecated. Performs #ProcessInput on each subcomponent.
protected  void delegateSetupComponent(IWizardContext context)
          Deprecated. Performs setupComponent(com.sapportals.admin.wizardframework.api.IWizardContext) on each subcomponent.
 void doAfterSubmit(IWizardContext context)
          Deprecated. Performs any actions on the data after user input is collected.
 void doBeforeDisplay(IWizardContext context)
          Deprecated. Performs synchronization between the data model and the pane.
 IWizardComponent getComponent(String key)
          Deprecated. Gets a component from a container specified by a key.
 com.sapportals.htmlb.Component getControlInFocus(IWizardContext ctx)
          Deprecated. Gets the component that currently has the focus.
 com.sapportals.htmlb.Component getDisplay(IWizardContext context)
          Deprecated. Gets the HTMLB component to display.
 List getErrorMessages(IWizardContext context)
          Deprecated. Validates the data for the pane.
 String getPath()
          Deprecated. Gets the path for a component.
 void init(IWizardContext context)
          Deprecated. Implement this method to initialize a component.
 boolean isInitialized(IWizardContext context)
          Deprecated. Indicates whether the component is initialized.
protected  void myDoBeforeDisplay(IWizardContext ctx)
          Deprecated. Sets the values of HTML controls in the pane based on the data model.
protected  void myProcessInput(IWizardContext ctx)
          Deprecated. Saves to the data model the data from any HTMLB controls created in the pane.
protected  void mySetupComponent(IWizardContext context)
          Deprecated. Implement this method to create your own setup for a component.
 void processInput(IWizardContext ctx)
          Deprecated. Saves to the data model the values entered into wizard controls by the administrator.
 void setLayout(int iLayout)
          Deprecated. Sets a layout for a component.
 void setPath(String iPath)
          Deprecated. Sets a path for a component.
 void setupComponent(IWizardContext context)
          Deprecated. Configures a component.
 void wasChanged(IWizardContext context)
          Deprecated. Clears all objects dependent on this object or its parent objects.
 
Methods inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
getDescription, getProperty, getTitle, isComplete, isMandatory, setMandatory, setProperty, setTempProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERTICAL_LAYOUT

public static final int VERTICAL_LAYOUT
Deprecated. 
A constant that indicates the vertical layout.

See Also:
Constant Field Values

HORIZONTAL_LAYOUT

public static final int HORIZONTAL_LAYOUT
Deprecated. 
A constant that indicates the horizontal layout.

See Also:
Constant Field Values
Constructor Detail

FlowContainer

public FlowContainer()
Deprecated. 
A blank constructor.


FlowContainer

public FlowContainer(int iLayout)
Deprecated. 
A constructor that sets a layout.

Parameters:
iLayout - a layout

FlowContainer

public FlowContainer(int iLayout,
                     int iPadding)
Deprecated. 
A constructor that sets a layout and padding.

Parameters:
iLayout - a layout
iPadding - padding
Method Detail

addComponent

public void addComponent(String key,
                         IWizardComponent component)
Deprecated. 
Adds a wizard component to the container specified by a key.

Parameters:
key - a key
component - a wizard component

addComponent

public void addComponent(String key,
                         IWizardComponent component,
                         boolean isMandatoryField)
Deprecated. 
Adds a mandatory wizard component to a container specified by a key.

Parameters:
key - a key
component - a wizard component
isMandatoryField - true to set the component to mandatory

addComponent

public void addComponent(String key,
                         com.sapportals.htmlb.Component component)
Deprecated. 
Adds an HTMLB component to a container specified by a key.

Parameters:
key - a key
component - an HTMLB component

getComponent

public IWizardComponent getComponent(String key)
Deprecated. 
Gets a component from a container specified by a key.

Specified by:
getComponent in interface IWizardComponentContainer
Parameters:
key - a key
Returns:
a wizard component

setupComponent

public void setupComponent(IWizardContext context)
Deprecated. 
Configures a component. If the component is a container, adds the subcomponents.

Specified by:
setupComponent in interface IWizardComponent
Overrides:
setupComponent in class AbstractWizardComponent
Parameters:
context - the current wizard context

delegateSetupComponent

protected void delegateSetupComponent(IWizardContext context)
Deprecated. 
Performs setupComponent(com.sapportals.admin.wizardframework.api.IWizardContext) on each subcomponent.

Parameters:
context - the current wizard context

mySetupComponent

protected void mySetupComponent(IWizardContext context)
Deprecated. 
Implement this method to create your own setup for a component.

Parameters:
context - the current wizard context

isInitialized

public boolean isInitialized(IWizardContext context)
Deprecated. 
Indicates whether the component is initialized. Always returns true. Override this method if the component requires dynamic initialization.

Specified by:
isInitialized in interface IWizardComponent
Overrides:
isInitialized in class AbstractWizardComponent
Parameters:
context - the current wizard context
Returns:
true

init

public void init(IWizardContext context)
Deprecated. 
Implement this method to initialize a component. The default implementation does nothing.

Specified by:
init in interface IWizardComponent
Overrides:
init in class AbstractWizardComponent
Parameters:
context - the current wizard context

doBeforeDisplay

public void doBeforeDisplay(IWizardContext context)
Deprecated. 
Performs synchronization between the data model and the pane. The default implementation calls the pane�s myDoBeforeDisplay method, and then calls doBeforeDisplay on all the wizard components within the pane.
Override this method to change the standard user interface for a component.

Specified by:
doBeforeDisplay in interface IWizardComponent
Overrides:
doBeforeDisplay in class AbstractWizardComponent
Parameters:
context - the current wizard context

delegateDoBeforeDisplay

protected void delegateDoBeforeDisplay(IWizardContext context)
Deprecated. 
Performs doBeforeDisplay(com.sapportals.admin.wizardframework.api.IWizardContext) on each subcomponent.

Parameters:
context - the current wizard context

myDoBeforeDisplay

protected void myDoBeforeDisplay(IWizardContext ctx)
Deprecated. 
Sets the values of HTML controls in the pane based on the data model.

Parameters:
ctx - the current wizard context

processInput

public void processInput(IWizardContext ctx)
Deprecated. 
Saves to the data model the values entered into wizard controls by the administrator. The default implementation calls the pane�s myProcessInput method, and then calls processInput on all the wizard components within the pane.
Implement this method to save to the data model the data from any HTMLB controls that you created in the pane.
This method is called after a user clicks a toolbar button, causing a new request to be made to the wizard component.

Specified by:
processInput in interface IWizardComponent
Overrides:
processInput in class AbstractWizardComponent
Parameters:
ctx - the current wizard context

delegateProcessInput

protected void delegateProcessInput(IWizardContext ctx)
Deprecated. 
Performs #ProcessInput on each subcomponent.

Parameters:
ctx - the current wizard context

myProcessInput

protected void myProcessInput(IWizardContext ctx)
Deprecated. 
Saves to the data model the data from any HTMLB controls created in the pane.

Parameters:
ctx - the current wizard context

doAfterSubmit

public void doAfterSubmit(IWizardContext context)
Deprecated. 
Performs any actions on the data after user input is collected. The input data must be valid.

Specified by:
doAfterSubmit in interface IWizardComponent
Overrides:
doAfterSubmit in class AbstractWizardComponent
Parameters:
context - the current wizard context

getPath

public String getPath()
Deprecated. 
Gets the path for a component.

Specified by:
getPath in interface IWizardComponent
Overrides:
getPath in class AbstractWizardComponent
Returns:
the path

setPath

public void setPath(String iPath)
Deprecated. 
Sets a path for a component. Path components are seperated by IWizardSession.PATH_DELIMITER.
For example: pane1.nameComponent.firstNameInputField.
If this component contains other components it sets their path too.

Specified by:
setPath in interface IWizardComponent
Overrides:
setPath in class AbstractWizardComponent
Parameters:
iPath - a path

setLayout

public void setLayout(int iLayout)
Deprecated. 
Sets a layout for a component.

Parameters:
iLayout - a layout

getDisplay

public com.sapportals.htmlb.Component getDisplay(IWizardContext context)
Deprecated. 
Gets the HTMLB component to display. If your component has a display it should inherit AbstractDisplayComponent or AbstractInputComponent. The default implementation returns null.

Specified by:
getDisplay in interface IWizardComponent
Overrides:
getDisplay in class AbstractWizardComponent
Parameters:
context - the current wizard context
Returns:
the component, null if the component has no display

wasChanged

public void wasChanged(IWizardContext context)
Deprecated. 
Clears all objects dependent on this object or its parent objects. Called whenever an object is changed.

Specified by:
wasChanged in interface IDependencyObject
Overrides:
wasChanged in class AbstractWizardComponent
Parameters:
context - the current wizard context

clearIfInconsistent

public void clearIfInconsistent(String changedObjectKey,
                                IWizardContext context)
Deprecated. 
Clears all values from the object and its subtree when the object this object depends on was changed.
The default implementation clears all values from the component's branch in the session.

Specified by:
clearIfInconsistent in interface IDependencyObject
Overrides:
clearIfInconsistent in class AbstractWizardComponent
Parameters:
changedObjectKey - a changed object
context - the current wizard context

getErrorMessages

public List getErrorMessages(IWizardContext context)
Deprecated. 
Validates the data for the pane. If the data is valid, the method returns null. If the data is not valid, the method returns a list of error messages.

Specified by:
getErrorMessages in interface IWizardComponent
Overrides:
getErrorMessages in class AbstractWizardComponent
Parameters:
context - the current wizard context
Returns:
a list of error messages

getControlInFocus

public com.sapportals.htmlb.Component getControlInFocus(IWizardContext ctx)
Deprecated. 
Gets the component that currently has the focus.

Specified by:
getControlInFocus in interface IWizardComponent
Overrides:
getControlInFocus in class AbstractWizardComponent
Parameters:
ctx - the current wizard context
Returns:
the component
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] com.sap.portal.admin.wizardframeworkdeprecated api EP-PIN-APF
[sap.com] EP-RUNTIME [sap.com] tc/ep/admin/api api EP-PIN
[sap.com] EP-RUNTIME [sap.com] com.sap.portal.admin.wizardframeworkdeprecated - EP-PIN-APF


Copyright 2011 SAP AG Complete Copyright Notice