本文整理汇总了Java中org.androidannotations.annotations.Extra类的典型用法代码示例。如果您正苦于以下问题:Java Extra类的具体用法?Java Extra怎么用?Java Extra使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Extra类属于org.androidannotations.annotations包,在下文中一共展示了Extra类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onResultLabel
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@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();
}
}
示例2: onResultPickColor
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
if (result == RESULT_OK) {
generateColor = resultData;
updateColorPreview();
}
}
示例3: onResultModify
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@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();
}
示例4: onResultPickColor
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
if (result == RESULT_OK) {
labelObject.color = resultData;
updateColorPreview();
}
}
示例5: resultRefResource
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
if (resultCode == RESULT_OK) {
refResourceList = resultData;
updateRefResourceUI();
}
}
示例6: onResultEdit
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_EDIT)
void onResultEdit(int resultCode, @OnActivityResult.Extra GitFileBlobObject resultData) {
if (resultCode == RESULT_OK) {
mFile = resultData;
bindUIByData();
}
}
示例7: onResultLabel
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@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);
}
}
示例8: onResultModifyWatcher
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_MODIFY_WATCHER)
void onResultModifyWatcher(int code, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
if (code == RESULT_OK) {
watchers = resultData;
watchHelp.setData(this.watchers);
}
}
示例9: on_RESULT_REQUEST_LOCATION
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@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();
}
}
示例10: resultLabels
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_LABEL)
void resultLabels(int result, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
if (result == RESULT_OK) {
mSingleTask.labels = labels;
updateLabels(labels);
}
}
示例11: resultWatchUser
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_REQUEST_PICK_WATCH_USER)
void resultWatchUser(int result, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
if (result == RESULT_OK) {
watchUsers = resultData;
uiBindDataWatch();
}
}
示例12: resultRefResource
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
if (resultCode == RESULT_OK) {
refResourceList = resultData;
updateRefResourceUI();
}
}
示例13: onResult
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(EDIT_COMMENT_REQUEST_CODE)
void onResult(int resultCode, @org.androidannotations.annotations.OnActivityResult.Extra(value = "commentId") Long commentId) {
if (resultCode == RESULT_OK) {
updateComment(commentId);
}
}
示例14: resultSelectUser
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_REQUEST_SELECT_USER)
void resultSelectUser(int resultCode, @OnActivityResult.Extra TaskObject.Members members) {
if (resultCode == Activity.RESULT_OK) {
setPickUser(members);
}
}
示例15: resultRequestFollow
import org.androidannotations.annotations.Extra; //导入依赖的package包/类
@OnActivityResult(RESULT_REQUEST_FOLLOW)
void resultRequestFollow(int resultCode, @OnActivityResult.Extra String name) {
if (resultCode == RESULT_OK) {
mEnterComment.getEnterLayout().insertText(name);
}
}