APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.org.jline.utils

public Class Status

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, .Objects, .Optional, jdk.internal.org.jline.terminal.Size, .Terminal, jdk.internal.org.jline.terminal.impl.AbstractTerminal, jdk.internal.org.jline.utils.InfoCmp.Capability

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
protected int
protected AttributedString
protected Display
private final AttributedString
protected List<AttributedString>
protected int
protected final boolean
protected boolean
protected final Terminal

Constructor Summary

AccessConstructor and Description
public
Status(Terminal terminal)

Method Summary

Modifier and TypeMethod and Description
public void
private AttributedString
getBorderString(int columns)

public static Optional<Status>
public static Status
getStatus(Terminal terminal)

public static Status
getStatus(Terminal terminal, boolean create)

public void
hide()

private boolean
isValid(Size size)

public void
public void
public void
public void
resize(Size size)

public void
restore()

The restore() call is the opposite of suspend() and will make the status bar be updated again.

public void
setBorder(boolean border)

public int
size()

private int
size(List<?> lines)

public void
suspend()

The suspend method is used when a full-screen.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
public void
update(List<AttributedString> lines, boolean flush)

Returns true if the cursor may be misplaced and should be updated.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

borderback to summary
protected int border
borderStringback to summary
protected AttributedString borderString
displayback to summary
protected Display display
ellipsisback to summary
private final AttributedString ellipsis
linesback to summary
protected List<AttributedString> lines
scrollRegionback to summary
protected int scrollRegion
supportedback to summary
protected final boolean supported
suspendedback to summary
protected boolean suspended
terminalback to summary
protected final Terminal terminal

Constructor Detail

Statusback to summary
public Status(Terminal terminal)
Annotations
@SuppressWarnings:this-escape

Method Detail

closeback to summary
public void close()
getBorderStringback to summary
private AttributedString getBorderString(int columns)
getExistingStatusback to summary
public static Optional<Status> getExistingStatus(Terminal terminal)
getStatusback to summary
public static Status getStatus(Terminal terminal)
getStatusback to summary
public static Status getStatus(Terminal terminal, boolean create)
hideback to summary
public void hide()
isValidback to summary
private boolean isValid(Size size)
redrawback to summary
public void redraw()
resetback to summary
public void reset()
resizeback to summary
public void resize()
resizeback to summary
public void resize(Size size)
restoreback to summary
public void restore()

The restore() call is the opposite of suspend() and will make the status bar be updated again. If the status was suspended, the lines used by the status will be drawn during this call.

setBorderback to summary
public void setBorder(boolean border)
sizeback to summary
public int size()
sizeback to summary
private int size(List<?> lines)
suspendback to summary
public void suspend()

The suspend method is used when a full-screen. If the status was not already suspended, the lines used by the status are cleared during this call.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
updateback to summary
public void update(List<AttributedString> lines)
updateback to summary
public void update(List<AttributedString> lines, boolean flush)

Returns true if the cursor may be misplaced and should be updated.

jdk.internal.org.jline.utils back to summary

pack-priv Class Status.MovingCursorDisplay

extends Display
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected int
Inherited from jdk.internal.org.jline.utils.Display:
canScrollcolumnscolumns1costcursorDownIsNewLinecursorPosdelayedWrapAtEoldelayLineWrapDISABLE_CRfullScreenoldLinesresetrowsterminalwrapAtEol

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
protected void
protected int
public void
update(List<AttributedString> newLines, int targetCursorPos, boolean flush)

Overrides jdk.internal.org.jline.utils.Display.update.

Update the display according to the new lines.

Inherited from jdk.internal.org.jline.utils.Display:
cancleardelayLineWrapdeleteCharsdeleteLinesinsertCharsinsertLinesperformrawPrintrawPrintrawPrintresetresizesetDelayLineWrapupdateupdateAnsiwcwidth

Field Detail

firstLineback to summary
protected int firstLine

Constructor Detail

MovingCursorDisplayback to summary
public MovingCursorDisplay(Terminal terminal)

Method Detail

initCursorback to summary
pack-priv void initCursor()
moveVisualCursorToback to summary
protected void moveVisualCursorTo(int targetPos, List<AttributedString> newLines)

Overrides jdk.internal.org.jline.utils.Display.moveVisualCursorTo.

Annotations
@Override
moveVisualCursorToback to summary
protected int moveVisualCursorTo(int i1)

Overrides jdk.internal.org.jline.utils.Display.moveVisualCursorTo.

Annotations
@Override
updateback to summary
public void update(List<AttributedString> newLines, int targetCursorPos, boolean flush)

Overrides jdk.internal.org.jline.utils.Display.update.

Doc from jdk.internal.org.jline.utils.Display.update.

Update the display according to the new lines.

Annotations
@Override