backButtonPanel.setHeight("100%"); backButtonPanel.addStyleName(Utils.kaaAdminStyle.bAppPaddedPanel()); backButtonPanel.setVisible(false); backButton.getElement().getStyle().setPaddingTop(25, Unit.PX); backButton.getElement().getStyle().setPaddingBottom(25, Unit.PX); firstRowPanel.setHeight("45px"); firstRowPanel.getElement().getStyle().setPaddingBottom(5, Unit.PX); secondRowPanel.setHeight("45px"); topPanel.setHeight("105px"); topPanel.getElement().getStyle().setPaddingTop(10, Unit.PX); updateNorthSize(185); } else { firstRowPanel.setHeight("70px"); secondRowPanel.setHeight("100%"); topPanel.setHeight("80px"); updateNorthSize(175);
topPanel.setCellHeight(panel, "100%"); HorizontalPanel horizontalPanel = new HorizontalPanel(); horizontalPanel.setHeight("100%"); panel.add(horizontalPanel); backButtonPanel.setHeight("100%"); backButtonPanel.addStyleName(Utils.kaaAdminStyle.bAppPaddedPanel()); backButtonPanel.setVisible(false); buttonsPanel.setHeight("100%"); buttonsPanel.addStyleName(Utils.avroUiStyle.buttonsPanel()); horizontalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
schemaNamePanel.setHeight("40px"); schemaNamePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Label endpointProfSchemaLabel = new Label(Utils.constants.schemaName()); schemaNamePanel.setHeight("40px"); schemaNamePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Label serverProfSchemaLabel = new Label(Utils.constants.schemaName()); schemaNamePanel.setHeight("40px"); schemaNamePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Label endpointConfSchemaLabel = new Label(Utils.constants.schemaName());
@Override public void setHeight(String height) { super.setHeight(height); this.text.setHeight(height); } }
@Override public void setHeight(int height) { super.setHeight(height + "px"); radioButtonsPanel.setHeight(height + "px"); }
@Override public void setHeight(int height) { super.setHeight(height + "px"); radioButtonsPanel.setHeight(height + "px"); }
HorizontalPanel hp = new HorizontalPanel(); hp.add(new Label("samplelabel 1")); hp.add(new Label("samplelabel 2")); hp.add(new Label("samplelabel 3")); ClickHandler ch = new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert("clicked"); } }; hp.addDomHandler(ch, ClickEvent.getType()); hp.setWidth("500px"); hp.setHeight("500px"); RootPanel.get().add(hp);
private HeaderSorter( final DynamicColumn<BaseColumn> col ) { this.col = col; hp.setHorizontalAlignment( HorizontalPanel.ALIGN_CENTER ); hp.setVerticalAlignment( VerticalPanel.ALIGN_MIDDLE ); hp.setHeight( resources.rowHeaderSorterHeight() + "px" ); hp.setWidth( "100%" ); setIconImage(); add( hp ); // Ensure our icon is updated when the SortDirection changes col.addValueChangeHandler( new ValueChangeHandler<SortConfiguration>() { public void onValueChange( ValueChangeEvent<SortConfiguration> event ) { setIconImage(); } } ); }
private HeaderSorter( final DynamicColumn<TemplateDataColumn> col ) { this.col = col; hp.setHorizontalAlignment( HorizontalPanel.ALIGN_CENTER ); hp.setVerticalAlignment( VerticalPanel.ALIGN_MIDDLE ); hp.setHeight( resources.rowHeaderSorterHeight() + "px" ); hp.setWidth( "100%" ); setIconImage(); add( hp ); // Ensure our icon is updated when the SortDirection changes col.addValueChangeHandler( new ValueChangeHandler<SortConfiguration>() { public void onValueChange( ValueChangeEvent<SortConfiguration> event ) { setIconImage(); } } ); }
private Widget getCharacteristics() { characteristicsPanel = new VerticalPanel(); characteristicsTables = new ArrayList<FlexTable>(); final HorizontalPanel toolbar = new HorizontalPanel(); btnAddCharacteristic = new Button(GuidedScoreCardConstants.INSTANCE.addCharacteristic(), new ClickHandler() { public void onClick(ClickEvent event) { addCharacteristic(null); } }); toolbar.add(btnAddCharacteristic); toolbar.setHeight("24"); characteristicsPanel.add(toolbar); final SimplePanel gapPanel = new SimplePanel(); gapPanel.add(new HTML("<br/>")); characteristicsPanel.add(gapPanel); return characteristicsPanel; }
private Widget getCharacteristics() { characteristicsPanel = new VerticalPanel(); characteristicsTables = new ArrayList<FlexTable>(); final HorizontalPanel toolbar = new HorizontalPanel(); btnAddCharacteristic = new Button(GuidedScoreCardConstants.INSTANCE.addCharacteristic(), new ClickHandler() { public void onClick(ClickEvent event) { addCharacteristic(null); } }); toolbar.add(btnAddCharacteristic); toolbar.setHeight("24"); characteristicsPanel.add(toolbar); final SimplePanel gapPanel = new SimplePanel(); gapPanel.add(new HTML("<br/>")); characteristicsPanel.add(gapPanel); return characteristicsPanel; }
/** * Create the titlebar area of the interface. * * @return - */ private HorizontalPanel createHeader() { HorizontalPanel header = new HorizontalPanel(); Image img = new Image(erraiImageBundle.workspaceLogo()); img.setHeight("45px"); img.setWidth("193px"); header.add(img); header.setCellHorizontalAlignment(img, HasHorizontalAlignment.ALIGN_LEFT); header.setHeight("45px"); header.setWidth("100%"); header.setStyleName("headerStyle"); header.add(userInfoPanel); header.setCellHorizontalAlignment(userInfoPanel, HasHorizontalAlignment.ALIGN_RIGHT); return header; }
HorizontalPanel horizontalSlider = new HorizontalPanel(); DOM.setStyleAttribute(horizontalSlider.getElement(), "marginTop", "6px"); horizontalSlider.setHeight("75px");
topNavPanel.setHeight("20px"); topNavPanel.setStyleName("workspace-NavHeader");