| Modifier and Type | Class and Description |
|---|---|
static class |
Widgets.TailTipWidgets.TipType |
Widgets.ArgDesc, Widgets.AutopairWidgets, Widgets.AutosuggestionWidgets, Widgets.CmdDesc, Widgets.CmdLine, Widgets.TailTipWidgetsAP_BACKWARD_DELETE_CHAR, AP_INSERT, AP_TOGGLE, TT_ACCEPT_LINE, TT_TOGGLE| Constructor and Description |
|---|
TailTipWidgets(LineReader reader,
Function<Widgets.CmdLine,Widgets.CmdDesc> descFun,
int descriptionSize,
Widgets.TailTipWidgets.TipType tipType)
Creates tailtip widgets used in command line suggestions.
|
TailTipWidgets(LineReader reader,
Map<String,Widgets.CmdDesc> tailTips)
Creates tailtip widgets used in command line suggestions.
|
TailTipWidgets(LineReader reader,
Map<String,Widgets.CmdDesc> tailTips,
int descriptionSize)
Creates tailtip widgets used in command line suggestions.
|
TailTipWidgets(LineReader reader,
Map<String,Widgets.CmdDesc> tailTips,
int descriptionSize,
Widgets.TailTipWidgets.TipType tipType)
Creates tailtip widgets used in command line suggestions.
|
TailTipWidgets(LineReader reader,
Map<String,Widgets.CmdDesc> tailTips,
Widgets.TailTipWidgets.TipType tipType)
Creates tailtip widgets used in command line suggestions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
int |
getDescriptionSize() |
Widgets.TailTipWidgets.TipType |
getTipType() |
boolean |
isEnabled() |
void |
setDescriptionCache(boolean cache) |
void |
setDescriptionSize(int descriptionSize) |
void |
setTailTips(Map<String,Widgets.CmdDesc> tailTips) |
void |
setTipType(Widgets.TailTipWidgets.TipType type) |
boolean |
tailtipAcceptLine() |
boolean |
tailtipBackwardDelete() |
boolean |
tailtipComplete() |
boolean |
tailtipDelete() |
boolean |
tailtipInsert() |
boolean |
tailtipUpdateStatus() |
boolean |
toggleKeyBindings() |
boolean |
toggleWindow() |
addDescription, addWidget, aliasWidget, args, buffer, callWidget, clearDescription, clearTailTip, currChar, destroyDescription, executeWidget, existsWidget, getKeyMap, getWidget, initDescription, lastBinding, parser, prevChar, putString, replaceBuffer, setErrorIndex, setErrorPattern, setSuggestionType, setTailTip, tailTippublic TailTipWidgets(LineReader reader, Map<String,Widgets.CmdDesc> tailTips)
reader - LineReader.tailTips - Commands options and positional argument descriptions.IllegalStateException - If widgets are already created.public TailTipWidgets(LineReader reader, Map<String,Widgets.CmdDesc> tailTips, Widgets.TailTipWidgets.TipType tipType)
reader - LineReader.tailTips - Commands options and positional argument descriptions.tipType - Defines which data will be used for suggestions.IllegalStateException - If widgets are already created.public TailTipWidgets(LineReader reader, Map<String,Widgets.CmdDesc> tailTips, int descriptionSize)
reader - LineReader.tailTips - Commands options and positional argument descriptions.descriptionSize - Size of the status bar.IllegalStateException - If widgets are already created.public TailTipWidgets(LineReader reader, Map<String,Widgets.CmdDesc> tailTips, int descriptionSize, Widgets.TailTipWidgets.TipType tipType)
reader - LineReader.tailTips - Commands options and positional argument descriptions.descriptionSize - Size of the status bar.tipType - Defines which data will be used for suggestions.IllegalStateException - If widgets are already created.public TailTipWidgets(LineReader reader, Function<Widgets.CmdLine,Widgets.CmdDesc> descFun, int descriptionSize, Widgets.TailTipWidgets.TipType tipType)
reader - LineReader.descFun - Function that returns command description.descriptionSize - Size of the status bar.tipType - Defines which data will be used for suggestions.IllegalStateException - If widgets are already created.public void setTailTips(Map<String,Widgets.CmdDesc> tailTips)
public void setDescriptionSize(int descriptionSize)
public int getDescriptionSize()
public void setTipType(Widgets.TailTipWidgets.TipType type)
public Widgets.TailTipWidgets.TipType getTipType()
public boolean isEnabled()
public void disable()
public void enable()
public void setDescriptionCache(boolean cache)
public boolean tailtipComplete()
public boolean tailtipAcceptLine()
public boolean tailtipBackwardDelete()
public boolean tailtipDelete()
public boolean tailtipInsert()
public boolean tailtipUpdateStatus()
public boolean toggleWindow()
public boolean toggleKeyBindings()
Copyright © 2020. All rights reserved.