Tabnine Logo
ChangeHandler.onChange
Code IndexAdd Tabnine to your IDE (free)

How to use
onChange
method
in
com.google.gwt.event.dom.client.ChangeHandler

Best Java code snippets using com.google.gwt.event.dom.client.ChangeHandler.onChange (Showing top 20 results out of 315)

origin: com.google.gwt/gwt-servlet

@Override
protected void dispatch(ChangeHandler handler) {
 handler.onChange(this);
}
origin: ArcBees/gwtchosen

  public void onChange(ChosenChangeEvent event) {
    handler.onChange(null);
  }
});
origin: com.github.jdramaix/gwtchosen

  public void onChange(ChosenChangeEvent event) {
    handler.onChange(null);
  }
});
origin: org.kuali.student.lum/ks-lum-ui-common

private void fireChangeEvents() {
  for (ChangeHandler ch : changeHandlerList) {
    ch.onChange(null);
  }
}
origin: ltearno/hexa.tools

  @Override
  public void onClick( ClickEvent event )
  {
    handler.onChange( null );
  }
} );
origin: fr.lteconsulting/hexa.core

  @Override
  public void onClick( ClickEvent event )
  {
    handler.onChange( null );
  }
} );
origin: com.arcbees/gwtchosen

  public void onChange(ChosenChangeEvent event) {
    handler.onChange(null);
  }
});
origin: net.wetheinter/gwt-user

@Override
protected void dispatch(ChangeHandler handler) {
 handler.onChange(this);
}
origin: com.vaadin.external.gwt/gwt-user

@Override
protected void dispatch(ChangeHandler handler) {
 handler.onChange(this);
}
origin: org.jboss.errai/errai-widgets

private void fireAllCellChangeHandlers(WSCell cell, Object newValue) {
 for (ChangeHandler c : cellChangeHandlers)
  c.onChange(new CellChangeEvent(cell, newValue));
}
origin: GwtMaterialDesign/gwt-material

@Override
public HandlerRegistration addChangeHandler(final ChangeHandler handler) {
  return valueBoxBase.addChangeHandler(event -> {
    if (isEnabled()) {
      handler.onChange(event);
    }
  });
}
origin: com.github.gwtmaterialdesign/gwt-material

@Override
public HandlerRegistration addChangeHandler(final ChangeHandler handler) {
  return valueBoxBase.addChangeHandler(event -> {
    if (isEnabled()) {
      handler.onChange(event);
    }
  });
}
origin: org.jboss.errai/errai-widgets

private void fireAllAfterCellChangeHandlers(WSCell cell) {
 for (ChangeHandler c : afterCellChangeHandlers)
  c.onChange(new CellChangeEvent(cell, cell.getCellFormat().getValue()));
}
origin: kiegroup/appformer

  private void testFileName(String fileInput,
               String expected) {
    when(file.getValue()).thenReturn(fileInput);
    fileUpload.getFileChangeHandler().onChange(mock(ChangeEvent.class));
    verify(fileText).setValue(expected);
  }
}
origin: kiegroup/drools-wb

@Test
public void testChangeAllowedRules() throws Exception {
  when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.ALLOWED_INDEX);
  when(configurationType.getValue(ConfigWidget.ALLOWED_INDEX)).thenReturn("inc");
  configWidget.init(scenarioParentWidget, path, scenario);
  configWidget.setupHandlers();
  verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
  changeHandlerCaptor.getValue().onChange(null);
  verify(scenario).setInclusive(true);
  verify(addButton).setVisible(true);
  verify(removeButton).setVisible(true);
  verify(configuredRules).setVisible(true);
}
origin: kiegroup/drools-wb

