SELECTIONTYPE - The selection type, must be common between all selections (if multiple).public interface UISelection<SELECTIONTYPE> extends Iterable<SELECTIONTYPE>
UIContext is currently focused. This may be the current working
directory, highlighted files, text, or other focusable items.
This object and the iterator provided by this object are immutable.| Modifier and Type | Method and Description |
|---|---|
SELECTIONTYPE |
get()
Provides the first selected element as a
SELECTIONTYPE. |
Optional<UIRegion<SELECTIONTYPE>> |
getRegion()
Returns the selected
UIRegion for the first element |
boolean |
isEmpty()
Checks if this selection is empty
|
int |
size()
Counts the elements in this selection.
|
forEach, iterator, spliteratorSELECTIONTYPE get()
SELECTIONTYPE.
This is a convenience method to avoid iteration.int size()
boolean isEmpty()
Copyright © 2016 JBoss by Red Hat. All rights reserved.