Package open.dolphin.delegater

Examples of open.dolphin.delegater.StampDelegater


    /**
     * TextStampInfo が Drop された時の処理を行なう。
     */
    public void textStampInfoDropped(final ArrayList<ModuleInfoBean> addList) {
       
        final StampDelegater sdl = new StampDelegater();
       
        DBTask task = new DBTask<List<StampModel>>(parent.getContext()) {

            @Override
            protected List<StampModel> doInBackground() throws Exception {
                List<StampModel> list = sdl.getStamp(addList);
                return list;
            }
           
            @Override
            public void succeeded(List<StampModel> list) {
View Full Code Here


    /**
     * TextStamp をこのペインに挿入する。
     */
    private void applyTextStamp(final ModuleInfoBean stampInfo) {
       
        final StampDelegater sdl = new StampDelegater();
       
        DBTask task = new DBTask<StampModel>(parent.getContext()) {

            @Override
            protected StampModel doInBackground() throws Exception {
                StampModel getStamp = sdl.getStamp(stampInfo.getStampId());
                return getStamp;
            }
           
            @Override
            public void succeeded(StampModel result) {
View Full Code Here

                try {
                    // UserPkを取得する
                    long userPk = Project.getUserModel().getId();
                   
                    // データベース検索を行う
                    StampDelegater stampDel = new StampDelegater();
                    List<IStampTreeModel> treeList = stampDel.getTrees(userPk);
                    if (!stampDel.isNoError()) {
                        logger.fatal("Could't read the stamp tree");
                        return false;
                    }
                    logger.info("Read the user's tree successfully");
                   
View Full Code Here

        // StampTree を保存する Callable Object を生成する
        Callable<Boolean> longTask = new Callable<Boolean>() {
           
            @Override
            public Boolean call() {               
                StampDelegater stampDel = new StampDelegater();
                stampDel.putTree(treeM);
                boolean result = stampDel.isNoError();
                return result;
            }
        };
       
        return longTask;
View Full Code Here

                stmpTree.setLastUpdated(new Date());
                break;
        }
       
        // Delegator を生成する
        sdl = new StampDelegater();
       
        int delay = 200;
        int maxEstimation = 30*1000;
   
        String message = "スタンプ公開";
View Full Code Here

        stmpTree.setLastUpdated(null);
        stmpTree.setCategory(null);
        stmpTree.setName(ClientContext.getString("stampTree.personal.box.name"));
        stmpTree.setDescription(ClientContext.getString("stampTree.personal.box.tooltip"));
       
        sdl = new StampDelegater();
       
        int delay = 200;
        int maxEstimation = 60*1000;

        String message = "スタンプ公開";
View Full Code Here

                    JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE
                    );
            if (ans != JOptionPane.YES_OPTION) return;
        }

        final StampDelegater sdl = new StampDelegater();

        DBTask task = new DBTask<List<StampModel>>(getContext()) {
            @Override
            protected List<StampModel> doInBackground() throws Exception {
                List<StampModel> result = sdl.getStamp(stampList);
                return result;
            }
            @Override
            protected void succeeded(List<StampModel> list) {
                logger.debug("importStampList succeeded");
                if (sdl.isNoError() && list != null) {
                    for (int i = list.size() - 1; i > -1; i--) {
                        insertStamp(list.get(i), insertRow);
                    }
                }
                // 病名を drop した場合,ここに入ってくる
View Full Code Here

    /**
     * 公開されているTreeのリストを取得しテーブルへ表示する。
     */
    public void start() {
       
        sdl = new StampDelegater();
       
        int delay = 200;
        int maxEstimation = 60*1000;
        String mmsg = "公開スタンプを取得しています...";
        String message = "スタンプ取り込み";
View Full Code Here

        sm.setTreeId(importTree.getId());
        final List<SubscribedTreeModel> subscribeList = new ArrayList<SubscribedTreeModel>(1);
        subscribeList.add(sm);
       
        // デリゲータを生成する
        sdl = new StampDelegater();
       
        // Worker, Timer を実行する
        int delay = 200;
        int maxEstimation = 60*1000;
        String mmsg = "公開スタンプをインポートしています...";
View Full Code Here

        sm.setUser(Project.getUserModel());
        final List<SubscribedTreeModel> list = new ArrayList<SubscribedTreeModel>(1);
        list.add(sm);
       
        // DeleteTaskを実行する
        sdl = new StampDelegater();
       
        // Unsubscribeタスクを実行する
        int delay = 200;
        int maxEstimation = 60*1000;
        String mmsg = "インポート済みスタンプを削除しています...";
View Full Code Here

TOP

Related Classes of open.dolphin.delegater.StampDelegater

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.