I need to be able to display a hover over a TileGrid thumbnail image created via TileGrid.addData(TileRecord). I also need to display a context menu over it when the user right-mouse clicks over it (e.g. to proide a Delete option). I cannot find an easy way to do either of these using the Java API.
Also, adding a context menu to the entire TileGrid is not ideal as I don't want to display a context menu unless the right-mouse click occurs over a thumbnail image. However, if you do add the context menu to the entire TileGrid using the setContextMenu() API, right-mouse clicking over a thumbnail within it when the TileGrid doesn't currently have the focus selects the thumbnail, displays the context menu, and then deselects the thumbnail, which causes my Delete option to fail (via TileGrid.removeSelectedData()) as nothing is selected. Performing it again after that selects the thumbnail image again and keeps it selected when the context menu is displayed.
Also, adding a context menu to the entire TileGrid is not ideal as I don't want to display a context menu unless the right-mouse click occurs over a thumbnail image. However, if you do add the context menu to the entire TileGrid using the setContextMenu() API, right-mouse clicking over a thumbnail within it when the TileGrid doesn't currently have the focus selects the thumbnail, displays the context menu, and then deselects the thumbnail, which causes my Delete option to fail (via TileGrid.removeSelectedData()) as nothing is selected. Performing it again after that selects the thumbnail image again and keeps it selected when the context menu is displayed.