Vojtech Szocs has posted comments on this change.

Change subject: webadmin: Fix the alignment of power management checkbox
......................................................................


Patch Set 1:

After discussing with Alex, turns out I completely forgot that custom 
attributes implicitly yield setter method calls in UiBinder templates.

@Martin, please give following one more try:

HostPopupView.ui.xml

 <ge:EntityModelCheckBoxEditor labelStyleNames="{style.policyOverrideLabel}" 
ui:field="disableAutomaticPowerManagementEditor"/>

AbstractValidatedWidgetWithLabel.java

 public void setLabelStyleNames(String styleNames) {
     for (String name : styleNames.split("[,\\s]+")) { //$NON-NLS-1$
         labelElement.addClassName(name);
     }
 }

This way, no changes are necessary in HostPopupView.java + 
AbstractValidatedWidgetWithLabel.java (getLabelElement method can remain 
protected).

-- 
To view, visit http://gerrit.ovirt.org/25177
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I850b88e42c6d421a5bded9964e9361f4f993a4d6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msi...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Kobi Ianko <k...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Martin Sivák <msi...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to