|
YAACC - UPNP Client and Server
|
How the log viewer takes a freshly read log into the text it shows. More...

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) |
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.
|
static |
| shown | what the view shows now, null before the first read |
| fresh | the log that was just read |
| selecting | the user has text selected: nothing is changed then, the next read catches up |