📄 options.java
字号:
/*
* Created on 2005-2-9
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package cn.myapps.core.dynaform.form.ejb;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author zhouty
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Options {
private Collection options = new ArrayList();
/**
*
*/
public Options() {
super();
// TODO Auto-generated constructor stub
}
public void add(Option opt) {
options.add(opt);
}
public void remove(Option opt) {
options.remove(opt);
}
public void add(String option, String value) {
Option opt = new Option(option, value);
add(opt);
}
public void add(String option, String value, boolean def) {
Option opt = new Option(option, value, def);
add(opt);
}
public void remove(String option, String value) {
Option opt = new Option(option, value);
remove(opt);
}
public static Options createOptions() {
return new Options();
}
public static void main(String[] args) {
}
/**
* @return Returns the options.
*/
public Collection getOptions() {
return options;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -