org.openide.io 1.23.1

org.openide.windows
Class IOSelect

java.lang.Object
  extended by org.openide.windows.IOSelect

public abstract class IOSelect
extends Object

Capability of an InputOutput of finer grained selection of a component.

InputOutput.select() does too much.

Since:
1.23

Nested Class Summary
static class IOSelect.AdditionalOperation
          Additional operations to perform when issuing select(org.openide.windows.InputOutput, java.util.Set).
 
Constructor Summary
IOSelect()
           
 
Method Summary
static boolean isSupported(InputOutput io)
          Checks whether this feature is supported for provided IO
static void select(InputOutput io, Set<IOSelect.AdditionalOperation> extraOps)
          With an empty 'extraOps' simply selects this io without involving it's containing TopComponent.
protected abstract  void select(Set<IOSelect.AdditionalOperation> extraOps)
          With an empty 'extraOps' simply selects this io without involving it's containing TopComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOSelect

public IOSelect()
Method Detail

select

public static void select(InputOutput io,
                          Set<IOSelect.AdditionalOperation> extraOps)
With an empty 'extraOps' simply selects this io without involving it's containing TopComponent.

For example:

 if (IOSelect.isSupported(io) {
     IOSelect.select(io, EnumSet.noneOf(IOSelect.AdditionalOperation.class));
 }
 

If this capability is not supported then regular InputOutput.select() will be called.

Parameters:
io - InputOutput to operate on.
extraOps - Additional operations to apply to the containing TopComponent.

isSupported

public static boolean isSupported(InputOutput io)
Checks whether this feature is supported for provided IO

Parameters:
io - IO to check on
Returns:
true if supported

select

protected abstract void select(Set<IOSelect.AdditionalOperation> extraOps)
With an empty 'extraOps' simply selects this io without involving it's containing TopComponent.

Parameters:
extraOps - Additional operations to apply to the containing TopComponent.

org.openide.io 1.23.1

Built on February 9 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.