Codota Logo
SelectionCell.clearViewData
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain SelectionCell
private void myMethod () {
SelectionCell s =
  • Codota IconList options;new SelectionCell(options)
  • Smart code suggestions by Codota
}
origin: com.google.gwt/gwt-servlet

@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
 // Get the view data.
 Object key = context.getKey();
 String viewData = getViewData(key);
 if (viewData != null && viewData.equals(value)) {
  clearViewData(key);
  viewData = null;
 }
 int selectedIndex = getSelectedIndex(viewData == null ? value : viewData);
 sb.appendHtmlConstant("<select tabindex=\"-1\">");
 int index = 0;
 for (String option : options) {
  if (index++ == selectedIndex) {
   sb.append(template.selected(option));
  } else {
   sb.append(template.deselected(option));
  }
 }
 sb.appendHtmlConstant("</select>");
}
origin: net.wetheinter/gwt-user

@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
 // Get the view data.
 Object key = context.getKey();
 String viewData = getViewData(key);
 if (viewData != null && viewData.equals(value)) {
  clearViewData(key);
  viewData = null;
 }
 int selectedIndex = getSelectedIndex(viewData == null ? value : viewData);
 sb.appendHtmlConstant("<select tabindex=\"-1\">");
 int index = 0;
 for (String option : options) {
  if (index++ == selectedIndex) {
   sb.append(template.selected(option));
  } else {
   sb.append(template.deselected(option));
  }
 }
 sb.appendHtmlConstant("</select>");
}
origin: com.vaadin.external.gwt/gwt-user

@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
 // Get the view data.
 Object key = context.getKey();
 String viewData = getViewData(key);
 if (viewData != null && viewData.equals(value)) {
  clearViewData(key);
  viewData = null;
 }
 int selectedIndex = getSelectedIndex(viewData == null ? value : viewData);
 sb.appendHtmlConstant("<select tabindex=\"-1\">");
 int index = 0;
 for (String option : options) {
  if (index++ == selectedIndex) {
   sb.append(template.selected(option));
  } else {
   sb.append(template.deselected(option));
  }
 }
 sb.appendHtmlConstant("</select>");
}
com.google.gwt.cell.clientSelectionCellclearViewData

Popular methods of SelectionCell

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

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now