YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.AfterStartSelection Class Reference

What happens to the receiver selection once a picked action has started. More...

Collaboration diagram for de.yaacc.share.AfterStartSelection:
Collaboration graph

Classes

enum  Mode
 What to do with the stored receiver selection after the action started. More...
 
class  Plan
 What the caller applies to the stored selection.
 

Static Public Member Functions

static Mode modeFor (boolean newLayout)
 
static Plan plan (Mode mode, Set< String > previous)
 

Static Public Attributes

static final Mode CLASSIC_MODE = Mode.RESTORE_PREVIOUS
 The classic layout's choice: the single place to switch between restoring and clearing.
 

Detailed Description

What happens to the receiver selection once a picked action has started.

Plain Java so the decision is unit tested on the JVM, and so "clear or restore" is decided in ONE place.

  • New layout: the selection only exists while the picker is open, so it is cleared once the action has started (Mode#CLEAR).
  • Classic: the layout keeps its tab-based selection, and only a shared file opens the picker (initially ticked with the classic selection). Owner decision 2026-10-25: afterwards the previous selection is restored (Mode#RESTORE_PREVIOUS). To clear there too, change CLASSIC_MODE (and the one test that pins it); nothing else.

Member Function Documentation

◆ modeFor()

static Mode de.yaacc.share.AfterStartSelection.modeFor ( boolean newLayout)
static
Parameters
newLayouttrue for the new layout (it owns the receiver bar)

◆ plan()

static Plan de.yaacc.share.AfterStartSelection.plan ( Mode mode,
Set< String > previous )
static
Parameters
modewhat to do; null clears (fail safe: a picked selection is never left behind)
previousthe selection before the pick, may be null

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