Java 类org.androidannotations.annotations.Extra 实例源码

项目:Coding-Android    文件:TopicAddActivity.java   
@OnActivityResult(RESULT_LABEL)
protected void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (code == RESULT_OK) {
        modifyData.labels = labels;
        editFragment.updateLabels(modifyData.labels);
        previewFragment.updateLabels(modifyData.labels);
        labelsHasChanged = true;
        saveLabelsIfCancel();
    }
}
项目:Coding-Android    文件:TopicLabelActivity.java   
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
    if (result == RESULT_OK) {
        generateColor = resultData;
        updateColorPreview();
    }
}
项目:Coding-Android    文件:TopicLabelActivity.java   
@OnActivityResult(RESULT_MODIFY)
void onResultModify(int result, @OnActivityResult.Extra TopicLabelObject resultData) {
    if (result == RESULT_OK) {
        if (allLabels.containsKey(currentLabelId)) {
            TopicLabelObject topicLabelObject = allLabels.get(currentLabelId);
            topicLabelObject.name = resultData.name;
            topicLabelObject.color = resultData.color;
        }
        updateList();
    }

    unlockViews();
}
项目:Coding-Android    文件:ModifyLabelActivity.java   
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
    if (result == RESULT_OK) {
        labelObject.color = resultData;
        updateColorPreview();
    }
}
项目:Coding-Android    文件:MergeDetailActivity.java   
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
    if (resultCode == RESULT_OK) {
        refResourceList = resultData;
        updateRefResourceUI();
    }
}
项目:Coding-Android    文件:GitViewActivity.java   
@OnActivityResult(RESULT_EDIT)
void onResultEdit(int resultCode, @OnActivityResult.Extra GitFileBlobObject resultData) {
    if (resultCode == RESULT_OK) {
        mFile = resultData;
        bindUIByData();
    }
}
项目:Coding-Android    文件:TopicListDetailActivity.java   
@OnActivityResult(RESULT_LABEL)
void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (code == RESULT_OK) {
        topicObject.labels = labels;
        updateLabels(topicObject.labels);
        mResultData.putExtra("topic", topicObject);
    }
}
项目:Coding-Android    文件:TopicListDetailActivity.java   
@OnActivityResult(RESULT_MODIFY_WATCHER)
void onResultModifyWatcher(int code, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
    if (code == RESULT_OK) {
        watchers = resultData;
        watchHelp.setData(this.watchers);
    }
}
项目:Coding-Android    文件:LocationSearchActivity.java   
@OnActivityResult(MaopaoAddActivity.RESULT_REQUEST_LOCATION)
void on_RESULT_REQUEST_LOCATION(int result, Intent intent, @OnActivityResult.Extra LocationObject location) {
    if (result == RESULT_OK) {
        setResult(RESULT_OK, intent);
        finish();
    }
}
项目:Coding-Android    文件:TaskAddActivity.java   
@OnActivityResult(RESULT_LABEL)
void resultLabels(int result, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (result == RESULT_OK) {
        mSingleTask.labels = labels;
        updateLabels(labels);
    }
}
项目:Coding-Android    文件:TaskAddActivity.java   
@OnActivityResult(RESULT_REQUEST_PICK_WATCH_USER)
void resultWatchUser(int result, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
    if (result == RESULT_OK) {
        watchUsers = resultData;
        uiBindDataWatch();
    }
}
项目:Coding-Android    文件:TaskAddActivity.java   
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
   if (resultCode == RESULT_OK) {
       refResourceList = resultData;
       updateRefResourceUI();
   }
}
项目:ocara    文件:ListCommentActivity.java   
@OnActivityResult(EDIT_COMMENT_REQUEST_CODE)
void onResult(int resultCode, @org.androidannotations.annotations.OnActivityResult.Extra(value = "commentId") Long commentId) {

    if (resultCode == RESULT_OK) {
        updateComment(commentId);
    }
}
项目:Coding-Android    文件:TaskAddActivity.java   
@OnActivityResult(RESULT_REQUEST_SELECT_USER)
void resultSelectUser(int resultCode, @OnActivityResult.Extra TaskObject.Members members) {
    if (resultCode == Activity.RESULT_OK) {
        setPickUser(members);
    }
}
项目:Coding-Android    文件:TaskAddActivity.java   
@OnActivityResult(RESULT_REQUEST_FOLLOW)
void resultRequestFollow(int resultCode, @OnActivityResult.Extra String name) {
    if (resultCode == RESULT_OK) {
        mEnterComment.getEnterLayout().insertText(name);
    }
}