Lines Matching refs:title
44 * clicking on a tab with a given title and/or icon.
62 * The tab title can be rendered by a <code>Component</code>.
65 * // In this case the look and feel renders the title for the tab.
68 * // title of the tab.
683 * represented by the given title and/or icon, either of which may
686 * @param title the title to be displayed on the tab
699 public void insertTab(String title, Icon icon, Component component, String tip, int index) {
720 new Page(this, title != null? title : "", icon, null, component, tip));
754 * represented by a <code>title</code> and/or <code>icon</code>,
758 * @param title the title to be displayed in this tab
766 public void addTab(String title, Icon icon, Component component, String tip) {
767 insertTab(title, icon, component, tip, pages.size());
771 * Adds a <code>component</code> represented by a <code>title</code>
775 * @param title the title to be displayed in this tab
782 public void addTab(String title, Icon icon, Component component) {
783 insertTab(title, icon, component, null, pages.size());
787 * Adds a <code>component</code> represented by a <code>title</code>
791 * @param title the title to be displayed in this tab
797 public void addTab(String title, Component component) {
798 insertTab(title, null, component, null, pages.size());
802 * Adds a <code>component</code> with a tab title defaulting to
823 * Adds a <code>component</code> with the specified tab title.
826 * @param title the title to be displayed in this tab
833 public Component add(String title, Component component) {
835 addTab(title, component);
837 super.add(title, component);
844 * title defaulting to the name of the component.
869 * <code>Icon</code>, it will be used for the tab title,
870 * otherwise the component's name will be used as the tab title.
896 * <code>Icon</code>, it will be used for the tab title,
897 * otherwise the component's name will be used as the tab title.
911 String title = constraints instanceof String? (String)constraints : null;
914 insertTab(title, icon, component, null, index == -1? getTabCount() : index);
1103 * Returns the tab title at <code>index</code>.
1106 * @return the title at <code>index</code>
1112 return pages.get(index).title;
1298 * Sets the title at <code>index</code> to <code>title</code> which
1300 * The title is not shown if a tab component for this tab was specified.
1303 * @param index the tab index where the title should be set
1304 * @param title the title to be displayed in the tab
1313 * description: The title at the specified tab index.
1315 public void setTitleAt(int index, String title) {
1317 String oldTitle =page.title;
1318 page.title = title;
1320 if (oldTitle != title) {
1324 if ((oldTitle != title) && (accessibleContext != null)) {
1327 oldTitle, title);
1329 if (title == null || oldTitle == null ||
1330 !title.equals(oldTitle)) {
1612 * title , or < -1
1674 * Returns the first tab index with a given <code>title</code>, or
1675 * -1 if no tab has this title.
1677 * @param title the title for the tab
1678 * @return the first tab index which matches <code>title</code>, or
1679 * -1 if no tab has this title
1681 public int indexOfTab(String title) {
1683 if (getTitleAt(i).equals(title == null? "" : title)) {
2034 String title;
2049 String title, Icon icon, Icon disabledIcon, Component component, String tip) {
2050 this.title = title;
2094 if (mnemonicIndex != -1 && (title == null ||
2096 mnemonicIndex >= title.length())) {
2115 SwingUtilities.findDisplayedMnemonicIndex(title, mnemonic));
2132 } else if (title != null) {
2133 return title;
2155 int i = parent.indexOfTab(title);
2163 return parent.indexOfTab(title);
2272 parent.indexOfTab(title));
2344 * title for the specified tab. A null value means
2345 * <code>JTabbedPane</code> will render the title and/or icon for
2347 * render the title and <code>JTabbedPane</code> will not render
2348 * the title and/or icon.
2354 * @param component the component to render the title for the