Code example for Collection

Methods: addAllclear

0
    public void addControl(Control control) {
        controls.add(control);
    } 
 
    public void setControls(Collection<Control> controls) {
        this.controls.clear();
        if (controls != null) this.controls.addAll(controls);
    } 
 
    public void removeControl(Control control) {
        controls.remove(control);
    } 
 
    public Collection<Control> getControls() {
        return controls;
    } 
 
    public int waitFor() { 
        return exception.getResultCode();
    }