Package org.apache.cocoon.forms.datatype

Examples of org.apache.cocoon.forms.datatype.StaticSelectionList.addItem()


        // set customPageField
        if (this.customPageField != null) {
            StaticSelectionList selectionList = new StaticSelectionList(this.customPageField.getDatatype());
            int j;
            for (j = 0; j <= this.getMaxPage(); j++) {
                selectionList.addItem(new Integer(j), (j + 1) + "");
            }
            this.customPageField.setSelectionList(selectionList);
            this.customPageField.setValue(new Integer(this.currentPage));
        }
    }
View Full Code Here


        // set customPageField
        if (this.customPageField != null) {
            StaticSelectionList selectionList = new StaticSelectionList(this.customPageField.getDatatype());
            int j;
            for (j = 0; j <= this.getMaxPage();j++) {
                selectionList.addItem(new Integer(j),(j+1)+"");
            }
            this.customPageField.setSelectionList(selectionList);
            this.customPageField.setValue(new Integer(this.currentPage));
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.