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(); }
public LongSpinner(String text) { super(new LongBox(), text, 0L, Long.MAX_VALUE, 1L); }
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); }