Tabnine Logo
TabPanel.getWidgetCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getWidgetCount
method
in
com.google.gwt.user.client.ui.TabPanel

Best Java code snippets using com.google.gwt.user.client.ui.TabPanel.getWidgetCount (Showing top 15 results out of 315)

origin: com.google.gwt/gwt-servlet

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 */
public void add(Widget w, String tabText) {
 insert(w, tabText, getWidgetCount());
}
origin: com.google.gwt/gwt-servlet

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabWidget the widget to be shown in the tab
 */
public void add(Widget w, Widget tabWidget) {
 insert(w, tabWidget, getWidgetCount());
}
origin: com.google.gwt/gwt-servlet

@Override
public void clear() {
 while (getWidgetCount() > 0) {
  remove(getWidget(0));
 }
}
origin: com.google.gwt/gwt-servlet

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 * @param asHTML <code>true</code> to treat the specified text as HTML
 */
public void add(Widget w, @IsSafeHtml String tabText, boolean asHTML) {
 insert(w, tabText, asHTML, getWidgetCount());
}
origin: net.wetheinter/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 */
public void add(Widget w, String tabText) {
 insert(w, tabText, getWidgetCount());
}
origin: net.wetheinter/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 * @param asHTML <code>true</code> to treat the specified text as HTML
 */
public void add(Widget w, String tabText, boolean asHTML) {
 insert(w, tabText, asHTML, getWidgetCount());
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 */
public void add(Widget w, String tabText) {
 insert(w, tabText, getWidgetCount());
}
origin: net.wetheinter/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabWidget the widget to be shown in the tab
 */
public void add(Widget w, Widget tabWidget) {
 insert(w, tabWidget, getWidgetCount());
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabText the text to be shown on its tab
 * @param asHTML <code>true</code> to treat the specified text as HTML
 */
public void add(Widget w, String tabText, boolean asHTML) {
 insert(w, tabText, asHTML, getWidgetCount());
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Adds a widget to the tab panel. If the Widget is already attached to the
 * TabPanel, it will be moved to the right-most index.
 *
 * @param w the widget to be added
 * @param tabWidget the widget to be shown in the tab
 */
public void add(Widget w, Widget tabWidget) {
 insert(w, tabWidget, getWidgetCount());
}
origin: net.wetheinter/gwt-user

@Override
public void clear() {
 while (getWidgetCount() > 0) {
  remove(getWidget(0));
 }
}
origin: com.vaadin.external.gwt/gwt-user

@Override
public void clear() {
 while (getWidgetCount() > 0) {
  remove(getWidget(0));
 }
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link TabPanel} child widget count is equal to the given one.
 *
 * @param expected the expected widget count.
 * @return this assertion object.
 * @throws AssertionError if the actual widget count is not equal to the given one.
 * @see TabPanel#getWidgetCount()
 */
public S widgetCountEquals(int expected) {
  int widgetCount = actual.getWidgetCount();
  if (areEqual(widgetCount, expected))
    return myself;
  throw propertyComparisonFailed("WidgetCount", widgetCount, expected);
}
origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link TabPanel} child widget count is equal to the given one.
 *
 * @param expected the expected widget count.
 * @return this assertion object.
 * @throws AssertionError if the actual widget count is not equal to the given one.
 * @see TabPanel#getWidgetCount()
 */
public S widgetCountEquals(int expected) {
  int widgetCount = actual.getWidgetCount();
  if (areEqual(widgetCount, expected))
    return myself;
  throw propertyComparisonFailed("WidgetCount", widgetCount, expected);
}
origin: net.sf.javaprinciples.client/client-presentation

@Override
public void add(View view)
{
  int index = tabPanel.getWidgetCount();
  InstanceView instanceView = new InstanceView(Integer.toString(index));
  tabPanel.add(view.getWidget(), instanceView.makeTab(tabLabel(index)));
  if (index == 0)
  {
    tabPanel.selectTab(0);
  }
}
com.google.gwt.user.client.uiTabPanelgetWidgetCount

Popular methods of TabPanel

  • add
    Adds a widget to the tab panel. If the Widget is already attached to the TabPanel, it will be moved
  • selectTab
    Programmatically selects the specified tab.
  • <init>
    Creates an empty tab panel.
  • setStyleName
  • addBeforeSelectionHandler
  • addSelectionHandler
  • remove
    Removes the given widget, and its associated tab.
  • addHandler
  • asWidgetOrNull
  • createTabTextWrapper
    Create a SimplePanel that will wrap the contents in a tab. Subclasses can use this method to wrap ta
  • getWidget
  • getWidgetIndex
  • getWidget,
  • getWidgetIndex,
  • initWidget,
  • insert,
  • addStyleName,
  • getElement,
  • isAnimationEnabled,
  • setVisible

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JPanel (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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