Java Code Examples for com.smartgwt.client.widgets.layout.HLayout#setStyleName()

The following examples show how to use com.smartgwt.client.widgets.layout.HLayout#setStyleName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EditingTabSet.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public EditingTabSet(ClickHandler saveHandler, ClickHandler cancelHandler) {
	saveButton = new Button(I18N.message("save"));
	saveButton.setAutoFit(true);
	saveButton.setMargin(2);
	saveButton.addClickHandler(saveHandler);
	saveButton.setLayoutAlign(VerticalAlignment.CENTER);

	cancelButton = new Button(I18N.message("cancel"));
	cancelButton.setAutoFit(true);
	cancelButton.setMargin(2);
	cancelButton.setLayoutAlign(VerticalAlignment.CENTER);
	cancelButton.addClickHandler(new ClickHandler() {

		@Override
		public void onClick(ClickEvent event) {
			hideSave();
		}
	});
	if (cancelHandler != null)
		cancelButton.addClickHandler(cancelHandler);

	savePanel = new HLayout();
	savePanel.setHeight(20);
	savePanel.setMembersMargin(5);
	savePanel.setStyleName("warn");
	savePanel.setMembers(saveButton, cancelButton);

	savePanel.hide();

	setTabBarControls(savePanel, TabBarControls.TAB_SCROLLER, TabBarControls.TAB_PICKER);
}
 
Example 2
Source File: ProfileWindow.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void loadWindowContent() {
    if (userDataLayout != null) {
        userDataLayout.clearValues();
    }
    content = new HLayout();
    content.addMember(createEditProfileLayout());
    content.addMember(createSubcriptionsLayout());
    content.setStyleName("n52_sensorweb_client_form_content");
    addItem(content);
    setTitle(i18n.editUserData());
    markForRedraw();
}
 
Example 3
Source File: EventSubscriptionWindow.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void loadWindowContent() {
    content = new HLayout();
    content.setStyleName("n52_sensorweb_client_create_abo_window_content");
    content.addMember(createSubscribeAndHelpContent());
    setTitle(i18n.createAboWindowTitle());
    addItem(content);
    markForRedraw();
}