@Test
public void testChangePreventedRules() throws Exception {
  when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.PREVENTED_INDEX);
  when(configurationType.getValue(ConfigWidget.PREVENTED_INDEX)).thenReturn("exc");
  configWidget.init(scenarioParentWidget, path, scenario);
  configWidget.setupHandlers();
  verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
  changeHandlerCaptor.getValue().onChange(null);
  verify(scenario).setInclusive(false);
  verify(addButton).setVisible(true);
  verify(removeButton).setVisible(true);
  verify(configuredRules).setVisible(true);
}
origin: org.drools/drools-wb-test-scenario-editor-client

@Test
public void testChangeAllowedRules() throws Exception {
  when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.ALLOWED_INDEX);
  when(configurationType.getValue(ConfigWidget.ALLOWED_INDEX)).thenReturn("inc");
  configWidget.init(scenarioParentWidget, path, scenario);
  configWidget.setupHandlers();
  verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
  changeHandlerCaptor.getValue().onChange(null);
  verify(scenario).setInclusive(true);
  verify(addButton).setVisible(true);
  verify(removeButton).setVisible(true);
  verify(configuredRules).setVisible(true);
}
origin: org.drools/drools-wb-test-scenario-editor-client

@Test
public void testChangePreventedRules() throws Exception {
  when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.PREVENTED_INDEX);
  when(configurationType.getValue(ConfigWidget.PREVENTED_INDEX)).thenReturn("exc");
  configWidget.init(scenarioParentWidget, path, scenario);
  configWidget.setupHandlers();
  verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
  changeHandlerCaptor.getValue().onChange(null);
  verify(scenario).setInclusive(false);
  verify(addButton).setVisible(true);
  verify(removeButton).setVisible(true);
  verify(configuredRules).setVisible(true);
}
origin: kiegroup/drools-wb

  @Test
  public void testChangeAllowAllRules() throws Exception {
    final List<String> rules = new ArrayList<String>() {{
      add("rule 1");
    }};
    when(scenario.getRules()).thenReturn(rules);
    when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.ALL_ALLOWED_INDEX);
    when(configurationType.getValue(ConfigWidget.ALL_ALLOWED_INDEX)).thenReturn("all");

    configWidget.init(scenarioParentWidget, path, scenario);
    configWidget.setupHandlers();
    verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
    changeHandlerCaptor.getValue().onChange(null);

    Assertions.assertThat(rules).isEmpty();
    verify(addButton).setVisible(false);
    verify(removeButton).setVisible(false);
    verify(configuredRules).setVisible(false);
    verify(configuredRules).clear();
  }
}
origin: org.drools/drools-wb-test-scenario-editor-client

  @Test
  public void testChangeAllowAllRules() throws Exception {
    final List<String> rules = new ArrayList<String>() {{
      add("rule 1");
    }};
    when(scenario.getRules()).thenReturn(rules);
    when(configurationType.getSelectedIndex()).thenReturn(ConfigWidget.ALL_ALLOWED_INDEX);
    when(configurationType.getValue(ConfigWidget.ALL_ALLOWED_INDEX)).thenReturn("all");

    configWidget.init(scenarioParentWidget, path, scenario);
    configWidget.setupHandlers();
    verify(configurationType).addChangeHandler(changeHandlerCaptor.capture());
    changeHandlerCaptor.getValue().onChange(null);

    Assertions.assertThat(rules).isEmpty();
    verify(addButton).setVisible(false);
    verify(removeButton).setVisible(false);
    verify(configuredRules).setVisible(false);
    verify(configuredRules).clear();
  }
}
com.google.gwt.event.dom.clientChangeHandleronChange

Javadoc

Called when a change event is fired.

Popular methods of ChangeHandler

    Popular in Java

    • Reading from database using SQL prepared statement
    • putExtra (Intent)
    • getExternalFilesDir (Context)
    • onRequestPermissionsResult (Fragment)
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • FileOutputStream (java.io)
      An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
    • MessageDigest (java.security)
      Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
    • Connection (java.sql)
      A connection represents a link from a Java application to a database. All SQL statements and results
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • Top PhpStorm plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now