List of usage examples for com.google.gwt.view.client SelectionChangeEvent fire
public static void fire(HasSelectionChangedHandlers source)
From source file:com.gafactory.core.client.ui.widgets.ValueIdListBox.java
License:Open Source License
public ValueIdListBox(final Renderer<T> renderer, final ValueProvider<T, ID> valueProvider) { assert renderer != null; this.idProvider = new Function<T, ID>() { @Nullable//from w ww. j av a2 s . com @Override public ID apply(@Nullable T input) { return input != null ? valueProvider.getValue(input) : null; } }; listBox = new ValueListBox<T>(renderer, new ProvidesKey<T>() { @Override public Object getKey(T item) { return idProvider.apply(item); } }); listBox.addValueChangeHandler(new ValueChangeHandler<T>() { @Override public void onValueChange(ValueChangeEvent<T> event) { SelectionChangeEvent.fire(ValueIdListBox.this); ValueChangeEvent.fire(ValueIdListBox.this, getValue()); } }); initWidget(CleareableWrapper.of(listBox)); }
From source file:gwt.material.design.addins.client.stepper.MaterialStepper.java
License:Apache License
/** * Called internally when the index is changed. Fires a {@link SelectionChangeEvent} * when the current index changes.//w w w.ja v a2 s.co m */ protected void setCurrentStepIndex(int currentStepIndex) { if (this.currentStepIndex != currentStepIndex) { this.currentStepIndex = currentStepIndex; SelectionChangeEvent.fire(this); } }
From source file:io.apiman.manager.ui.client.local.pages.service.ServicePlanWidget.java
License:Apache License
/** * Called when something changes. :) */ protected void onSomethingChanged() { SelectionChangeEvent.fire(this); }
From source file:org.jboss.as.console.client.shared.subsys.activemq.GenericResourceView.java
License:Apache License
public void update(final List<Property> models) { headerLabel.setText(title + ": Provider " + presenter.getCurrentServer()); dataProvider.setList(models);// w ww . j a v a 2s. c om table.selectDefaultEntity(); if (models.isEmpty()) { modelForm.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
From source file:org.jboss.as.console.client.shared.subsys.elytron.ui.ElytronGenericResourceView.java
License:Apache License
public void update(final List<Property> models) { dataProvider.setList(models);/*w ww . ja v a 2 s .c o m*/ table.selectDefaultEntity(); if (models.isEmpty()) { modelForm.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
From source file:org.jboss.as.console.client.shared.subsys.elytron.ui.JdbcRealmView.java
License:Apache License
protected void update(final List<Property> models) { dataProvider.setList(models);/* w w w . j av a 2 s.com*/ table.selectDefaultEntity(); if (models.isEmpty()) { principalsQueryViewView.clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
From source file:org.jboss.as.console.client.shared.subsys.elytron.ui.LdapRealmView.java
License:Apache License
protected void update(final List<Property> models) { dataProvider.setList(models);/*from w w w . j a va 2s. c om*/ 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); }
From source file:org.jboss.as.console.client.shared.subsys.elytron.ui.PolicyView.java
License:Apache License
public void update(List<Property> models) { dataProvider.setList(models);/* w ww. ja va 2s .c o m*/ addButton.setEnabled(models.isEmpty()); if (models.isEmpty()) { forms.showWidget(0); customPolicyForm.getForm().clearValues(); jaccPolicyForm.getForm().clearValues(); selectionModel.clear(); } table.selectDefaultEntity(); SelectionChangeEvent.fire(selectionModel); }
From source file:org.jboss.as.console.client.shared.subsys.elytron.ui.PropertiesRealmView.java
License:Apache License
protected void update(final List<Property> models) { dataProvider.setList(models);//from www .j a va 2 s . co m table.selectDefaultEntity(); if (models.isEmpty()) { modelFormAsset.getForm().clearValues(); groupsPropertiesFormAssets.getForm().clearValues(); usersPropertiesFormAssets.getForm().clearValues(); selectionModel.clear(); } SelectionChangeEvent.fire(selectionModel); }
From source file:org.jboss.as.console.client.shared.subsys.io.IOPanel.java
License:Open Source License
public void update(final List<Property> models) { dataProvider.setList(models);//from w w w .j ava 2 s .c o m if (models.isEmpty()) { selectionModel.clear(); } else { table.selectDefaultEntity(); } SelectionChangeEvent.fire(selectionModel); // updates ModelNodeForm's editedEntity with current value }