public abstract class IOSelect extends Object
InputOutput.select() does too much.
Modifier and Type | Class | Description |
---|---|---|
static class |
IOSelect.AdditionalOperation |
Additional operations to perform when issuing
select(org.openide.windows.InputOutput, java.util.Set<org.openide.windows.IOSelect.AdditionalOperation>) . |
Constructor | Description |
---|---|
IOSelect() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isSupported(InputOutput io) |
Checks whether this feature is supported for provided IO
|
protected abstract void |
select(Set<IOSelect.AdditionalOperation> extraOps) |
With an empty 'extraOps' simply selects this io
without involving it's containing TopComponent.
|
static void |
select(InputOutput io,
Set<IOSelect.AdditionalOperation> extraOps) |
With an empty 'extraOps' simply selects this io
without involving it's containing TopComponent.
|
public static void select(InputOutput io, Set<IOSelect.AdditionalOperation> extraOps)
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.
io
- InputOutput to operate on.extraOps
- Additional operations to apply to the containing
TopComponent.public static boolean isSupported(InputOutput io)
io
- IO to check onprotected abstract void select(Set<IOSelect.AdditionalOperation> extraOps)
extraOps
- Additional operations to apply to the containing
TopComponent.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.