⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 choiceitemcontents.java

📁 eclipse开发笔记
💻 JAVA
字号:
package com.plugindev.addressbook.editors.models;

import java.util.ArrayList;

//单个choice Item
//需要记录:1.名称 2.button数量 3.每个button的名字
public class ChoiceItemContents {
	private String key;
	private int value;
	private ArrayList<String> choices;

	public ChoiceItemContents(String key, String[] choices, int value){
		this.key = key;
		this.value = value;
		this.choices = new ArrayList<String>();
		for(int i = 0; i < choices.length; i++)
		{
			this.choices.add(choices[i]);
		}
	}
	public String getKey(){
		return key;
	}
	public int getValue(){
		return value;
	}
	public Object[] getChoices(){
		return choices.toArray();
	}
	public void addChoice(String choice){
		choices.add(choice);
	}
	public void removeChoice(String choice){
		choices.remove(choice);
	}
	public void setValue(int value){
		this.value = value;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -