Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

What is the auto child name for a StaticTextItem's canvas?

$
0
0
SmartGWT 4.1p 5/19/2014

I have a static text item that pops up a dialog on click. I want to change the cursor of just this item to a pointer on hover so the user gets additional visual feedback that it's clickable. I can't find in any docs a list of auto child names for objects that utilize them. The auto child doc is helpful but also doesn't contain a comprehensive list. Can you tell me what name to use? Is there somewhere I can find these names in the future?
Thanks!

Example:
Code:

StaticTextItem test = new StaticTextItem("test");

test.setValue("<u>Click Me</u>");
test.addClickHandler(new ClickHandler()
{
      @Override
      public void onClick(ClickEvent event)
      {
          //open dialog
      }     
});

Canvas autoChild = new Canvas();
autoChild.setCursor(Cursor.POINTER);

test.setAutoChildProperties("???", autoChild);


Viewing all articles
Browse latest Browse all 4756

Trending Articles