Java 类com.google.gwt.user.client.ui.LongBox 实例源码

项目:socom    文件:LoginPanel.java   
private void buildLoginArea() {
    HorizontalPanel manualLoginUid = new HorizontalPanel();
    add(manualLoginUid);

    Label lblUserId = new Label("User ID");
    manualLoginUid.add(lblUserId);

    uidBox = new LongBox();
    manualLoginUid.add(uidBox);

    HorizontalPanel manualLoginPassword = new HorizontalPanel();
    add(manualLoginPassword);

    Label lblSecret = new Label("Password");
    manualLoginPassword.add(lblSecret);

    passwordBox = new TextBox();
    manualLoginPassword.add(passwordBox);

    loginButton = new Button("Login");
    add(loginButton);

    loginFBButton = new Button("Login with Facebook");
    add(loginFBButton);

    initLoginListeners();
}
项目:dhcalc    文件:LongSpinner.java   
public LongSpinner(String text) {
    super(new LongBox(), text, 0L, Long.MAX_VALUE, 1L);
}
项目:notification.samples    文件:NotificationForm.java   
private void init() {

        Label lblTitle = new Label("title:");
        add(lblTitle);

        inputTitle = new TextBox();
        add(inputTitle);

        Label lblIcon = new Label("icon [url]:");
        add(lblIcon);

        inputIcon = new TextBox();
        add(inputIcon);

        Label lblDir = new Label("direction:");
        add(lblDir);

        inputDir = new ListBox();
        inputDir.addItem("auto");
        inputDir.addItem("ltr");
        inputDir.addItem("rtl");
        add(inputDir);

        Label lblEnableHandlers = new Label("enable handlers:");
        add(lblEnableHandlers);

        inputEnableHandlers = new CheckBox();
        add(inputEnableHandlers);

        Label lblBody = new Label("body:");
        add(lblBody);

        inputBody = new TextArea();
        add(inputBody);

        Label lblDuration = new Label("duration [ms]:");
        add(lblDuration);

        inputDuration = new LongBox();
        inputDuration.setText("5000");
        add(inputDuration);

        Button showBtn = new Button("create");
        showBtn.addClickHandler(this);
        add(showBtn);
    }