ar.com.kyol.jet.client.wrappers.MinutesBox.java Source code

Java tutorial

Introduction

Here is the source code for ar.com.kyol.jet.client.wrappers.MinutesBox.java

Source

/*
 * gwt-jet 
 * 
 * Widgets wrapping objects with reflection autopopulation for fast coding
 * 
 * The gwt-jet library provides a fast, flexible and easy way to wrap business 
 * objects that you want to show at the front-end. The jet classes automatically 
 * create the corresponding widget and automagically populate the user modified 
 * values into the original object.
 * 
 * gwt-jet was created by
 * Silvana Muzzopappa & Federico Pugnali
 * (c)2011 - Apache 2.0 license
 * 
 */
package ar.com.kyol.jet.client.wrappers;

import com.google.gwt.i18n.client.NumberFormat;
import com.google.gwt.user.client.ui.ListBox;

public class MinutesBox extends ListBox {

    /**
     * Instantiates a new minutes box.
     */
    public MinutesBox() {
        super();
        for (int i = 0; i < 60; i++) {
            this.addItem(NumberFormat.getFormat("00").format(i));
        }
    }

}