|
org.openide.io 1.23.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.windows.IOPosition
public abstract class IOPosition
Navigation (scrolling) in IO component.
Client usage:
InputOutput io = ...; // store current position of IO IOPosition.Position pos = IOPosition.currentPosition(io); ... // scroll to stored position pos.scrollTo();How to support
IOPosition
in own IOProvider
implementation:
InputOutput
provided by IOProvider
has to implement Lookup.Provider
IOPosition
and implement its abstract methods
IOPosition
to Lookup
provided by InputOutput
Nested Class Summary | |
---|---|
static interface |
IOPosition.Position
|
Constructor Summary | |
---|---|
IOPosition()
|
Method Summary | |
---|---|
protected abstract IOPosition.Position |
currentPosition()
Gets current position in IO |
static IOPosition.Position |
currentPosition(InputOutput io)
Gets current position (in number of chars) in IO |
static boolean |
isSupported(InputOutput io)
Checks whether this feature is supported for provided IO |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOPosition()
Method Detail |
---|
public static IOPosition.Position currentPosition(InputOutput io)
io
- IO to operate on
public static boolean isSupported(InputOutput io)
io
- IO to check on
protected abstract IOPosition.Position currentPosition()
|
org.openide.io 1.23.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |