Java Code Examples for com.google.gwt.user.client.ui.HorizontalPanel#setHeight()
The following examples show how to use
com.google.gwt.user.client.ui.HorizontalPanel#setHeight() .
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: WorkflowDashboard.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * UserDashboard */ public WorkflowDashboard() { vPanelLeft = new VerticalPanel(); vPanelRight = new VerticalPanel(); hPanel = new HorizontalPanel(); hPanel.add(vPanelLeft); hPanel.add(vPanelRight); pendingTasks = new WorkflowWidget("dashboard.workflow.pending.tasks", "img/icon/workflow.gif", true); pendingPooledTasks = new WorkflowWidget("dashboard.workflow.pending.tasks.unassigned", "img/icon/workflow.gif", true); pendingTasks.setIsWidgetPendingTask(); pendingPooledTasks.setIsWidgetPooledTask(); workflowFormPanel = new WorkflowFormPanel(); vPanelLeft.add(pendingTasks); vPanelLeft.add(pendingPooledTasks); vPanelRight.add(workflowFormPanel); hPanel.setHeight("100%"); vPanelRight.setHeight("100%"); initWidget(hPanel); }
Example 2
Source File: Status.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * The status */ public Status() { super(false, true); hPanel = new HorizontalPanel(); image = new Image(OKMBundleResources.INSTANCE.indicator()); msg = new HTML(""); space = new HTML(""); hPanel.add(image); hPanel.add(msg); hPanel.add(space); hPanel.setCellVerticalAlignment(image, HasAlignment.ALIGN_MIDDLE); hPanel.setCellVerticalAlignment(msg, HasAlignment.ALIGN_MIDDLE); hPanel.setCellHorizontalAlignment(image, HasAlignment.ALIGN_CENTER); hPanel.setCellWidth(image, "30px"); hPanel.setCellWidth(space, "7px"); hPanel.setHeight("25px"); msg.setStyleName("okm-NoWrap"); super.hide(); setWidget(hPanel); }
Example 3
Source File: Status.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * Status */ public Status() { super(false, true); hPanel = new HorizontalPanel(); image = new Image(OKMBundleResources.INSTANCE.indicator()); msg = new HTML(""); space = new HTML(""); hPanel.add(image); hPanel.add(msg); hPanel.add(space); hPanel.setCellVerticalAlignment(image, HasAlignment.ALIGN_MIDDLE); hPanel.setCellVerticalAlignment(msg, HasAlignment.ALIGN_MIDDLE); hPanel.setCellHorizontalAlignment(image, HasAlignment.ALIGN_CENTER); hPanel.setCellWidth(image, "30px"); hPanel.setCellWidth(space, "7px"); hPanel.setHeight("25px"); msg.setStyleName("okm-NoWrap"); super.hide(); setWidget(hPanel); }
Example 4
Source File: ApiUser.java From sc2gears with Apache License 2.0 | 6 votes |
private static DialogBox createWaitingDialog( final String message ) { final DialogBox dialogBox = new DialogBox(); dialogBox.setText( "Info" ); final HorizontalPanel hp = new HorizontalPanel(); DOM.setStyleAttribute( hp.getElement(), "padding", "20px" ); hp.setHeight( "20px" ); hp.add( new Image( "/images/loading.gif" ) ); hp.add( ClientUtils.createHorizontalEmptyWidget( 5 ) ); hp.add( new Label( message ) ); dialogBox.setWidget( hp ); dialogBox.center(); return dialogBox; }
Example 5
Source File: User.java From sc2gears with Apache License 2.0 | 6 votes |
private static DialogBox createWaitingDialog( final String message ) { final DialogBox dialogBox = new DialogBox(); dialogBox.setText( "Info" ); final HorizontalPanel hp = new HorizontalPanel(); DOM.setStyleAttribute( hp.getElement(), "padding", "20px" ); hp.setHeight( "20px" ); hp.add( new Image( "/images/loading.gif" ) ); hp.add( ClientUtils.createHorizontalEmptyWidget( 5 ) ); hp.add( new Label( message ) ); dialogBox.setWidget( hp ); dialogBox.center(); return dialogBox; }
Example 6
Source File: ClientUtils.java From sc2gears with Apache License 2.0 | 5 votes |
/** * Returns a widget which indicates that the logged in user is being checked. * @return a widget which indicates that the logged in user is being checked */ public static Widget createCheckingUserWidget() { final HorizontalPanel panel = new HorizontalPanel(); panel.setHeight( "20px" ); panel.add( new Image( "/images/loading.gif" ) ); panel.add( createHorizontalEmptyWidget( 3 ) ); panel.add( styledWidget( new Label( "Checking user..." ), "note" ) ); return panel; }
Example 7
Source File: DiagramTab.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
/** * Creates the Slider the user can interact with to change the shown time intervals of the given * timeseries'. * * @return the TimeSlider as a whole */ private HorizontalPanel createOverviewSlider() { HorizontalPanel horizontalSlider = new HorizontalPanel(); DOM.setStyleAttribute(horizontalSlider.getElement(), "marginTop", "6px"); horizontalSlider.setHeight("75px"); this.leftHandleWidget = buildSliderPart("8px", "75px", "w-resize", "#6585d0", 0.5); this.rightHandleWidget = buildSliderPart("8px", "75px", "e-resize", "#6585d0", 0.5); this.mainHandleWidget = buildSliderPart("100%", "75px", "move", "#aaa", 0.5); horizontalSlider.add(this.leftHandleWidget); horizontalSlider.setCellWidth(this.leftHandleWidget, "15px"); horizontalSlider.add(this.mainHandleWidget); horizontalSlider.setCellWidth(this.mainHandleWidget, "100%"); horizontalSlider.add(this.rightHandleWidget); horizontalSlider.setCellWidth(this.rightHandleWidget, "15px"); DOM.setStyleAttribute(horizontalSlider.getElement(), "visibility", "hidden"); GenericWidgetViewImpl view = new GenericWidgetViewImpl(horizontalSlider); OverviewPresenter overviewPresenter = new OverviewPresenter(view, this.overviewEventBus, this.mainChartEventBus); // Define handles for overview control GenericWidgetView leftHandle = new GenericWidgetViewImpl(this.leftHandleWidget); GenericWidgetView mainHandle = new GenericWidgetViewImpl(this.mainHandleWidget); GenericWidgetView rightHandle = new GenericWidgetViewImpl(this.rightHandleWidget); overviewPresenter.addHandle(leftHandle, Bound.LEFT); overviewPresenter.addHandle(mainHandle, Bound.RIGHT, Bound.LEFT); overviewPresenter.addHandle(rightHandle, Bound.RIGHT); overviewPresenter.setMinClippingWidth(40); // min width overviewPresenter.setVerticallyLocked(true); // drag horizontally only return horizontalSlider; }