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


Java ItemSelect类代码示例

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

示例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);
	}
}
 
开发者ID:timothyb89,项目名称:lifx-tasker,代码行数:50,代码来源:EditActivity.java

示例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));
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MapSetupFragment.java

示例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));
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MapSetupFragment.java

示例5: serverSpinnerItemSelected

import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void serverSpinnerItemSelected(boolean selected, ServerSetting server) {
	serverText.setText(server.getName());
	loadTorrents();
}
 
开发者ID:erickok,项目名称:transdroid,代码行数:6,代码来源:ListWidgetConfigActivity.java

示例6: filterSpinnerItemSelected

import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void filterSpinnerItemSelected(boolean selected, StatusTypeFilter statusTypeFilter) {
	filterText.setText(statusTypeFilter.getName());
	filterTorrents();
}
 
开发者ID:erickok,项目名称:transdroid,代码行数:6,代码来源:ListWidgetConfigActivity.java

示例7: sortSpinnerItemSelected

import org.androidannotations.annotations.ItemSelect; //导入依赖的package包/类
@ItemSelect
protected void sortSpinnerItemSelected(boolean selected, SortByListItem sortByListItem) {
	filterTorrents();
}
 
开发者ID:erickok,项目名称:transdroid,代码行数:5,代码来源:ListWidgetConfigActivity.java


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