Package org.jline.reader.impl
Class LineReaderImpl.MenuSupport
java.lang.Object
org.jline.reader.impl.LineReaderImpl.MenuSupport
- All Implemented Interfaces:
Supplier<AttributedString>
- Enclosing class:
LineReaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) String(package private) AttributedString(package private) final BiFunction<CharSequence, Boolean, CharSequence> (package private) int(package private) int(package private) int(package private) String -
Constructor Summary
ConstructorsConstructorDescriptionMenuSupport(List<Candidate> original, String completed, BiFunction<CharSequence, Boolean, CharSequence> escaper) -
Method Summary
Modifier and TypeMethodDescriptionvoiddown()get()voidleft()private voidmajor(int step) Move 'step' options along the major axis of the menu.private voidminor(int step) Move 'step' options along the minor axis of the menu.voidnext()voidprevious()voidright()voidup()private voidupdate()
-
Field Details
-
possible
-
escaper
-
selection
int selection -
topLine
int topLine -
word
String word -
computed
AttributedString computed -
lines
int lines -
columns
int columns -
completed
String completed
-
-
Constructor Details
-
MenuSupport
public MenuSupport(List<Candidate> original, String completed, BiFunction<CharSequence, Boolean, CharSequence> escaper)
-
-
Method Details
-
completion
-
next
public void next() -
previous
public void previous() -
major
private void major(int step) Move 'step' options along the major axis of the menu.ie. if the menu is listing rows first, change row (up/down); otherwise move column (left/right)
- Parameters:
step- number of options to move by
-
minor
private void minor(int step) Move 'step' options along the minor axis of the menu.ie. if the menu is listing rows first, move along the row (left/right); otherwise move along the column (up/down)
- Parameters:
step- number of options to move by
-
up
public void up() -
down
public void down() -
left
public void left() -
right
public void right() -
update
private void update() -
get
- Specified by:
getin interfaceSupplier<AttributedString>
-