|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.JumpList
public final class JumpList
The list of marked positions in text components.
Nested Class Summary | |
---|---|
static class |
JumpList.Entry
An entry in the list with JTextComponent and a position in
its Document . |
Method Summary | |
---|---|
static void |
addEntry(JTextComponent c,
int pos)
Adds a new entry to the list. |
static void |
checkAddEntry()
Adds the caret position of the active JTextComponent to the
list. |
static void |
checkAddEntry(JTextComponent c)
Adds the caret position of the provided JTextComponent to the
list. |
static void |
checkAddEntry(JTextComponent c,
int pos)
Deprecated. Use addEntry(JTextComponent, int) instead. |
static String |
dump()
|
static boolean |
hasNext()
Checks if there is the next entry in the list. |
static boolean |
hasPrev()
Checks if there is the previous entry in the list. |
static void |
jumpNext(JTextComponent c)
Navigates to the component and position from the next entry in the list. |
static void |
jumpNextComponent(JTextComponent c)
Navigates to the component and position from the next entry in the list. |
static void |
jumpPrev(JTextComponent c)
Navigates to the component and position from the previous entry in the list. |
static void |
jumpPrevComponent(JTextComponent c)
Navigates to the component and position from the previous entry in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkAddEntry()
JTextComponent
to the
list. If the active component can't be determined this method does nothing.
The active JTextComponent
is obtained
from the system by tracking components that gain focus as a users uses them.
In Netbeans IDE the active component is usually the component selected in
the IDE's editor area.
addEntry(JTextComponent, int)
public static void checkAddEntry(JTextComponent c)
JTextComponent
to the
list.
c
- The offset of this component's caret will be added to the list.addEntry(JTextComponent, int)
public static void checkAddEntry(JTextComponent c, int pos)
addEntry(JTextComponent, int)
instead.
addEntry(JTextComponent, int)
.
public static void addEntry(JTextComponent c, int pos)
c
- The component to add to the list.pos
- The offset of the component's caret to add to the list.public static void jumpPrev(JTextComponent c)
This method will try to move focus to the component stored in the list and set its caret position.
c
- The component to check for the current position.public static void jumpPrevComponent(JTextComponent c)
This method will try to move focus to the component stored in the list and set its caret position.
c
- The component to check for the current position.public static boolean hasPrev()
true
if there is a previous entry in the list and it
is possible to use jumpPrev(JTextComponent)
or jumpPrevComponent(JTextComponent)
for navigation. Otherwise false
.public static void jumpNext(JTextComponent c)
This method will try to move focus to the component stored in the list and set its caret position.
c
- The component to check for the current position.public static void jumpNextComponent(JTextComponent c)
This method will try to move focus to the component stored in the list and set its caret position.
c
- The component to check for the current position.public static boolean hasNext()
true
if there is a previous entry in the list and it
is possible to use jumpPrev(JTextComponent)
or jumpPrevComponent(JTextComponent)
for navigation. Otherwise false
.public static String dump()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |