| 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 | /// |