Java Code Examples for com.google.gwt.view.client.SelectionChangeEvent#fire()
The following examples show how to use
com.google.gwt.view.client.SelectionChangeEvent#fire() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerConfigView.java From core with GNU Lesser General Public License v2.1 | 6 votes |
public void updateFrom(MailSession session) { this.session = session; headline.setText("Mail Session: " + session.getName()); List<MailServerDefinition> server = new ArrayList<>(); if (session.getImapServer() != null) { server.add(session.getImapServer()); } if (session.getSmtpServer() != null) { server.add(session.getSmtpServer()); } if (session.getPopServer() != null) { server.add(session.getPopServer()); } dataProvider.setList(server); mailFormAsset.getForm().clearValues(); credentialReferenceFormAsset.getForm().clearValues(); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); }
Example 2
Source File: ApplicationSecurityDomainResourceView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void update(final List<Property> models) { dataProvider.setList(models); table.selectDefaultEntity(); if (models.isEmpty()) { formAttributesAssets.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
Example 3
Source File: PropertiesRealmView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
protected void update(final List<Property> models) { dataProvider.setList(models); table.selectDefaultEntity(); if (models.isEmpty()) { modelFormAsset.getForm().clearValues(); groupsPropertiesFormAssets.getForm().clearValues(); usersPropertiesFormAssets.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
Example 4
Source File: LdapRealmView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
protected void update(final List<Property> models) { dataProvider.setList(models); table.selectDefaultEntity(); if (models.isEmpty()) { modelForm.getForm().clearValues(); selectionModel.clear(); identityMappingFormAsset.getForm().clearValues(); identityAttributeMappingView.clearValues(); newIdentityAttributesView.clearValues(); userPasswordMapperFormAsset.getForm().clearValues(); otpCredentialMapperFormAsset.getForm().clearValues(); } SelectionChangeEvent.fire(selectionModel); }
Example 5
Source File: ElytronGenericResourceView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void update(final List<Property> models) { dataProvider.setList(models); if (models.isEmpty()) { modelForm.getForm().clearValues(); selectionModel.clear(); } table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); }
Example 6
Source File: JdbcRealmView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
protected void update(final List<Property> models) { dataProvider.setList(models); table.selectDefaultEntity(); if (models.isEmpty()) { principalsQueryViewView.clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
Example 7
Source File: PolicyView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void update(List<Property> models) { dataProvider.setList(models); addButton.setEnabled(models.isEmpty()); if (models.isEmpty()) { forms.showWidget(0); customPolicyForm.getForm().clearValues(); jaccPolicyForm.getForm().clearValues(); selectionModel.clear(); } table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); }
Example 8
Source File: SimplePermissionMappingEditor.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void update(Property prop) { permissionMapping = prop.getName(); if (prop.getValue().hasDefined("permission-mappings")) { List<ModelNode> models = prop.getValue().get("permission-mappings").asList(); table.setRowCount(models.size(), true); List<ModelNode> dataList = dataProvider.getList(); dataList.clear(); // cannot call setList() as that breaks the sort handler dataList.addAll(models); } else { clearValues(); } selectionModel.clear(); SelectionChangeEvent.fire(selectionModel); }
Example 9
Source File: BridgesList.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void setBridges(List<ActivemqBridge> bridges) { dataProvider.setList(bridges); serverName.setText("Bridges: Provider " + presenter.getCurrentServer()); table.selectDefaultEntity(); credentialRefFormAsset.getForm().clearValues(); defaultAttributes.getForm().clearValues(); connectionAttributes.getForm().clearValues(); if (bridges.size() == 0) selectionModel.clear(); SelectionChangeEvent.fire(selectionModel); }
Example 10
Source File: MaterialStepper.java From gwt-material-addins with Apache License 2.0 | 5 votes |
/** * Called internally when the index is changed. Fires a {@link SelectionChangeEvent} * when the current index changes. */ protected void setCurrentStepIndex(int currentStepIndex) { if (this.currentStepIndex != currentStepIndex) { this.currentStepIndex = currentStepIndex; SelectionChangeEvent.fire(this); } }
Example 11
Source File: GenericResourceView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void update(final List<Property> models) { headerLabel.setText(title + ": Provider " + presenter.getCurrentServer()); dataProvider.setList(models); table.selectDefaultEntity(); if (models.isEmpty()) { modelForm.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
Example 12
Source File: DeploymentScannerView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void update(final List<Property> scanners) { dataProvider.setList(scanners); if (scanners.isEmpty()) { selectionModel.clear(); } else { table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value } }
Example 13
Source File: FilterEditor.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void updateValuesFromModel(List<Property> filters) { dataProvider.setList(filters); table.selectDefaultEntity(); if (filters.isEmpty()) { selectionModel.clear(); formAssets.getForm().clearValues(); } SelectionChangeEvent.fire(selectionModel); }
Example 14
Source File: RemotingProfileView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public void setData(List<Property> data) { dataProvider.setList(data); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 15
Source File: CategoryView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public void setData(List<Property> data) { dataProvider.setList(data); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 16
Source File: ThreadPoolView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public void setData(List<Property> data) { dataProvider.setList(data); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 17
Source File: PassivationView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public void setData(List<Property> data) { dataProvider.setList(data); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 18
Source File: CachesView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public void setData(List<Property> data) { dataProvider.setList(data); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 19
Source File: MasterDetailPanel.java From core with GNU Lesser General Public License v2.1 | 4 votes |
protected void update(final List<Property> models) { dataProvider.setList(models); table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }
Example 20
Source File: MaterialStepperTest.java From gwt-material-addins with Apache License 2.0 | 4 votes |
protected void checkSelection(MaterialStepper stepper) { final boolean[] isSelectionFired = {false}; stepper.addSelectionChangeHandler(event -> isSelectionFired[0] = true); SelectionChangeEvent.fire(stepper); assertTrue(isSelectionFired[0]); }