use of de.neemann.digital.gui.components.DataEditor in project Digital by hneemann.
the class RAMShape method applyStateMonitor.
@Override
public Interactor applyStateMonitor(IOState ioState, Observer guiObserver) {
return new Interactor() {
@Override
public boolean clicked(CircuitComponent cc, Point pos, IOState ioState, Element element, Sync modelSync) {
if (element instanceof RAMInterface) {
DataField dataField = ((RAMInterface) element).getMemory();
DataEditor dataEditor = new DataEditor(cc, dataField, size, dataBits, addrBits, true, modelSync);
dataEditor.showDialog(dialogTitle, model);
}
return false;
}
};
}
Aggregations