public void insertTabProtected(Widget widget, int beforeIndex) { super.insertTab(widget, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param beforeIndex the index before which this tab will be inserted */ @SuppressIsSafeHtmlCastCheck public void insertTab(String text, int beforeIndex) { insertTab(text, false, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param html the new tab's html * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(SafeHtml html, int beforeIndex) { insertTab(html.asString(), true, beforeIndex); }
/** * Adds a new tab with the specified widget. * * @param widget the new tab's widget */ public void addTab(Widget widget) { insertTab(widget, getTabCount()); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text */ public void addTab(String text) { insertTab(text, getTabCount()); }
public void insertTabProtected(@IsSafeHtml String text, boolean asHTML, int beforeIndex) { super.insertTab(text, asHTML, beforeIndex); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as html */ public void addTab(@IsSafeHtml String text, boolean asHTML) { insertTab(text, asHTML, getTabCount()); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, int beforeIndex) { insertTab(text, false, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, int beforeIndex) { insertTab(text, false, beforeIndex); }
public void insertTabProtected(String text, boolean asHTML, int beforeIndex) { super.insertTab(text, asHTML, beforeIndex); }
public void insertTabProtected(String text, boolean asHTML, int beforeIndex) { super.insertTab(text, asHTML, beforeIndex); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as html */ public void addTab(String text, boolean asHTML) { insertTab(text, asHTML, getTabCount()); }
/** * Inserts a new tab at the specified index. * * @param html the new tab's html * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(SafeHtml html, int beforeIndex) { insertTab(html.asString(), true, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param html the new tab's html * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(SafeHtml html, int beforeIndex) { insertTab(html.asString(), true, beforeIndex); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as html */ public void addTab(String text, boolean asHTML) { insertTab(text, asHTML, getTabCount()); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text */ public void addTab(String text) { insertTab(text, getTabCount()); }
/** * Adds a new tab with the specified widget. * * @param widget the new tab's widget */ public void addTab(Widget widget) { insertTab(widget, getTabCount()); }
/** * Adds a new tab with the specified text. * * @param text the new tab's text */ public void addTab(String text) { insertTab(text, getTabCount()); }
/** * Adds a new tab with the specified widget. * * @param widget the new tab's widget */ public void addTab(Widget widget) { insertTab(widget, getTabCount()); }
public void insert(Widget panel, Widget tab, int beforeIndex) { int idx = getWidgetIndex(panel); if (idx != -1) { if (beforeIndex != 0 & beforeIndex > idx) beforeIndex--; remove(idx); } tabBar.insertTab(tab, beforeIndex); deckPanel.insert(panel, beforeIndex); selectTab(beforeIndex); }