/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.baja.naming.BISession * javax.baja.naming.BOrd * javax.baja.naming.OrdQuery * javax.baja.naming.ViewQuery * javax.baja.nav.BNavContainer * javax.baja.sys.BIcon * javax.baja.sys.Context * javax.baja.sys.Sys * javax.baja.sys.Type * javax.baja.util.Lexicon */ package com.tridium.platform; import javax.baja.naming.BISession; import javax.baja.naming.BOrd; import javax.baja.naming.OrdQuery; import javax.baja.naming.ViewQuery; import javax.baja.nav.BNavContainer; import javax.baja.sys.BIcon; import javax.baja.sys.Context; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.util.Lexicon; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BSessionNavNode extends BNavContainer { public static final Type TYPE; private BISession session; private Type viewType; private Lexicon lexicon; static /* synthetic */ Class class$com$tridium$platform$BSessionNavNode; public Type getType() { return TYPE; } public BISession getNavSession() { return this.session; } public Type getViewType() { return this.viewType; } public BOrd getNavOrd() { return BOrd.make((BOrd)this.session.getNavOrd(), (OrdQuery)new ViewQuery(this.getViewType().toString())); } public BIcon getNavIcon() { return this.viewType.getTypeInfo().getIcon(null); } public String getNavDisplayName(Context context) { return this.viewType.getTypeInfo().getDisplayName(context); } public String getNavDescription(Context context) { String string = this.lexicon.get(this.viewType.getTypeName() + ".viewDesc"); return string == null ? "" : string; } static /* synthetic */ Class class(String string, boolean bl) { try { Class clazz = Class.forName(string); if (!bl) { clazz = clazz.getComponentType(); } return clazz; } catch (ClassNotFoundException classNotFoundException) { throw new NoClassDefFoundError(classNotFoundException.getMessage()); } } public BSessionNavNode(BISession bISession, Type type) { super(type.getModule().getLexicon().get(type.getTypeName() + ".navName", type.getTypeName())); this.session = bISession; this.lexicon = type.getModule().getLexicon(); this.viewType = type; } static { Class clazz = class$com$tridium$platform$BSessionNavNode; if (clazz == null) { clazz = class$com$tridium$platform$BSessionNavNode = BSessionNavNode.class("[Lcom.tridium.platform.BSessionNavNode;", false); } TYPE = Sys.loadType((Class)clazz); } }