本文整理汇总了Java中org.androidannotations.annotations.ItemSelect类的典型用法代码示例。如果您正苦于以下问题:Java ItemSelect类的具体用法?Java ItemSelect怎么用?Java ItemSelect使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemSelect类属于org.androidannotations.annotations包,在下文中一共展示了ItemSelect类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onSpinnerItemClicked
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect(R.id.spinner) public void onSpinnerItemClicked(boolean pSelected,
Conference pConference) {
if (!mIgnoreSelection) {
this.onBackgroundChangeConference(pConference);
}
}
示例2: actionSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect(R.id.edit_action_spinner)
protected void actionSelected(boolean selected, String item) {
log.info("actionSelected({}, {})", selected, item);
if (!selected) {
parameters = null;
return;
}
Action a = Action.getAction(this, item);
if (a == null) {
log.error("Unknown action: " + item);
showToast("Unknown action: " + item);
return;
}
currentAction = a;
parameters.putString(FireReceiver.KEY_ACTION, a.getId());
paramContainer.removeAllViews();
for (final Parameter p : a.getParameters()) {
log.info("Creating editor for " + p.name());
TextView label = new TextView(this);
label.setText(p.getResourceId());
paramContainer.addView(label);
Button button = new Button(this);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
showEditor(p);
}
});
button.setText(R.string.edit_button);
paramContainer.addView(button);
TextView statusLabel = new TextView(this);
if (p.validate(this, parameters)) {
statusLabel.setText(p.describe(this, parameters));
}
paramContainer.addView(statusLabel);
labelMap.put(p, statusLabel);
}
}
示例3: playerSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect(R.id.spinner_number_of_players)
void playerSelected(boolean selected, int position) {
presenter.playerCountSelected(playerCountsAdapter.getItem(position));
}
示例4: startResourcesSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect(R.id.spinner_start_resources)
void startResourcesSelected(boolean selected, int position) {
presenter.startResourcesSelected(startResourcesAdapter.getItem(position));
}
示例5: serverSpinnerItemSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void serverSpinnerItemSelected(boolean selected, ServerSetting server) {
serverText.setText(server.getName());
loadTorrents();
}
示例6: filterSpinnerItemSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void filterSpinnerItemSelected(boolean selected, StatusTypeFilter statusTypeFilter) {
filterText.setText(statusTypeFilter.getName());
filterTorrents();
}
示例7: sortSpinnerItemSelected
import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void sortSpinnerItemSelected(boolean selected, SortByListItem sortByListItem) {
filterTorrents();
}