private Element createAlignedTd() { Element td = DOM.createTD(); setCellHorizontalAlignment(td, horzAlign); setCellVerticalAlignment(td, vertAlign); return td; } }
titleBar.setCellVerticalAlignment(titleBarLabel, HasVerticalAlignment.ALIGN_MIDDLE); buttonPanel.add(closeButton); buttonPanel.setCellVerticalAlignment(showFurtherErrors, HasVerticalAlignment.ALIGN_MIDDLE);
private Element createAlignedTd() { Element td = DOM.createTD(); setCellHorizontalAlignment(td, horzAlign); setCellVerticalAlignment(td, vertAlign); return td; } }
private Element createAlignedTd() { Element td = DOM.createTD(); setCellHorizontalAlignment(td, horzAlign); setCellVerticalAlignment(td, vertAlign); return td; } }
private void addLoginButton(HorizontalPanel panel, SanTargetModel rootModel) { final UiCommandButton loginButton = new UiCommandButton(); loginButton.setCommand(rootModel.getLoginCommand()); loginButton.setTitle(constants.storageIscsiPopupLoginButtonLabel()); loginButton.setIcon(IconType.ARROW_RIGHT); loginButton.addClickHandler(event -> { treeScrollPosition = treeContainer.getVerticalScrollPosition(); loginButton.getCommand().execute(); }); loginButton.getElement().getStyle().setFloat(Float.RIGHT); loginButton.getElement().getStyle().setMarginRight(6, Unit.PX); panel.add(loginButton); panel.setCellVerticalAlignment(loginButton, HasVerticalAlignment.ALIGN_MIDDLE); panel.setCellWidth(loginButton, "35px"); //$NON-NLS-1$ }
private Widget wrap( Widget w ) { if ( this.readOnly ) { return w; } HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setTitle( Constants.INSTANCE.RemoveConstraintValueDefinition() ); clear.addClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) { //Reset Constraint's value and value type if ( Window.confirm( Constants.INSTANCE.RemoveConstraintValueDefinitionQuestion() ) ) { constraint.setConstraintValueType( BaseSingleFieldConstraint.TYPE_UNDEFINED ); constraint.setValue( null ); constraint.clearParameters(); constraint.setExpressionValue( new ExpressionFormLine() ); doTypeChosen(); } } } ); wrapper.add( w ); if ( !this.readOnly ) { wrapper.add( clear ); wrapper.setCellVerticalAlignment( clear, HasVerticalAlignment.ALIGN_MIDDLE ); } return wrapper; }
Widget wrap(Widget widget) { if (this.readOnly) { return widget; } HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setTitle(GuidedRuleEditorResources.CONSTANTS.RemoveConstraintValueDefinition()); clear.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //Reset Constraint's value and value type if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveConstraintValueDefinitionQuestion())) { constraint.setConstraintValueType(BaseSingleFieldConstraint.TYPE_UNDEFINED); constraint.setValue(null); constraint.clearParameters(); constraint.setExpressionValue(new ExpressionFormLine()); doTypeChosen(); } } }); wrapper.add(widget); if (!this.readOnly) { wrapper.add(clear); wrapper.setCellVerticalAlignment(clear, HasVerticalAlignment.ALIGN_MIDDLE); } return wrapper; }
Widget wrap(Widget widget) { if (this.readOnly) { return widget; } HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setTitle(GuidedRuleEditorResources.CONSTANTS.RemoveConstraintValueDefinition()); clear.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //Reset Constraint's value and value type if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveConstraintValueDefinitionQuestion())) { constraint.setConstraintValueType(BaseSingleFieldConstraint.TYPE_UNDEFINED); constraint.setValue(null); constraint.clearParameters(); constraint.setExpressionValue(new ExpressionFormLine()); doTypeChosen(); } } }); wrapper.add(widget); if (!this.readOnly) { wrapper.add(clear); wrapper.setCellVerticalAlignment(clear, HasVerticalAlignment.ALIGN_MIDDLE); } return wrapper; }
private Widget wrap(Widget w) { HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setAltText(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinition()); clear.setTitle(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinition()); clear.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //Reset Constraint's value and value type if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinitionQuestion())) { value.setNature(FieldNatureType.TYPE_UNDEFINED); value.setValue(null); doTypeChosen(); } } }); wrapper.add(w); if (!this.readOnly) { wrapper.add(clear); wrapper.setCellVerticalAlignment(clear, HasVerticalAlignment.ALIGN_MIDDLE); } return wrapper; }
private Widget wrap( Widget w ) { HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setAltText( Constants.INSTANCE.RemoveActionValueDefinition() ); clear.setTitle( Constants.INSTANCE.RemoveActionValueDefinition() ); clear.addClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) { //Reset Constraint's value and value type if ( Window.confirm( Constants.INSTANCE.RemoveActionValueDefinitionQuestion() ) ) { value.setNature( FieldNatureType.TYPE_UNDEFINED ); value.setValue( null ); doTypeChosen(); } } } ); wrapper.add( w ); if ( !this.readOnly ) { wrapper.add( clear ); wrapper.setCellVerticalAlignment( clear, HasVerticalAlignment.ALIGN_MIDDLE ); } return wrapper; }
private Widget wrap(Widget w) { HorizontalPanel wrapper = new HorizontalPanel(); Image clear = GuidedRuleEditorImages508.INSTANCE.DeleteItemSmall(); clear.setAltText(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinition()); clear.setTitle(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinition()); clear.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //Reset Constraint's value and value type if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveActionValueDefinitionQuestion())) { value.setNature(FieldNatureType.TYPE_UNDEFINED); value.setValue(null); doTypeChosen(); } } }); wrapper.add(w); if (!this.readOnly) { wrapper.add(clear); wrapper.setCellVerticalAlignment(clear, HasVerticalAlignment.ALIGN_MIDDLE); } return wrapper; }
titleBar.setCellVerticalAlignment(titleBarLabel, HasVerticalAlignment.ALIGN_MIDDLE); buttonPanel.add(closeButton); buttonPanel.setCellVerticalAlignment(showFurtherErrors, HasVerticalAlignment.ALIGN_MIDDLE);
topNavPanel.setCellVerticalAlignment(collapseButton, HasVerticalAlignment.ALIGN_MIDDLE); topNavPanel.setCellVerticalAlignment(navigationLabel, HasVerticalAlignment.ALIGN_MIDDLE);
aTimePanel.add(aSeparator); aTimePanel.add(aMinutesField); aTimePanel.setCellVerticalAlignment(aClockImage, HorizontalPanel.ALIGN_MIDDLE); aTimePanel.setCellVerticalAlignment(aSeparator, HorizontalPanel.ALIGN_MIDDLE);