Java Code Examples for com.google.gwt.user.client.ui.LongBox

The following are top voted examples for showing how to use com.google.gwt.user.client.ui.LongBox. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: socom   File: LoginPanel.java   Source Code and License 5 votes vote down vote up
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();
}
 
Example 2
Project: dhcalc   File: LongSpinner.java   Source Code and License 4 votes vote down vote up
public LongSpinner(String text) {
	super(new LongBox(), text, 0L, Long.MAX_VALUE, 1L);
}
 
Example 3
Project: notification.samples   File: NotificationForm.java   Source Code and License 4 votes vote down vote up
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);
	}