Tabnine Logo
SelectionCell.finishEditing
Code IndexAdd Tabnine to your IDE (free)

How to use
finishEditing
method
in
com.google.gwt.cell.client.SelectionCell

Best Java code snippets using com.google.gwt.cell.client.SelectionCell.finishEditing (Showing top 3 results out of 315)

origin: com.google.gwt/gwt-servlet

@Override
public void onBrowserEvent(Context context, Element parent, String value,
  NativeEvent event, ValueUpdater<String> valueUpdater) {
 super.onBrowserEvent(context, parent, value, event, valueUpdater);
 String type = event.getType();
 if (BrowserEvents.CHANGE.equals(type)) {
  Object key = context.getKey();
  SelectElement select = parent.getFirstChild().cast();
  String newValue = options.get(select.getSelectedIndex());
  setViewData(key, newValue);
  finishEditing(parent, newValue, key, valueUpdater);
  if (valueUpdater != null) {
   valueUpdater.update(newValue);
  }
 }
}
origin: net.wetheinter/gwt-user

@Override
public void onBrowserEvent(Context context, Element parent, String value,
  NativeEvent event, ValueUpdater<String> valueUpdater) {
 super.onBrowserEvent(context, parent, value, event, valueUpdater);
 String type = event.getType();
 if (BrowserEvents.CHANGE.equals(type)) {
  Object key = context.getKey();
  SelectElement select = parent.getFirstChild().cast();
  String newValue = options.get(select.getSelectedIndex());
  setViewData(key, newValue);
  finishEditing(parent, newValue, key, valueUpdater);
  if (valueUpdater != null) {
   valueUpdater.update(newValue);
  }
 }
}
origin: com.vaadin.external.gwt/gwt-user

@Override
public void onBrowserEvent(Context context, Element parent, String value,
  NativeEvent event, ValueUpdater<String> valueUpdater) {
 super.onBrowserEvent(context, parent, value, event, valueUpdater);
 String type = event.getType();
 if (BrowserEvents.CHANGE.equals(type)) {
  Object key = context.getKey();
  SelectElement select = parent.getFirstChild().cast();
  String newValue = options.get(select.getSelectedIndex());
  setViewData(key, newValue);
  finishEditing(parent, newValue, key, valueUpdater);
  if (valueUpdater != null) {
   valueUpdater.update(newValue);
  }
 }
}
com.google.gwt.cell.clientSelectionCellfinishEditing

Popular methods of SelectionCell

  • <init>
    Construct a new SelectionCell with the specified options.
  • clearViewData
  • getSelectedIndex
  • getViewData
  • setViewData
  • onBrowserEvent
  • render

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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