revealContent(false);
}
}
});
addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent mouseDownEvent) {
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
public void execute() {
revealContent(true);
}
});
}
});
Scheduler.get().scheduleEntry(new Scheduler.ScheduledCommand() {
public void execute() {
framework.getEventBus().addHandler(LHSHighlightEvent.TYPE, LHSNavTree.this);
}
});
/*
Allow clicks on lhs titles to open thr tree
*/
addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
EventTarget target = event.getNativeEvent().getEventTarget();
com.google.gwt.dom.client.Element el = Element.as(target);
final String title = el.getInnerText();