YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.util.LogDelta Class Reference

How the log viewer takes a freshly read log into the text it shows. More...

Collaboration diagram for de.yaacc.util.LogDelta:
Collaboration graph

Classes

enum  Kind
 What to do with the shown text. More...
 

Public Member Functions

Kind kind ()
 
String text ()
 The text to append for Kind#APPEND, the whole new text for Kind#REPLACE, else empty.
 

Static Public Member Functions

static LogDelta between (String shown, String fresh, boolean selecting)
 

Detailed Description

How the log viewer takes a freshly read log into the text it shows.

Replacing the whole text of a selectable view drops the user's selection and moves the scroll position, which made it impossible to mark and copy an entry while the log was refreshed. New lines at the end are therefore appended.

Member Function Documentation

◆ between()

static LogDelta de.yaacc.util.LogDelta.between ( String shown,
String fresh,
boolean selecting )
static
Parameters
shownwhat the view shows now, null before the first read
freshthe log that was just read
selectingthe user has text selected: nothing is changed then, the next read catches up

The documentation for this class was generated from the following file: