All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

public interface DataBean
The interface which defines a data object that is capable of supplying data to a panel managed by the UI framework. In addition to the public methods described below, a DataBean implementation is responsible for providing get and set accessor methods for each of the unique attributes that it supports.

See Also:
Capabilities

Method Index

 o getCapabilities()
Returns a Capabilities object which identifies the attributes that aren't supported by this DataBean.
 o load()
Initializes this object.
 o save()
Saves all changes that have been applied to this object via its accessor methods.
 o verifyChanges()
Validates any changes that have been applied to this object via its accessor methods.

Methods

 o load
 public abstract void load()
Initializes this object.

This method should be called prior to handing the DataBean off to the UI Framework. On return from this method the bean should be in a state where it is ready to return data on any of its accessor methods.

 o verifyChanges
 public abstract void verifyChanges()
Validates any changes that have been applied to this object via its accessor methods.

This method is called just prior to save to give the receiver an opportunity to verify that its data is consistent with any changes made to other DataBeans associated with a given panel. If an inconsistency is discovered the DataBean should throw an exception. This will prevent the changes from being committed.

 o save
 public abstract void save()
Saves all changes that have been applied to this object via its accessor methods. Called when the user has clicked the OK button on a panel.

 o getCapabilities
 public abstract Capabilities getCapabilities()
Returns a Capabilities object which identifies the attributes that aren't supported by this DataBean. There are many reasons why a DataBean might not support a given attribute. For example:

The Capabilities object may provide a list of instructions, or HandlerTasks, which the UI framework is to perform. Typically these involve disabling or removing certain UI components from a panel.

Returns:
a Capabilities object which reflects this object's capabilities
See Also:
Capabilities

All Packages  Class Hierarchy  This Package  Previous  Next  Index