当前位置: 首页>>代码示例>>Java>>正文


Java Extra类代码示例

本文整理汇总了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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:11,代码来源:TopicAddActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TopicLabelActivity.java

示例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();
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:14,代码来源:TopicLabelActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:ModifyLabelActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:MergeDetailActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:GitViewActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:9,代码来源:TopicListDetailActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TopicListDetailActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:LocationSearchActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例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();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例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();
   }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例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);
    }
}
 
开发者ID:Orange-OpenSource,项目名称:ocara,代码行数:8,代码来源:ListCommentActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:7,代码来源:TaskAddActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:7,代码来源:TaskAddActivity.java


注:本文中的org.androidannotations.annotations.Extra类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。