FileDocCategorySizeDatePackage
BooleanControl.javaAPI DocJMF 2.1.1e541Mon May 12 12:20:56 BST 2003com.sun.media.controls

BooleanControl.java

/*
 * @(#)BooleanControl.java	1.2 02/08/21
 *
 * Copyright (c) 1996-2002 Sun Microsystems, Inc.  All rights reserved.
 */


package com.sun.media.controls;

import com.sun.media.*;

/**
 * This control represents a toggle state. The state at any time can either
 * be true or false.
 */
public interface BooleanControl extends AtomicControl {

    /**
     * Returns the current state of the control.
     */
    public boolean getValue();

    /**
     * Sets the state of the control.
     */
    public boolean setValue(boolean value);
}