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

The receiver sheet's own gate in pick mode: it makes "exactly one answer" true. More...

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

Classes

enum  Action
 What the sheet has to do. More...
 

Public Member Functions

Action confirm (Set< String > ticked)
 
Action dismissed ()
 The sheet was closed (called from onDismiss, which runs for every way of closing).
 
void silence ()
 Nothing may be reported from now on.
 
boolean isDelivered ()
 True once an answer was sent (or the gate was silenced).
 
Set< String > confirmedIds ()
 The receivers of the sent confirm; empty before it.
 

Detailed Description

The receiver sheet's own gate in pick mode: it makes "exactly one answer" true.

Plain Java, used from the main thread only.

The sheet reports a confirm when the confirm button is pressed with at least one receiver (Action#SEND_CONFIRM); a confirm without a receiver only shows a hint (Action#SHOW_HINT, see ReceiverPickResult.Decision#keepPickerOpen()). Every way of closing the sheet ends in onDismiss, which reports a cancel unless an answer was already sent (dismissed()), so the dismiss that follows a confirm is silent and nothing is reported twice. A sheet that has no pick behind it any more (restored after a rotation or process death) is silenced.

Member Function Documentation

◆ confirm()

Action de.yaacc.share.PickSheetResult.confirm ( Set< String > ticked)
Parameters
tickedthe receivers ticked in the list, may be null
Here is the call graph for this function:

◆ confirmedIds()

Set< String > de.yaacc.share.PickSheetResult.confirmedIds ( )

The receivers of the sent confirm; empty before it.

Unmodifiable.


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