Sha256: 123199d8fd3e42c414b37df12c0a40a204aa2c57ea0f2f5bffe9605a9206726c

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

package com.rho.navbar;

import java.util.List;
import java.util.Map;

import com.rhomobile.rhodes.api.IMethodResult;

public abstract class NavbarSingletonBase  {


    public static class createTask implements Runnable {
        private INavbarSingleton mApiSingleton; 
        private Map<String, String> navBarProperties; 
        private IMethodResult mResult;

        public createTask(INavbarSingleton obj, 
                Map<String, String> navBarProperties,         
                IMethodResult result) {
            this.mApiSingleton = obj; 
            this.navBarProperties = navBarProperties;        
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiSingleton.create(
                    navBarProperties,  mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }

    public static class removeTask implements Runnable {
        private INavbarSingleton mApiSingleton; 
        private IMethodResult mResult;

        public removeTask(INavbarSingleton obj,         
                IMethodResult result) {
            this.mApiSingleton = obj;         
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiSingleton.remove( mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }

    public static class startedTask implements Runnable {
        private INavbarSingleton mApiSingleton; 
        private IMethodResult mResult;

        public startedTask(INavbarSingleton obj,         
                IMethodResult result) {
            this.mApiSingleton = obj;         
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiSingleton.started( mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }

    
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tauplatform-1.0.1 lib/commonAPI/coreapi/ext/platform/android/generated/src/com/rho/navbar/NavbarSingletonBase.java