Search in sources :

Example 1 with IView

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("&nbsp;");
            p.raw("&nbsp;");
        }
    }
    p.raw(" ]");
    p.p();
    if (m_activeView != null) {
        m_activeView.produceBody(p);
    }
}
Also used : AbstractHtmlAction(org.eclipse.scout.rt.server.admin.html.AbstractHtmlAction) IView(org.eclipse.scout.rt.server.admin.html.IView)

Aggregations

AbstractHtmlAction (org.eclipse.scout.rt.server.admin.html.AbstractHtmlAction)1 IView (org.eclipse.scout.rt.server.admin.html.IView)1