/** * Inserts a new tab at the specified index. * * @param widget widget to be used in the new tab * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(Widget widget, int beforeIndex) { insertTabWidget(widget, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(@IsSafeHtml String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param widget widget to be used in the new tab * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(Widget widget, int beforeIndex) { insertTabWidget(widget, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param widget widget to be used in the new tab * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(Widget widget, int beforeIndex) { insertTabWidget(widget, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }