Lior Vernia has uploaded a new change for review.

Change subject: webadmin: Introduce ListModelSuggestBoxOnlyEditor
......................................................................

webadmin: Introduce ListModelSuggestBoxOnlyEditor

Similar classes exist for ListBox, etc. Useful to have a version with
invisible label.

Change-Id: Idc3f9f8c4d3873716f352c3d5065ea78212488b6
Bug-Url: https://bugzilla.redhat.com/1061193
Signed-off-by: Lior Vernia <[email protected]>
---
A 
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/ListModelSuggestBoxOnlyEditor.java
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/57/26857/1

diff --git 
a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/ListModelSuggestBoxOnlyEditor.java
 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/ListModelSuggestBoxOnlyEditor.java
new file mode 100644
index 0000000..fe3ec06
--- /dev/null
+++ 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/ListModelSuggestBoxOnlyEditor.java
@@ -0,0 +1,18 @@
+package org.ovirt.engine.ui.common.widget.editor;
+
+import 
org.ovirt.engine.ui.common.widget.editor.generic.ListModelSuggestBoxEditor;
+
+import com.google.gwt.dom.client.Style.Display;
+import com.google.gwt.dom.client.Style.Float;
+import com.google.gwt.user.client.ui.Widget;
+
+public class ListModelSuggestBoxOnlyEditor extends ListModelSuggestBoxEditor {
+
+    @Override
+    protected void initWidget(Widget wrapperWidget) {
+        super.initWidget(wrapperWidget);
+        getLabelElement().getStyle().setDisplay(Display.NONE);
+        
getContentWidgetContainer().getElement().getStyle().setFloat(Float.NONE);
+    }
+
+}


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc3f9f8c4d3873716f352c3d5065ea78212488b6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to