modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/CanvasField.java | 5 ++--- modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/inventory/resource/AncestryUtil.java | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-)
New commits: commit 4dfb719a5bd0c137c3bd71e29587d03578de9793 Author: Ian Springer ian.springer@redhat.com Date: Tue May 3 11:43:02 2011 -0400
fix exception caused by calling lgField.setCellAlign()
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/CanvasField.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/CanvasField.java index 3bfe9f7..aea7d83 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/CanvasField.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/CanvasField.java @@ -62,8 +62,6 @@ public abstract class CanvasField extends ListGridField { protected CanvasField(ListGridField field) { super(field.getName(), field.getTitle());
- setAlign(field.getAlign()); - setCellAlign(field.getCellAlign()); setWidth(field.getWidth()); }
@@ -75,7 +73,8 @@ public abstract class CanvasField extends ListGridField { * @param record the record containing the data for the row containing the cell being rendered * @param value the value of this field in the above record * - * @return + * @return returns a canvas, which is the representation of the specified record value, to become the content + * of the corresponding grid cell */ protected Canvas createCellComponent(ListGrid grid, ListGridRecord record, Object value) { VLayout vLayout = new VLayout(); diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/inventory/resource/AncestryUtil.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/inventory/resource/AncestryUtil.java index 333ff56..aa9b844 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/inventory/resource/AncestryUtil.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/inventory/resource/AncestryUtil.java @@ -26,6 +26,8 @@ import com.smartgwt.client.data.Record; import com.smartgwt.client.types.Overflow; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.HTMLFlow; +import com.smartgwt.client.widgets.events.HoverEvent; +import com.smartgwt.client.widgets.events.HoverHandler; import com.smartgwt.client.widgets.grid.CellFormatter; import com.smartgwt.client.widgets.grid.HoverCustomizer; import com.smartgwt.client.widgets.grid.ListGrid; @@ -107,6 +109,7 @@ public abstract class AncestryUtil { HStack hStack = new HStack(); hStack.setMembersMargin(4); hStack.setOverflow(Overflow.HIDDEN); + hStack.setHo Integer resourceId = getResourceId(record); String[] ancestryEntries = value.toString().split(Resource.ANCESTRY_DELIM); for (int i = 0; i < ancestryEntries.length; ++i) { @@ -125,6 +128,8 @@ public abstract class AncestryUtil { String url = LinkManager.getResourceLink(ancestorResourceId); String suffix = resourceId + "_" + entryTokens[1]; ViewLink viewLink = new ViewLink(ancestorName + suffix, ancestorName, url); + viewLink.setMouseOverStyleName(null); + viewLink.setMouseOutStyleName(null); //viewLink.setOverflow(Overflow.VISIBLE); //viewLink.setAutoWidth(); hStack.addMember(viewLink);