This repository was archived by the owner on Aug 5, 2019. It is now read-only.
Description Hi,
I already posted this on a closed issue. Wasnt sure if you see it. Related to #238 .
Im trying to add a TooltipCellDecorator to a TextCell. Is this only possible for ButtonCells?
TextCell textCell = new TextCell ();
TooltipCellDecorator <String > cellDecorator = new TooltipCellDecorator <>(textCell );
cellDecorator .setAnimation (true );
cellDecorator .setHideDelay (1000 );
cellDecorator .setShowDelay (200 );
cellDecorator .setPlacement (Placement .BOTTOM );
final ToolTipColumn <GwtSynchronizedPropertyDTO > tNameCol = new ToolTipColumn <GwtSynchronizedPropertyDTO >(textCell , cellDecorator ) {
@ Override
public String getValue (GwtSynchronizedPropertyDTO pItem ) {
return (pItem .getName () != null ) ? pItem .getName () : " -" ;
}
};
public abstract class ToolTipColumn <T > extends Column <T , String > {
TooltipCellDecorator cellDecorator ;
public ToolTipColumn (TextCell pTextCell , TooltipCellDecorator pTooltipCellDecorator )
{
super (pTextCell );
cellDecorator = pTooltipCellDecorator ;
}
@ Override
public void onBrowserEvent (Cell .Context context , Element elem , T object , NativeEvent event ) {
super .onBrowserEvent (context , elem , object , event );
}
@ Override
public void render (Cell .Context context , T object , SafeHtmlBuilder sb ) {
cellDecorator .render (context , getValue (object ), sb );
}
}
I dont know if its the right spot to post this. But I would be happy if you could help me. Am I missing something?
I added the override to the onBrowserEvent. But it isnt called. It looks like it doesnt listen to the HOVER of the cell.
Best regards,
Reactions are currently unavailable
Hi,
I already posted this on a closed issue. Wasnt sure if you see it. Related to #238.
Im trying to add a TooltipCellDecorator to a TextCell. Is this only possible for ButtonCells?
I dont know if its the right spot to post this. But I would be happy if you could help me. Am I missing something?
I added the override to the onBrowserEvent. But it isnt called. It looks like it doesnt listen to the HOVER of the cell.
Best regards,