To add the user interface, please follow these steps:
- Create a class named ConWHSVehicleGroupChangeUIBuilder. Add extendsSysOperationAutomaticUIBuilder to the class declaration.
- We need two dialog fields that we will later bind to the data contract; the completed classDeclaration should look like this:
class ConWHSVehicleGroupChangeUIBuilder extends SysOperationAutomaticUIBuilder { DialogField vehicleIdField; DialogField vehGroupIdField; }
- We will now need to bind the contract's data member methods to the dialog fields. This is done in the postBuild method. Override the postBuild method with the following piece of code:
public void postBuild() { ConWHSVehicleGroupChangeContract contract; super(); contract = this.dataContractObject(); ...