/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.tridium.ui.theme.Theme * javax.baja.gx.BImage * javax.baja.sys.Action * javax.baja.sys.BValue * javax.baja.sys.Sys * javax.baja.sys.Type * javax.baja.ui.BDialog * javax.baja.ui.BLabel * javax.baja.ui.BWidget * javax.baja.ui.enums.BHalign * javax.baja.ui.event.BWidgetEvent * javax.baja.ui.pane.BBorderPane * javax.baja.ui.pane.BEdgePane * javax.baja.ui.pane.BGridPane * javax.baja.ui.style.IStylable * javax.baja.util.Lexicon */ package com.tridium.platcrypto.ui; import com.tridium.ui.theme.Theme; import javax.baja.gx.BImage; import javax.baja.sys.Action; import javax.baja.sys.BValue; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.ui.BDialog; import javax.baja.ui.BLabel; import javax.baja.ui.BWidget; import javax.baja.ui.enums.BHalign; import javax.baja.ui.event.BWidgetEvent; import javax.baja.ui.pane.BBorderPane; import javax.baja.ui.pane.BEdgePane; import javax.baja.ui.pane.BGridPane; import javax.baja.ui.style.IStylable; import javax.baja.util.Lexicon; /* * Illegal identifiers - consider using --renameillegalidents true */ public abstract class BCryptoDialog extends BDialog { public static final Action okButtonPressed = BCryptoDialog.newAction((int)0, (BValue)new BWidgetEvent(), null); public static final Type TYPE; static Lexicon lex; static final BImage logo; static /* synthetic */ Class class$com$tridium$platcrypto$ui$BCryptoDialog; public void okButtonPressed(BWidgetEvent bWidgetEvent) { this.invoke(okButtonPressed, (BValue)bWidgetEvent, null); } public Type getType() { return TYPE; } protected static BWidget createPaddedLabel(String string) { BLabel bLabel = new BLabel(string, BHalign.left); BBorderPane bBorderPane = new BBorderPane((BWidget)bLabel, 0.0, (double)5, 0.0, 15.0); return bBorderPane; } protected static BWidget createPaddedLabel(BLabel bLabel) { bLabel.setHalign(BHalign.left); BBorderPane bBorderPane = new BBorderPane((BWidget)bLabel, 0.0, (double)5, 0.0, 15.0); return bBorderPane; } protected BWidget createHeaderLabel(String string) { BLabel bLabel = new BLabel(string, BHalign.left); bLabel.setFont(Theme.label().getLargeBoldFont((IStylable)bLabel)); return bLabel; } protected BWidget buildDialog() throws Exception { BEdgePane bEdgePane = new BEdgePane(); bEdgePane.setTop(this.buildHeader()); bEdgePane.setCenter(this.buildContent()); return bEdgePane; } protected abstract BWidget buildHeader(); protected BWidget buildContent() throws Exception { BGridPane bGridPane = new BGridPane(1); bGridPane.setHalign(BHalign.left); bGridPane.setColumnAlign(BHalign.fill); bGridPane.add(null, (BValue)this.buildBody()); bGridPane.add(null, (BValue)this.buildButtons()); return new BBorderPane((BWidget)bGridPane, 7.0, 7.0, 7.0, 7.0); } protected abstract BWidget buildBody() throws Exception; protected abstract BWidget buildButtons(); public abstract void doOkButtonPressed(BWidgetEvent var1); 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 BCryptoDialog() throws UnsupportedOperationException { throw new UnsupportedOperationException(); } protected BCryptoDialog(BWidget bWidget, String string) throws Exception { super(bWidget, string, true); } static { Class clazz = class$com$tridium$platcrypto$ui$BCryptoDialog; if (clazz == null) { clazz = class$com$tridium$platcrypto$ui$BCryptoDialog = BCryptoDialog.class("[Lcom.tridium.platcrypto.ui.BCryptoDialog;", false); } TYPE = Sys.loadType((Class)clazz); lex = Lexicon.make((String)"platCrypto"); logo = BImage.make((String)lex.get("cert.x32.icon", "module://icons/x32/lock.png")); } }