mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added new multilingual marker icon and associated tooltip.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.apache.myfaces.renderkit.html.HtmlTextareaRenderer;
|
||||
|
||||
/**
|
||||
@@ -48,9 +49,12 @@ public class MultilingualTextAreaRenderer extends HtmlTextareaRenderer
|
||||
{
|
||||
super.encodeEnd(facesContext, component);
|
||||
|
||||
String tooltip = Application.getMessage(facesContext, "marker_tooltip");
|
||||
ResponseWriter out = facesContext.getResponseWriter();
|
||||
out.write("<img src='");
|
||||
out.write(facesContext.getExternalContext().getRequestContextPath());
|
||||
out.write("/images/icons/multilingual_marker.gif' style='margin-left: 6px; _vertical-align: -2px;' />");
|
||||
out.write("/images/icons/multilingual_marker.gif' title='");
|
||||
out.write(tooltip);
|
||||
out.write("' style='margin-left: 6px; _vertical-align: -2px;' />");
|
||||
}
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.apache.myfaces.renderkit.html.HtmlTextRenderer;
|
||||
|
||||
/**
|
||||
@@ -48,9 +49,12 @@ public class MultilingualTextRenderer extends HtmlTextRenderer
|
||||
{
|
||||
super.encodeEnd(facesContext, component);
|
||||
|
||||
String tooltip = Application.getMessage(facesContext, "marker_tooltip");
|
||||
ResponseWriter out = facesContext.getResponseWriter();
|
||||
out.write("<img src='");
|
||||
out.write(facesContext.getExternalContext().getRequestContextPath());
|
||||
out.write("/images/icons/multilingual_marker.gif' style='margin-left: 6px; vertical-align: -4px; _vertical-align: -2px;' />");
|
||||
out.write("/images/icons/multilingual_marker.gif' title='");
|
||||
out.write(tooltip);
|
||||
out.write("' style='margin-left: 6px; vertical-align: -4px; _vertical-align: -2px;' />");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user