FileDocCategorySizeDatePackage
ControlsSurface.javaAPI DocExample2766Wed Aug 08 15:13:48 BST 2001None

ControlsSurface

public abstract class ControlsSurface extends Surface implements CustomControlsContext
The class to utilize custom controls for a Demo.

Fields Summary
private Component[]
controls
private String[]
constraints
Constructors Summary
Methods Summary
public java.lang.String[]getConstraints()

        return constraints;
    
public java.awt.Component[]getControls()

 
        return controls;
    
public voidhandleThread(int state)

        for (int i = 0; i < controls.length; i++) {
            if (state == CustomControlsContext.START) {
                if (controls[i] instanceof CustomControls) {
                    ((CustomControls) controls[i]).start();
                }
            } else if (state == CustomControlsContext.STOP) {
                if (controls[i] instanceof CustomControls) {
                    ((CustomControls) controls[i]).stop();
                }
            }
        }
    
public voidsetConstraints(java.lang.String[] constraints)

        this.constraints = constraints;
    
public voidsetControls(java.awt.Component[] controls)

        this.controls = controls;