I have the following code:
I want to mark the link as visited after user clicked it.
Before the click the link is "blue", after the click I want it to be "brown" to look as all visited links do in the browser.
How can I do it ? Is my only option the
?
I use SmartClient Version: v10.1p_2016-01-07/PowerEdition Deployment (built 2016-01-07)
Code:
final LinkItem link = new LinkItem( ); link.setEndRow( true ); link.setShowTitle( false ); link.setLinkTitle("linkTitle"); link.addClickHandler( new ClickHandler(){ @Override public void onClick( ClickEvent event ) { //do something on my page final LinkItem item = (LinkItem)event.getItem(); event.cancel(); } });
Before the click the link is "blue", after the click I want it to be "brown" to look as all visited links do in the browser.
How can I do it ? Is my only option the
Code:
item.setCellStyle
I use SmartClient Version: v10.1p_2016-01-07/PowerEdition Deployment (built 2016-01-07)
Comment