< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaTabbedPaneCopyFromBasicUI.java

Print this page

        

*** 233,245 **** this.tabPane = null; } /** ! * Invoked by <code>installUI</code> to create * a layout manager object to manage ! * the <code>JTabbedPane</code>. * * @return a layout manager object * * @see TabbedPaneLayout * @see javax.swing.JTabbedPane#getTabLayoutPolicy --- 233,245 ---- this.tabPane = null; } /** ! * Invoked by {@code installUI} to create * a layout manager object to manage ! * the {@code JTabbedPane}. * * @return a layout manager object * * @see TabbedPaneLayout * @see javax.swing.JTabbedPane#getTabLayoutPolicy
*** 534,556 **** SwingUtilities.replaceUIInputMap(tabPane, JComponent.WHEN_IN_FOCUSED_WINDOW, mnemonicInputMap); } /** * Sets the tab the mouse is over by location. This is a cover method ! * for <code>setRolloverTab(tabForCoordinate(x, y, false))</code>. */ private void setRolloverTab(final int x, final int y) { // NOTE: // This calls in with false otherwise it could trigger a validate, // which should NOT happen if the user is only dragging the // mouse around. setRolloverTab(tabForCoordinate(tabPane, x, y, false)); } /** ! * Sets the tab the mouse is currently over to <code>index</code>. ! * <code>index</code> will be -1 if the mouse is no longer over any * tab. No checking is done to ensure the passed in index identifies a * valid tab. * * @param index Index of the tab the mouse is over. * @since 1.5 --- 534,556 ---- SwingUtilities.replaceUIInputMap(tabPane, JComponent.WHEN_IN_FOCUSED_WINDOW, mnemonicInputMap); } /** * Sets the tab the mouse is over by location. This is a cover method ! * for {@code setRolloverTab(tabForCoordinate(x, y, false))}. */ private void setRolloverTab(final int x, final int y) { // NOTE: // This calls in with false otherwise it could trigger a validate, // which should NOT happen if the user is only dragging the // mouse around. setRolloverTab(tabForCoordinate(tabPane, x, y, false)); } /** ! * Sets the tab the mouse is currently over to {@code index}. ! * {@code index} will be -1 if the mouse is no longer over any * tab. No checking is done to ensure the passed in index identifies a * valid tab. * * @param index Index of the tab the mouse is over. * @since 1.5
*** 674,684 **** return maxTabHeight / 2 - fontHeight / 2 + fontBaseline + getBaselineOffset(); } /** * Returns the amount the baseline is offset by. This is typically ! * the same as <code>getTabLabelShiftY</code>. * * @return amount to offset the baseline by * @since 1.6 */ protected int getBaselineOffset() { --- 674,684 ---- return maxTabHeight / 2 - fontHeight / 2 + fontBaseline + getBaselineOffset(); } /** * Returns the amount the baseline is offset by. This is typically ! * the same as {@code getTabLabelShiftY}. * * @return amount to offset the baseline by * @since 1.6 */ protected int getBaselineOffset() {
*** 763,776 **** } /** * Paints the tabs in the tab area. * Invoked by paint(). ! * The graphics parameter must be a valid <code>Graphics</code> * object. Tab placement may be either: ! * <code>JTabbedPane.TOP</code>, <code>JTabbedPane.BOTTOM</code>, ! * <code>JTabbedPane.LEFT</code>, or <code>JTabbedPane.RIGHT</code>. * The selected index must be a valid tabbed pane tab index (0 to * tab count - 1, inclusive) or -1 if no tab is currently selected. * The handling of invalid parameters is unspecified. * * @param g the graphics object to use for rendering --- 763,776 ---- } /** * Paints the tabs in the tab area. * Invoked by paint(). ! * The graphics parameter must be a valid {@code Graphics} * object. Tab placement may be either: ! * {@code JTabbedPane.TOP}, {@code JTabbedPane.BOTTOM}, ! * {@code JTabbedPane.LEFT}, or {@code JTabbedPane.RIGHT}. * The selected index must be a valid tabbed pane tab index (0 to * tab count - 1, inclusive) or -1 if no tab is currently selected. * The handling of invalid parameters is unspecified. * * @param g the graphics object to use for rendering
*** 1404,1414 **** * This method should be used whenever the tab rectangle must be relative * to the JTabbedPane itself and the result should be placed in a * designated Rectangle object (rather than instantiating and returning * a new Rectangle each time). The tab index parameter must be a valid * tabbed pane tab index (0 to tab count - 1, inclusive). The destination ! * rectangle parameter must be a valid <code>Rectangle</code> instance. * The handling of invalid parameters is unspecified. * * @param tabIndex the index of the tab * @param dest the rectangle where the result should be placed * @return the resulting rectangle --- 1404,1414 ---- * This method should be used whenever the tab rectangle must be relative * to the JTabbedPane itself and the result should be placed in a * designated Rectangle object (rather than instantiating and returning * a new Rectangle each time). The tab index parameter must be a valid * tabbed pane tab index (0 to tab count - 1, inclusive). The destination ! * rectangle parameter must be a valid {@code Rectangle} instance. * The handling of invalid parameters is unspecified. * * @param tabIndex the index of the tab * @param dest the rectangle where the result should be placed * @return the resulting rectangle
*** 3715,3741 **** } } /** * An ActionMap that populates its contents as necessary. The ! * contents are populated by invoking the <code>loadActionMap</code> * method on the passed in Object. * * @version 1.6, 11/17/05 * @author Scott Violet */ @SuppressWarnings("serial") // Superclass is not serializable across versions static class LazyActionMap extends ActionMapUIResource { /** ! * Object to invoke <code>loadActionMap</code> on. This may be * a Class object. */ private transient Object _loader; /** * Installs an ActionMap that will be populated by invoking the ! * <code>loadActionMap</code> method on the specified Class * when necessary. * <p> * This should be used if the ActionMap can be shared. * * @param c JComponent to install the ActionMap on. --- 3715,3741 ---- } } /** * An ActionMap that populates its contents as necessary. The ! * contents are populated by invoking the {@code loadActionMap} * method on the passed in Object. * * @version 1.6, 11/17/05 * @author Scott Violet */ @SuppressWarnings("serial") // Superclass is not serializable across versions static class LazyActionMap extends ActionMapUIResource { /** ! * Object to invoke {@code loadActionMap} on. This may be * a Class object. */ private transient Object _loader; /** * Installs an ActionMap that will be populated by invoking the ! * {@code loadActionMap} method on the specified Class * when necessary. * <p> * This should be used if the ActionMap can be shared. * * @param c JComponent to install the ActionMap on.
*** 3753,3763 **** SwingUtilities.replaceUIActionMap(c, map); } /** * Returns an ActionMap that will be populated by invoking the ! * <code>loadActionMap</code> method on the specified Class * when necessary. * <p> * This should be used if the ActionMap can be shared. * * @param c JComponent to install the ActionMap on. --- 3753,3763 ---- SwingUtilities.replaceUIActionMap(c, map); } /** * Returns an ActionMap that will be populated by invoking the ! * {@code loadActionMap} method on the specified Class * when necessary. * <p> * This should be used if the ActionMap can be shared. * * @param c JComponent to install the ActionMap on.
< prev index next >