Author: rozagh
Date: 2012-08-13 12:27:12 -0700 (Mon, 13 Aug 2012)
New Revision: 30176
Modified:
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/CustomHeaderRenderer.java
Log:
fixes for column header tooltip text
Modified:
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/CustomHeaderRenderer.java
===================================================================
---
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/CustomHeaderRenderer.java
2012-08-13 19:26:37 UTC (rev 30175)
+++
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/CustomHeaderRenderer.java
2012-08-13 19:27:12 UTC (rev 30176)
@@ -128,24 +128,24 @@
// Set datatype icon if available
this.setIcon(getIcon(col.getType(), col));
-
+
String toolTip = null;
-
-
- if(col.getType() == List.class) {
- toolTip = "<html>Name: " + col.getName() + "<br />
Type: List of "+ getMinimizedType( col.getListElementType().getName()) +
"s</html>";
- } else if(text.equals(CyIdentifiable.SUID))
- toolTip = "Session-Unique ID (Primary Key).<br /> This
column is immutable.";
- else
+
+ if(text.equals(CyIdentifiable.SUID))
+ toolTip = "<html>Session-Unique ID (Primary Key).<br />
This column is immutable.";
+ else if(col.getType() == List.class) {
+ toolTip = "<html>Name: " + col.getName() + "<br />
Type: List of "+ getMinimizedType( col.getListElementType().getName()) + "s";
+ } else{
toolTip = "<html>Name: " + col.getName()+ "<br /> Type:
" + getMinimizedType(col.getType().getName());
-
+ }
if (col.getVirtualColumnInfo().isVirtual()) {
setForeground(COLUMN_TITLE_COLOR);
setBackground(COLUMN_VIRTUAL_COLOR);
- toolTip = "<html>Name:" + col.getName() + "<br /> Type:
" + getMinimizedType(col.getType().getName()) + "<br />Virtual Column</html>";
+ toolTip += "<br />Virtual Column</html>";
} else {
setForeground(COLUMN_TITLE_COLOR);
setBackground(COLUMN_COLOR);
+ toolTip +="</html>";
}
if (text.equals(CyIdentifiable.SUID))
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.