All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.future.earth.gwt.client.ui.panels.PanelWithMainAndButtonPanel Maven / Gradle / Ivy

The newest version!
package eu.future.earth.gwt.client.ui.panels;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;

public class PanelWithMainAndButtonPanel extends Composite {

	private ButtonFlowPanelRight buttons = new ButtonFlowPanelRight();

	private FlowPanel dock = new FlowPanel();

	private SimplePanel sim = new SimplePanel();

	public PanelWithMainAndButtonPanel(Widget all) {
		super();
		initWidget(dock);
		dock.add(sim);
		if (all != null) {
			sim.setWidget(all);
		}
		dock.add(buttons);
		sim.addStyleName("main");
		dock.setWidth("100%");
	}

	public void setMain(Widget newMain) {
		sim.clear();
		sim.setWidget(newMain);
	}

	public void addButton(Widget closeButton) {
		buttons.addButton(closeButton);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy