MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / finish

Method finish

CodenameOne/src/com/codename1/ui/Sheet.java:753–766  ·  view source on GitHub ↗
(Object result)

Source from the content-addressed store, hash-verified

751 ///
752 /// #### Since 7.0
753 public void finish(Object result) {
754 AsyncResource<Object> r = pendingResult;
755 pendingResult = null;
756 if (r != null && !r.isDone()) {
757 try {
758 r.complete(result);
759 } catch (Throwable t) {
760 com.codename1.io.Log.e(t);
761 }
762 }
763 // Dismiss the sheet: walk up parents to the root and hide. Reuse back()
764 // semantics so transitions match.
765 back();
766 }
767
768 /// Shows the sheet over the current form using a slide-up transition with given duration in milliseconds.
769 ///

Callers

nothing calls this directly

Calls 4

backMethod · 0.95
isDoneMethod · 0.65
completeMethod · 0.65
eMethod · 0.45

Tested by

no test coverage detected