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

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

Best Java code snippets using com.google.gwt.cell.client.SelectionCell.getSelectedIndex (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.clientSelectionCellgetSelectedIndex

Popular methods of SelectionCell

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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