To add the user interface, please follow these steps:
- Create a class named ConVMSVehicleGroupChangeUIBuilder. Add extends SysOperationAutomaticUIBuilder to the class declaration.
- We need two dialog fields that we will later bind to the data contract; the completed class declaration should look like this:
class ConVMSVehicleGroupChangeUIBuilder 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(){ ConVMSVehicleGroupChangeContract contract; super(); contract = this.dataContractObject(); ...