VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
verticalPanel.setHeight("100%"); flexTable.setWidget(0, 1, verticalPanel); flexTable.getFlexCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_MIDDLE);
infoPanel.add(errorPanel); infoPanel.setHeight("50px");
public FullHeightLayoutPanel() { SimpleLayoutPanel s = new SimpleLayoutPanel(); s.add( panel ); panel.setWidth( "100%" ); panel.setHeight( "100%" ); initWidget( s ); }
public FullHeightLayoutPanel() { SimpleLayoutPanel s = new SimpleLayoutPanel(); s.add( panel ); panel.setWidth( "100%" ); panel.setHeight( "100%" ); initWidget( s ); }
public StatusText() { setText(DEFAULT_EMPTY_TEXT); verticalPanel = new VerticalPanel(); verticalPanel.setHeight("50px"); verticalPanel.setWidth("100%"); verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); verticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); }
@Override public void showEmpty(Displayer displayer) { currentDisplayer = null; VerticalPanel centeredPanel = new VerticalPanel(); centeredPanel.setWidth("100%"); centeredPanel.setHeight("100%"); centeredPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); centeredPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Label noDataLabel = new Label(DashboardConstants.INSTANCE.noData()); centeredPanel.add(noDataLabel); displayerPanel.clear(); displayerPanel.add(centeredPanel); }
@Override public void showLoading(Displayer displayer) { currentDisplayer = null; VerticalPanel centeredPanel = new VerticalPanel(); centeredPanel.setWidth("100%"); centeredPanel.setHeight("100%"); centeredPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); centeredPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Image loadingIcon = new Image(DataSetClientResources.INSTANCE.images().loadingIcon().getSafeUri()); loadingIcon.setTitle(DashboardConstants.INSTANCE.loading()); loadingIcon.setAltText(DashboardConstants.INSTANCE.loading()); centeredPanel.add(loadingIcon); displayerPanel.clear(); displayerPanel.add(centeredPanel); }
VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
public CustomFormPopUp( Image image, String title, CustomFormConfiguration configuration ) { super( image, title ); this.configuration = configuration; this.externalFrame = new Frame(); this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" ); this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" ); VerticalPanel vp = new VerticalPanel(); vp.setWidth( "100%" ); vp.setHeight( "100%" ); vp.add( this.externalFrame ); okButton = new Button( Constants.INSTANCE.OK() ); //cancel button with default handler cancelButton = new Button( Constants.INSTANCE.Cancel(), new ClickHandler() { public void onClick( ClickEvent event ) { hide(); } } ); HorizontalPanel hp = new HorizontalPanel(); hp.setWidth( "100%" ); hp.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); hp.add( okButton ); hp.add( cancelButton ); vp.add( hp ); this.addRow( vp ); }
public CustomFormPopUp( Image image, String title, CustomFormConfiguration configuration ) { super( image, title ); this.configuration = configuration; this.externalFrame = new Frame(); this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" ); this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" ); VerticalPanel vp = new VerticalPanel(); vp.setWidth( "100%" ); vp.setHeight( "100%" ); vp.add( this.externalFrame ); okButton = new Button( GuidedRuleEditorResources.CONSTANTS.OK() ); //cancel button with default handler cancelButton = new Button( GuidedRuleEditorResources.CONSTANTS.Cancel(), new ClickHandler() { public void onClick( ClickEvent event ) { hide(); } } ); HorizontalPanel hp = new HorizontalPanel(); hp.setWidth( "100%" ); hp.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); hp.add( okButton ); hp.add( cancelButton ); vp.add( hp ); this.addRow( vp ); }
public CustomFormPopUp( Image image, String title, CustomFormConfiguration configuration ) { super( image, title ); this.configuration = configuration; this.externalFrame = new Frame(); this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" ); this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" ); VerticalPanel vp = new VerticalPanel(); vp.setWidth( "100%" ); vp.setHeight( "100%" ); vp.add( this.externalFrame ); okButton = new Button( GuidedRuleEditorResources.CONSTANTS.OK() ); //cancel button with default handler cancelButton = new Button( GuidedRuleEditorResources.CONSTANTS.Cancel(), new ClickHandler() { public void onClick( ClickEvent event ) { hide(); } } ); HorizontalPanel hp = new HorizontalPanel(); hp.setWidth( "100%" ); hp.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); hp.add( okButton ); hp.add( cancelButton ); vp.add( hp ); this.addRow( vp ); }
panel.setHeight("22px"); panel.setWidth("198px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
final VerticalPanel panel = new VerticalPanel(); panel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); panel.setHeight("100%");
final VerticalPanel panel = new VerticalPanel(); panel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); panel.setHeight("100%");
vbox.add(hbox); vbox.setHeight("100%"); panel.add(vbox); panel.setCellHeight(vbox, "100%");