Tabnine Logo
SelectionCell.clearViewData
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFrame (javax.swing)
  • JLabel (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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