use of org.eclipse.scout.rt.server.admin.html.IView in project scout.rt by eclipse.
the class TopView method produceBody.
@Override
public void produceBody(HtmlComponent p) {
m_messagesView.produceBody(p);
p.raw("[ ");
for (IView v : new IView[] { m_generalView, m_servicesView, m_sessionsView, m_callsView }) {
if (v.isVisible()) {
p.raw(" ");
if (v == m_activeView) {
p.raw("<b>");
v.produceTitle(p);
p.raw("</b>");
} else {
final IView finalV = v;
p.startLinkAction(new AbstractHtmlAction("tab." + v.getClass().getSimpleName()) {
@Override
public void run() {
m_activeView = finalV;
if (m_activeView != null) {
m_activeView.activated();
}
}
});
v.produceTitle(p);
p.endLinkAction();
}
p.raw(" ");
p.raw(" ");
}
}
p.raw(" ]");
p.p();
if (m_activeView != null) {
m_activeView.produceBody(p);
}
}
Aggregations