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

Calendar/Timeline and getDateLabelText

$
0
0
Hallo,

when I overwriting getDateLabelText for a Timeline widget, the method isn't called, when the widget is created.

I think, the same problem is in a Calendar widget with only one view.

When a Calendar/Timeline widget is created, getDateLabelText is called before the my method is set in Calendar::onInit_Calendar().

You can test it with a little change of the "Simple Timeline" example:
Code:

....
Timeline calendar = new Timeline() {
  @Override
  public String getDateLabelText(String viewName, Date startDate, Date endDate)
  {
      return "xxxxxxxxxxxxx";
  }
 }; 
....

Regards

Peter

Viewing all articles
Browse latest Browse all 4756

Trending Articles