com.ibm.as400.ui.framework.java
Interface ComponentManager


public interface ComponentManager

The interface for managing custom components specified via the CUSTOM tag in the Panel Definition Markup Language (PDML). A ComponentManager creates the custom component when requested by the PanelManager for the containing panel. The UI framework then passes control to the ComponentManager to insert/extract data from the component at the appropriate times.

Since:
v4r2m0
See Also:
PanelManager

Method Summary
 java.awt.Component createComponent(java.lang.String componentName, PanelManager pm)
          Creates the specified component.
 void moveDataFromComponent(java.lang.String componentName)
          Extracts the data from the component and writes it to the DataBean responsible for managing the component's data.
 void moveDataToComponent(java.lang.String componentName)
          Retrieves the data for the component from the DataBean reponsible for managing the component's data and inserts it into the component.
 

Method Detail

createComponent

public java.awt.Component createComponent(java.lang.String componentName,
                                          PanelManager pm)
Creates the specified component. A reference to the PanelManager for the containing panel is supplied so that this object can access the DataBeans associated with the panel.
Parameters:
componentName - the name of the component to be created, as specified in the PDML for the panel
pm - the PanelManager that is managing the panel
Since:
v4r2m0
See Also:
DataBean

moveDataToComponent

public void moveDataToComponent(java.lang.String componentName)
Retrieves the data for the component from the DataBean reponsible for managing the component's data and inserts it into the component.
Parameters:
componentName - the name of the component whose data is to be retrieved
Since:
v4r2m0
See Also:
DataBean

moveDataFromComponent

public void moveDataFromComponent(java.lang.String componentName)
Extracts the data from the component and writes it to the DataBean responsible for managing the component's data.
Parameters:
componentName - the name of the component whose data is to be stored
Since:
v4r2m0
See Also:
DataBean