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

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

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

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.clientSelectionCellgetViewData

Popular methods of SelectionCell

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text 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