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

Detecting ResizeBar state

$
0
0
SmartClient Version: v9.0p_2013-08-06/LGPL Development Only (built 2013-08-06)

IE 9.0.8112.16421

I am customing my resize bar by registering an using my own class derived from Snapbar. I am trying to show different tool tip text over the resize bar depending upon whether or not it is currently expanded or collapsed.

I am implementing the getHoverComponent method to provide the tool tip.

In this method, how can I determine if the area associated with this resize bar instance is currently expanded or collapsed?

Code:

@Override
public Canvas getHoverComponent() {
  Label label = new Label();
//boolean isCollapse = ???
//label.setContents(isCollapsed ?
//  "Click to expand section" : "Click to collapse section");
  label.setAutoHeight();
  return label;
}


Viewing all articles
Browse latest Browse all 4756

Trending Articles