85 lines
3.2 KiB
Java
85 lines
3.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.ui.BOptionDialog
|
|
* javax.baja.sys.BValue
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
* javax.baja.ui.BDialog
|
|
* javax.baja.ui.BLabel
|
|
* javax.baja.ui.BListDropDown
|
|
* javax.baja.ui.BNullWidget
|
|
* javax.baja.ui.BWidget
|
|
* javax.baja.ui.pane.BBorderPane
|
|
* javax.baja.ui.pane.BGridPane
|
|
* javax.baja.util.Lexicon
|
|
*/
|
|
package com.tridium.program.ui.batch;
|
|
|
|
import com.tridium.program.ui.batch.BBatchEditor;
|
|
import com.tridium.ui.BOptionDialog;
|
|
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.BListDropDown;
|
|
import javax.baja.ui.BNullWidget;
|
|
import javax.baja.ui.BWidget;
|
|
import javax.baja.ui.pane.BBorderPane;
|
|
import javax.baja.ui.pane.BGridPane;
|
|
import javax.baja.util.Lexicon;
|
|
|
|
public class BRemoveDialog
|
|
extends BOptionDialog {
|
|
public static final Type TYPE = Sys.loadType((Class)(class$com$tridium$program$ui$batch$BRemoveDialog == null ? (class$com$tridium$program$ui$batch$BRemoveDialog = BRemoveDialog.class$("com.tridium.program.ui.batch.BRemoveDialog")) : class$com$tridium$program$ui$batch$BRemoveDialog));
|
|
private static Lexicon lex = Lexicon.make((String)"program");
|
|
BListDropDown dropDown = new BListDropDown();
|
|
static /* synthetic */ Class class$com$tridium$program$ui$batch$BRemoveDialog;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static String open(BBatchEditor bBatchEditor) {
|
|
BRemoveDialog bRemoveDialog = new BRemoveDialog(bBatchEditor);
|
|
bRemoveDialog.setBoundsCenteredOnOwner();
|
|
bRemoveDialog.open();
|
|
if (bRemoveDialog.getResult() == 1) {
|
|
try {
|
|
String string = (String)bRemoveDialog.dropDown.getSelectedItem();
|
|
StringBuffer stringBuffer = new StringBuffer("remove(ord, ");
|
|
stringBuffer.append("\"").append(string).append("\", true, true);");
|
|
return stringBuffer.toString();
|
|
}
|
|
catch (Exception exception) {
|
|
BDialog.error((BWidget)bBatchEditor, (String)"Error", (Object)"Failed", (Throwable)exception);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
private BRemoveDialog(BBatchEditor bBatchEditor) {
|
|
super((BWidget)bBatchEditor, lex.getText("batchEditor.commands.slotRemove.label"), (BWidget)new BNullWidget(), 3, null, null);
|
|
String[] stringArray = bBatchEditor.table.model.getAllColumns(false);
|
|
for (int i = 0; i < stringArray.length; ++i) {
|
|
this.dropDown.getList().addItem((Object)stringArray[i]);
|
|
}
|
|
BGridPane bGridPane = new BGridPane(2);
|
|
bGridPane.add(null, (BValue)new BLabel(lex.getText("batchEditor.property")));
|
|
bGridPane.add(null, (BValue)this.dropDown);
|
|
this.setContent((BWidget)new BBorderPane((BWidget)bGridPane, 10.0, 10.0, 10.0, 10.0));
|
|
}
|
|
|
|
static /* synthetic */ Class class$(String string) {
|
|
try {
|
|
return Class.forName(string);
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|