FileDocCategorySizeDatePackage
ShellIsModalPredicate.javaAPI DocAzureus 3.0.3.41709Thu Feb 09 19:43:10 GMT 2006org.gudy.azureus2.ui.swt.predicate.shell

ShellIsModalPredicate

public final class ShellIsModalPredicate extends Object implements org.gudy.azureus2.core3.predicate.Predicable
ShellIsModalPredicate evaluates a shell and returns true if the shell is modal (i.e. has one of the modal flags set)
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public booleanevaluate(java.lang.Object obj)
{@inheritDoc}

        Shell ref = (Shell)obj;
        if(ref == null)
            return false;

        return ((ref.getStyle() & SWT.APPLICATION_MODAL) != 0) ||
                        ((ref.getStyle() & SWT.PRIMARY_MODAL) != 0) ||
                        ((ref.getStyle() & SWT.SYSTEM_MODAL) != 0);