Use the inline style sheet <ui:style></ui:style> tag in your ui.xml
file. Edit the property in your uibinder. In HyperLink class, set
the styleName property. Try the code below.
//ui.xml file
<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:style>
.lgLink
{
color:green;
}
.lgLink:visited
{
font:bold 20px arial, sans-serif;
color:#555555;
cursor:pointer;
cursor:hand;
}
.lgLink:hover
{
font:bold 20px arial, sans-serif;
color:red;
cursor:pointer;
cursor:hand;
}
</ui:style>
<g:Hyperlink ui:field='linkName' width='500px'
styleName='{style.lgLink}'/>
</UiBinder>
S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE