FileDocCategorySizeDatePackage
BitwiseDemo.javaAPI DocExample663Tue Dec 12 18:58:12 GMT 2000None

BitwiseDemo

public class BitwiseDemo extends Object

Fields Summary
static final int
VISIBLE
static final int
DRAGGABLE
static final int
SELECTABLE
static final int
EDITABLE
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


        
    
        int flags = 0;

        flags = flags | VISIBLE;
        flags = flags | DRAGGABLE;

        if ((flags & VISIBLE) == VISIBLE) {
            if ((flags & DRAGGABLE) == DRAGGABLE) {
                 System.out.println("Flags are Visible and Draggable.");
            }
        }

        flags = flags | EDITABLE;

        if ((flags & EDITABLE) == EDITABLE) {
	    System.out.println("Flags are now also Editable.");
        }