Source:
<code>public AbstractNetworkPopupView(EventBus eventBus) { super(eventBus); dataCenterEditor = new ListModelListBoxEditor<>(new NameRenderer<StoragePool>()); externalProviderEditor = new ListModelListBoxEditor<>(new NameRenderer<Provider>()); qosEditor = new ListModelListBoxEditor<>(new NameRenderer<HostNetworkQos>()); externalEditor = new EntityModelCheckBoxEditor(Align.RIGHT); externalEditor.asCheckBox().addValueChangeHandler(event -> refreshClustersTable()); datacenterPhysicalNetwork = new ListModelListBoxOnlyEditor<>(new NameRenderer<Network>()); physicalNetworkDatacenterRadioButtonEditor = new EntityModelRadioButtonEditor("1"); physicalNetworkCustomRadioButtonEditor = new EntityModelRadioButtonEditor("1"); physicalNetworkEditor = new EntityModelCheckBoxEditor(Align.RIGHT); <START> physicalNetworkEditor.asCheckBox().addValueChangeHandler(event -> onPhysicalNetworkChange()); <END> physicalNetworkEditor.asCheckBox().setValue(true); isVmNetworkEditor = new EntityModelCheckBoxEditor(Align.RIGHT); vlanTagging = new EntityModelCheckBoxEditor(Align.RIGHT); mtuEditor = new IntegerEntityModelTextBoxOnlyEditor(); mtuEditor.setUsePatternFly(true); createSubnetEditor = new EntityModelCheckBoxEditor(Align.RIGHT); this.clustersTable = new EntityModelCellTable<>(SelectionMode.NONE, true); this.clustersTable.setHeight(CLUSTERS_TABLE_HEIGHT + Unit.PX.getType()); shouldSetDnsConfigurationEditor = new EntityModelCheckBoxEditor(Align.RIGHT); initWidget(ViewUiBinder.uiBinder.createAndBindUi(this)); initEntityModelCellTable(); localize(); dnsServersWidget.setUsePatternFly(true); }</code><technical_language>Please move this logic model. visibility controlled model.getEntity().setIsAvailable(..)</technical_language>

Target:
public AbstractNetworkPopupView(EventBus eventBus) { super(eventBus); dataCenterEditor = new ListModelListBoxEditor<>(new NameRenderer<StoragePool>()); externalProviderEditor = new ListModelListBoxEditor<>(new NameRenderer<Provider>()); qosEditor = new ListModelListBoxEditor<>(new NameRenderer<HostNetworkQos>()); externalEditor = new EntityModelCheckBoxEditor(Align.RIGHT); externalEditor.asCheckBox().addValueChangeHandler(event -> refreshClustersTable()); datacenterPhysicalNetworkEditor = new ListModelListBoxOnlyEditor<>(new NameRenderer<Network>()); physicalNetworkDatacenterRadioButtonEditor = new EntityModelRadioButtonEditor("1"); physicalNetworkCustomRadioButtonEditor = new EntityModelRadioButtonEditor("1"); physicalNetworkEditor = new EntityModelCheckBoxEditor(Align.RIGHT); physicalNetworkEditor.asCheckBox() .addValueChangeHandler(event -> physicalNetworkLabel.setVisible(event.getValue())); isVmNetworkEditor = new EntityModelCheckBoxEditor(Align.RIGHT); vlanTagging = new EntityModelCheckBoxEditor(Align.RIGHT); mtuEditor = new IntegerEntityModelTextBoxOnlyEditor(); mtuEditor.setUsePatternFly(true); createSubnetEditor = new EntityModelCheckBoxEditor(Align.RIGHT); this.clustersTable = new EntityModelCellTable<>(SelectionMode.NONE, true); this.clustersTable.setHeight(CLUSTERS_TABLE_HEIGHT + Unit.PX.getType()); shouldSetDnsConfigurationEditor = new EntityModelCheckBoxEditor(Align.RIGHT); initWidget(ViewUiBinder.uiBinder.createAndBindUi(this)); initEntityModelCellTable(); localize(); dnsServersWidget.setUsePatternFly(true); }