Greg Sheremeta has uploaded a new change for review.

Change subject: webadmin: changed AbstractImageButtonCell type param to C
......................................................................

webadmin: changed AbstractImageButtonCell type param to C

(Patch 4w of 12)

No logic changes. Just a rename.

Change-Id: I55baa789995a34f8f914a323e3ace3034000b09e
Signed-off-by: Greg Sheremeta <[email protected]>
---
M 
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/cell/AbstractImageButtonCell.java
1 file changed, 7 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/73/38673/1

diff --git 
a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/cell/AbstractImageButtonCell.java
 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/cell/AbstractImageButtonCell.java
index 1757707..b2be396 100644
--- 
a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/cell/AbstractImageButtonCell.java
+++ 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/cell/AbstractImageButtonCell.java
@@ -18,10 +18,10 @@
 /**
  * Cell that renders ActionButtonDefinition-like image buttons.
  *
- * @param <T>
+ * @param <C>
  *            The data type of the cell (the model)
  */
-public abstract class AbstractImageButtonCell<T> extends AbstractCell<T> {
+public abstract class AbstractImageButtonCell<C> extends AbstractCell<C> {
 
     private final SafeHtml imageHtml;
 
@@ -43,7 +43,7 @@
     }
 
     @Override
-    public void onBrowserEvent(Context context, Element parent, T value, 
NativeEvent event, ValueUpdater<T> valueUpdater) {
+    public void onBrowserEvent(Context context, Element parent, C value, 
NativeEvent event, ValueUpdater<C> valueUpdater) {
         super.onBrowserEvent(context, parent, value, event, valueUpdater);
 
         EventTarget eventTarget = event.getEventTarget();
@@ -57,7 +57,7 @@
     }
 
     @Override
-    public void render(Context context, T value, SafeHtmlBuilder sb) {
+    public void render(Context context, C value, SafeHtmlBuilder sb) {
         sb.appendHtmlConstant("<span id=\"" //$NON-NLS-1$
                 + ElementIdUtils.createTableCellElementId(elementIdPrefix, 
columnId, context)
                 + "\" style=\"vertical-align: middle;\" title=\"" //$NON-NLS-1$
@@ -67,20 +67,20 @@
         sb.appendHtmlConstant("</span>"); //$NON-NLS-1$
     }
 
-    protected abstract String getTitle(T value);
+    protected abstract String getTitle(C value);
 
     /**
      * Get the UICommand associated with the button.
      * @param value
      * @return
      */
-    protected abstract UICommand resolveCommand(T value);
+    protected abstract UICommand resolveCommand(C value);
 
     /**
      * Execute the click command.
      * @param value
      */
-    protected void onClick(T value) {
+    protected void onClick(C value) {
         UICommand command = resolveCommand(value);
         if (command != null) {
             command.execute();


-- 
To view, visit https://gerrit.ovirt.org/38673
To unsubscribe, visit https://gerrit.ovirt.org/settings

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

Reply via email to