146 lines
5.3 KiB
Java
146 lines
5.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.sys;
|
|
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BStruct;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Knob;
|
|
import javax.baja.sys.Slot;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public final class BComponentEvent
|
|
extends BStruct {
|
|
public static final int PROPERTY_CHANGED = 0;
|
|
public static final int PROPERTY_ADDED = 1;
|
|
public static final int PROPERTY_REMOVED = 2;
|
|
public static final int PROPERTY_RENAMED = 3;
|
|
public static final int PROPERTIES_REORDERED = 4;
|
|
public static final int TOPIC_FIRED = 5;
|
|
public static final int FLAGS_CHANGED = 6;
|
|
public static final int FACETS_CHANGED = 7;
|
|
public static final int KNOB_ADDED = 8;
|
|
public static final int KNOB_REMOVED = 9;
|
|
public static final int RECATEGORIZED = 10;
|
|
public static final int COMPONENT_PARENTED = 11;
|
|
public static final int COMPONENT_UNPARENTED = 12;
|
|
public static final int COMPONENT_RENAMED = 13;
|
|
public static final int COMPONENT_REORDERED = 14;
|
|
public static final int COMPONENT_FLAGS_CHANGED = 15;
|
|
public static final int COMPONENT_FACETS_CHANGED = 16;
|
|
public static final int COMPONENT_STARTED = 19;
|
|
public static final int COMPONENT_STOPPED = 20;
|
|
private static String[] ID_STRINGS = new String[]{"changed", "added", "removed", "renamed", "reordered", "topicFired", "flagsChanged", "facetsChanged", "knobAdded", "knobRemoved", "recategorized", "componentParented", "componentUnparented", "componentRenamed", "componentReordered", "componentFlagsChanged", "componentFacetsChanged", "componentKnobAdded", "componentKnobRemoved", "componentStarted", "componentStopped"};
|
|
private static String[] DISPLAY_STRINGS = new String[]{"property_changed", "property_added", "property_removed", "property_renamed", "property_reordered", "property_topic_fired", "property_flags_changed", "property_facets_changed", "property_knobAdded", "property_knobRemoved", "property_recategorized", "component_parented", "component_unparented", "component_renamed", "component_reordered", "component_flags_changed", "component_facets_changed", "component_knob_added", "component_knob_removed", "component_started", "component_stopped"};
|
|
public static final Type TYPE;
|
|
private int id;
|
|
private String slotName;
|
|
private int slotFlags;
|
|
private BValue value;
|
|
private BComponent component;
|
|
private Slot slot;
|
|
private Knob knob;
|
|
static /* synthetic */ Class class$javax$baja$sys$BComponentEvent;
|
|
|
|
public final int getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public final String getSlotName() {
|
|
return this.slotName;
|
|
}
|
|
|
|
public final int getSlotFlags() {
|
|
return this.slotFlags;
|
|
}
|
|
|
|
public final BValue getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public final BComponent getSourceComponent() {
|
|
return this.component;
|
|
}
|
|
|
|
public final Slot getSlot() {
|
|
return this.slot;
|
|
}
|
|
|
|
public final Knob getKnob() {
|
|
return this.knob;
|
|
}
|
|
|
|
public final String toString(Context context) {
|
|
String string = this.knob != null ? this.knob.toString() : "." + this.slotName + "\": " + String.valueOf(this.value);
|
|
return DISPLAY_STRINGS[this.id] + " \"" + (this.component != null ? this.component.toDebugString() : "null") + string;
|
|
}
|
|
|
|
public final Object clone() {
|
|
BComponentEvent bComponentEvent = new BComponentEvent();
|
|
bComponentEvent.id = this.id;
|
|
bComponentEvent.slotName = this.slotName;
|
|
bComponentEvent.slotFlags = this.slotFlags;
|
|
bComponentEvent.value = this.value;
|
|
bComponentEvent.component = this.component;
|
|
bComponentEvent.slot = this.slot;
|
|
bComponentEvent.knob = this.knob;
|
|
return bComponentEvent;
|
|
}
|
|
|
|
public final Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
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 BComponentEvent(int n, BComponent bComponent, Slot slot, BValue bValue) {
|
|
this.id = n;
|
|
this.component = bComponent;
|
|
if (slot != null) {
|
|
this.slotName = slot.getName();
|
|
this.slotFlags = bComponent.getFlags(slot);
|
|
this.slot = slot;
|
|
}
|
|
if (bValue != null) {
|
|
this.value = bValue;
|
|
}
|
|
}
|
|
|
|
public BComponentEvent(int n, BComponent bComponent, Knob knob) {
|
|
this.id = n;
|
|
this.component = bComponent;
|
|
this.knob = knob;
|
|
this.slot = knob.getSourceSlot();
|
|
this.slotName = knob.getSourceSlotName();
|
|
}
|
|
|
|
public BComponentEvent() {
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$sys$BComponentEvent;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$sys$BComponentEvent = BComponentEvent.class("[Ljavax.baja.sys.BComponentEvent;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|