/* * Decompiled with CFR 0.152. */ package javax.baja.agent; import javax.baja.agent.AgentInfo; import javax.baja.agent.BIAgent; import javax.baja.registry.TypeInfo; import javax.baja.security.BPermissions; import javax.baja.sys.BFacets; import javax.baja.sys.BIcon; import javax.baja.sys.BObject; import javax.baja.sys.BStruct; import javax.baja.sys.BValue; import javax.baja.sys.Context; import javax.baja.sys.Property; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.util.BTypeSpec; /* * Illegal identifiers - consider using --renameillegalidents true */ public abstract class BAbstractPxView extends BStruct implements AgentInfo, BIAgent { public static final Property icon = BAbstractPxView.newProperty(0, BIcon.std("views/view.png"), null); public static final Property requiredPermissions = BAbstractPxView.newProperty(0, BPermissions.operatorRead, null); public static final Property media = BAbstractPxView.newProperty(0, BTypeSpec.make("workbench:WbPxMedia"), BFacets.make("targetType", "bajaui:PxMedia")); public static final Type TYPE; static TypeInfo[] emptyTypeInfo; static /* synthetic */ Class class$javax$baja$agent$BAbstractPxView; public BIcon getIcon() { return (BIcon)this.get(icon); } public void setIcon(BIcon bIcon) { this.set(icon, (BValue)bIcon, null); } public BPermissions getRequiredPermissions() { return (BPermissions)this.get(requiredPermissions); } public void setRequiredPermissions(BPermissions bPermissions) { this.set(requiredPermissions, (BValue)bPermissions, null); } public BTypeSpec getMedia() { return (BTypeSpec)this.get(media); } public void setMedia(BTypeSpec bTypeSpec) { this.set(media, (BValue)bTypeSpec, null); } public Type getType() { return TYPE; } public BObject getInstance() { return this; } public String getAgentId() { return this.getName(); } public TypeInfo getAgentType() { return this.getType().getTypeInfo(); } public String getAppName() { return null; } public TypeInfo[] getAgentOn() { return emptyTypeInfo; } public BIcon getIcon(Context context) { return this.getIcon(); } 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 BAbstractPxView(BIcon bIcon, BPermissions bPermissions, BTypeSpec bTypeSpec) { this.setIcon(bIcon); this.setRequiredPermissions(bPermissions); this.setMedia(bTypeSpec); } public BAbstractPxView() { } static { Class clazz = class$javax$baja$agent$BAbstractPxView; if (clazz == null) { clazz = class$javax$baja$agent$BAbstractPxView = BAbstractPxView.class("[Ljavax.baja.agent.BAbstractPxView;", false); } TYPE = Sys.loadType(clazz); emptyTypeInfo = new TypeInfo[0]; } }