📄 combolistboxbinding.java
字号:
/**
*
*/
package pagecode.comboListBoxBinding;
import pagecode.PageCodeBase;
import com.ibm.faces.component.html.HtmlScriptCollector;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlSelectOneMenu;
import com.ibm.faces.component.html.HtmlCommandExButton;
import com.ibm.samples.comboListBox.ComboListBoxBean;
import com.ibm.samples.comboListBox.ComboListValuesBean;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlSelectManyListbox;
import javax.faces.component.html.HtmlSelectOneListbox;
/**
* @author nan
*
*/
public class ComboListBoxBinding extends PageCodeBase {
protected ComboListBoxBean comboList;
protected ComboListValuesBean comboListValues;
protected HtmlScriptCollector scriptCollector1;
protected HtmlForm form1;
protected HtmlSelectOneMenu colorMenu;
protected HtmlCommandExButton button2;
protected HtmlOutputText colorOutput;
protected HtmlSelectManyListbox shapeMenu;
protected HtmlCommandExButton button3;
protected HtmlOutputText shapeOutput;
protected HtmlSelectOneListbox monthMenu;
protected HtmlCommandExButton button1;
protected HtmlOutputText monthOutput;
/**
* @managed-bean true
*/
public ComboListBoxBean getComboList() {
if (comboList == null) {
comboList = (ComboListBoxBean) getFacesContext().getApplication()
.createValueBinding("#{comboList}").getValue(
getFacesContext());
}
return comboList;
}
/**
* @managed-bean true
*/
public void setComboList(ComboListBoxBean comboList) {
this.comboList = comboList;
}
public ComboListValuesBean getComboListValues() {
if (comboListValues == null) {
comboListValues = new ComboListValuesBean();
}
return comboListValues;
}
public void setComboListValues(ComboListValuesBean comboListValues) {
this.comboListValues = comboListValues;
}
protected HtmlScriptCollector getScriptCollector1() {
if (scriptCollector1 == null) {
scriptCollector1 = (HtmlScriptCollector) findComponentInRoot("scriptCollector1");
}
return scriptCollector1;
}
protected HtmlForm getForm1() {
if (form1 == null) {
form1 = (HtmlForm) findComponentInRoot("form1");
}
return form1;
}
protected HtmlSelectOneMenu getColorMenu() {
if (colorMenu == null) {
colorMenu = (HtmlSelectOneMenu) findComponentInRoot("colorMenu");
}
return colorMenu;
}
protected HtmlCommandExButton getButton2() {
if (button2 == null) {
button2 = (HtmlCommandExButton) findComponentInRoot("button2");
}
return button2;
}
protected HtmlOutputText getColorOutput() {
if (colorOutput == null) {
colorOutput = (HtmlOutputText) findComponentInRoot("colorOutput");
}
return colorOutput;
}
protected HtmlSelectManyListbox getShapeMenu() {
if (shapeMenu == null) {
shapeMenu = (HtmlSelectManyListbox) findComponentInRoot("shapeMenu");
}
return shapeMenu;
}
protected HtmlCommandExButton getButton3() {
if (button3 == null) {
button3 = (HtmlCommandExButton) findComponentInRoot("button3");
}
return button3;
}
protected HtmlOutputText getShapeOutput() {
if (shapeOutput == null) {
shapeOutput = (HtmlOutputText) findComponentInRoot("shapeOutput");
}
return shapeOutput;
}
protected HtmlSelectOneListbox getMonthMenu() {
if (monthMenu == null) {
monthMenu = (HtmlSelectOneListbox) findComponentInRoot("monthMenu");
}
return monthMenu;
}
protected HtmlCommandExButton getButton1() {
if (button1 == null) {
button1 = (HtmlCommandExButton) findComponentInRoot("button1");
}
return button1;
}
protected HtmlOutputText getMonthOutput() {
if (monthOutput == null) {
monthOutput = (HtmlOutputText) findComponentInRoot("monthOutput");
}
return monthOutput;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -