784 |
* events). |
* events). |
785 |
* |
* |
786 |
* @param enabled true to enable this component |
* @param enabled true to enable this component |
787 |
|
* |
788 |
* @see #isEnabled() |
* @see #isEnabled() |
789 |
* @see #isLightweight() |
* @see #isLightweight() |
790 |
|
* |
791 |
* @since 1.1 |
* @since 1.1 |
792 |
*/ |
*/ |
793 |
public void setEnabled(boolean b) |
public void setEnabled(boolean enabled) |
794 |
{ |
{ |
795 |
enable (b); |
enable(enabled); |
796 |
} |
} |
797 |
|
|
798 |
/** |
/** |
811 |
* Enables or disables this component. |
* Enables or disables this component. |
812 |
* |
* |
813 |
* @param enabled true to enable this component |
* @param enabled true to enable this component |
814 |
|
* |
815 |
* @deprecated use {@link #setEnabled(boolean)} instead |
* @deprecated use {@link #setEnabled(boolean)} instead |
816 |
*/ |
*/ |
817 |
public void enable(boolean b) |
public void enable(boolean enabled) |
818 |
{ |
{ |
819 |
if (b) |
if (enabled) |
820 |
enable (); |
enable(); |
821 |
else |
else |
822 |
disable (); |
disable(); |
823 |
} |
} |
824 |
|
|
825 |
/** |
/** |
867 |
* not show the component, if a parent is invisible. |
* not show the component, if a parent is invisible. |
868 |
* |
* |
869 |
* @param visible true to make this component visible |
* @param visible true to make this component visible |
870 |
|
* |
871 |
* @see #isVisible() |
* @see #isVisible() |
872 |
|
* |
873 |
* @since 1.1 |
* @since 1.1 |
874 |
*/ |
*/ |
875 |
public void setVisible(boolean b) |
public void setVisible(boolean visible) |
876 |
{ |
{ |
877 |
// Inspection by subclassing shows that Sun's implementation calls |
// Inspection by subclassing shows that Sun's implementation calls |
878 |
// show(boolean) which then calls show() or hide(). It is the show() |
// show(boolean) which then calls show() or hide(). It is the show() |
879 |
// method that is overriden in subclasses like Window. |
// method that is overriden in subclasses like Window. |
880 |
show (b); |
show(visible); |
881 |
} |
} |
882 |
|
|
883 |
/** |
/** |
908 |
* Makes this component visible or invisible. |
* Makes this component visible or invisible. |
909 |
* |
* |
910 |
* @param visible true to make this component visible |
* @param visible true to make this component visible |
911 |
|
* |
912 |
* @deprecated use {@link #setVisible(boolean)} instead |
* @deprecated use {@link #setVisible(boolean)} instead |
913 |
*/ |
*/ |
914 |
public void show(boolean b) |
public void show(boolean visible) |
915 |
{ |
{ |
916 |
if (b) |
if (visible) |
917 |
show (); |
show(); |
918 |
else |
else |
919 |
hide (); |
hide(); |
920 |
} |
} |
921 |
|
|
922 |
/** |
/** |
1046 |
* Sets the font for this component to the specified font. This is a bound |
* Sets the font for this component to the specified font. This is a bound |
1047 |
* property. |
* property. |
1048 |
* |
* |
1049 |
* @param font the new font for this component |
* @param newFont the new font for this component |
1050 |
|
* |
1051 |
* @see #getFont() |
* @see #getFont() |
1052 |
*/ |
*/ |
1053 |
public void setFont(Font f) |
public void setFont(Font newFont) |
1054 |
{ |
{ |
1055 |
firePropertyChange("font", font, f); |
if (font == newFont) |
1056 |
|
return; |
1057 |
|
|
1058 |
|
Font oldFont = font; |
1059 |
|
font = newFont; |
1060 |
if (peer != null) |
if (peer != null) |
1061 |
peer.setFont(f); |
peer.setFont(font); |
1062 |
|
firePropertyChange("font", oldFont, newFont); |
1063 |
invalidate(); |
invalidate(); |
|
font = f; |
|
1064 |
} |
} |
1065 |
|
|
1066 |
/** |
/** |
1097 |
* Sets the locale for this component to the specified locale. This is a |
* Sets the locale for this component to the specified locale. This is a |
1098 |
* bound property. |
* bound property. |
1099 |
* |
* |
1100 |
* @param locale the new locale for this component |
* @param newLocale the new locale for this component |
1101 |
*/ |
*/ |
1102 |
public void setLocale(Locale l) |
public void setLocale(Locale newLocale) |
1103 |
{ |
{ |
1104 |
firePropertyChange("locale", locale, l); |
if (locale == newLocale) |
1105 |
locale = l; |
return; |
1106 |
|
|
1107 |
|
Locale oldLocale = locale; |
1108 |
|
locale = newLocale; |
1109 |
|
firePropertyChange("locale", oldLocale, newLocale); |
1110 |
// New writing/layout direction or more/less room for localized labels. |
// New writing/layout direction or more/less room for localized labels. |
1111 |
invalidate(); |
invalidate(); |
1112 |
} |
} |
1801 |
* relative to this component. Subclasses should call either |
* relative to this component. Subclasses should call either |
1802 |
* <code>super.update(g)</code> or <code>paint(g)</code>. |
* <code>super.update(g)</code> or <code>paint(g)</code>. |
1803 |
* |
* |
1804 |
* @param graphics the graphics context for this update |
* @param g the graphics context for this update |
1805 |
|
* |
1806 |
* @see #paint(Graphics) |
* @see #paint(Graphics) |
1807 |
* @see #repaint() |
* @see #repaint() |
1808 |
*/ |
*/ |
1823 |
/** |
/** |
1824 |
* Paints this entire component, including any sub-components. |
* Paints this entire component, including any sub-components. |
1825 |
* |
* |
1826 |
* @param graphics the graphics context for this paint job |
* @param g the graphics context for this paint job |
1827 |
|
* |
1828 |
* @see #paint(Graphics) |
* @see #paint(Graphics) |
1829 |
*/ |
*/ |
1830 |
public void paintAll(Graphics g) |
public void paintAll(Graphics g) |
1886 |
* @param tm milliseconds before this component should be repainted |
* @param tm milliseconds before this component should be repainted |
1887 |
* @param x the X coordinate of the upper left of the region to repaint |
* @param x the X coordinate of the upper left of the region to repaint |
1888 |
* @param y the Y coordinate of the upper left of the region to repaint |
* @param y the Y coordinate of the upper left of the region to repaint |
1889 |
* @param w the width of the region to repaint |
* @param width the width of the region to repaint |
1890 |
* @param h the height of the region to repaint |
* @param height the height of the region to repaint |
1891 |
* @see #update(Graphics) |
* @see #update(Graphics) |
1892 |
*/ |
*/ |
1893 |
public void repaint(long tm, int x, int y, int width, int height) |
public void repaint(long tm, int x, int y, int width, int height) |
1907 |
* done in a different manner from painting. However, the implementation |
* done in a different manner from painting. However, the implementation |
1908 |
* in this class simply calls the <code>paint()</code> method. |
* in this class simply calls the <code>paint()</code> method. |
1909 |
* |
* |
1910 |
* @param graphics the graphics context of the print device |
* @param g the graphics context of the print device |
1911 |
|
* |
1912 |
* @see #paint(Graphics) |
* @see #paint(Graphics) |
1913 |
*/ |
*/ |
1914 |
public void print(Graphics g) |
public void print(Graphics g) |
1922 |
* painting. However, the implementation in this class simply calls the |
* painting. However, the implementation in this class simply calls the |
1923 |
* <code>paintAll()</code> method. |
* <code>paintAll()</code> method. |
1924 |
* |
* |
1925 |
* @param graphics the graphics context of the print device |
* @param g the graphics context of the print device |
1926 |
|
* |
1927 |
* @see #paintAll(Graphics) |
* @see #paintAll(Graphics) |
1928 |
*/ |
*/ |
1929 |
public void printAll(Graphics g) |
public void printAll(Graphics g) |
1941 |
* |
* |
1942 |
* <p>The coordinate system used depends on the particular flags. |
* <p>The coordinate system used depends on the particular flags. |
1943 |
* |
* |
1944 |
* @param image the image that has been updated |
* @param img the image that has been updated |
1945 |
* @param flags tlags as specified in <code>ImageObserver</code> |
* @param flags tlags as specified in <code>ImageObserver</code> |
1946 |
* @param x the X coordinate |
* @param x the X coordinate |
1947 |
* @param y the Y coordinate |
* @param y the Y coordinate |
2307 |
* @see #getComponentListeners() |
* @see #getComponentListeners() |
2308 |
* @since 1.1 |
* @since 1.1 |
2309 |
*/ |
*/ |
2310 |
public synchronized void addComponentListener(ComponentListener l) |
public synchronized void addComponentListener(ComponentListener listener) |
2311 |
{ |
{ |
2312 |
componentListener = AWTEventMulticaster.add(componentListener, l); |
componentListener = AWTEventMulticaster.add(componentListener, listener); |
2313 |
if (componentListener != null) |
if (componentListener != null) |
2314 |
enableEvents(AWTEvent.COMPONENT_EVENT_MASK); |
enableEvents(AWTEvent.COMPONENT_EVENT_MASK); |
2315 |
} |
} |
2324 |
* @see #getComponentListeners() |
* @see #getComponentListeners() |
2325 |
* @since 1.1 |
* @since 1.1 |
2326 |
*/ |
*/ |
2327 |
public synchronized void removeComponentListener(ComponentListener l) |
public synchronized void removeComponentListener(ComponentListener listener) |
2328 |
{ |
{ |
2329 |
componentListener = AWTEventMulticaster.remove(componentListener, l); |
componentListener = AWTEventMulticaster.remove(componentListener, listener); |
2330 |
} |
} |
2331 |
|
|
2332 |
/** |
/** |
2355 |
* @see #getFocusListeners() |
* @see #getFocusListeners() |
2356 |
* @since 1.1 |
* @since 1.1 |
2357 |
*/ |
*/ |
2358 |
public synchronized void addFocusListener(FocusListener l) |
public synchronized void addFocusListener(FocusListener listener) |
2359 |
{ |
{ |
2360 |
focusListener = AWTEventMulticaster.add(focusListener, l); |
focusListener = AWTEventMulticaster.add(focusListener, listener); |
2361 |
if (focusListener != null) |
if (focusListener != null) |
2362 |
enableEvents(AWTEvent.FOCUS_EVENT_MASK); |
enableEvents(AWTEvent.FOCUS_EVENT_MASK); |
2363 |
} |
} |
2372 |
* @see #getFocusListeners() |
* @see #getFocusListeners() |
2373 |
* @since 1.1 |
* @since 1.1 |
2374 |
*/ |
*/ |
2375 |
public synchronized void removeFocusListener(FocusListener l) |
public synchronized void removeFocusListener(FocusListener listener) |
2376 |
{ |
{ |
2377 |
focusListener = AWTEventMulticaster.remove(focusListener, l); |
focusListener = AWTEventMulticaster.remove(focusListener, listener); |
2378 |
} |
} |
2379 |
|
|
2380 |
/** |
/** |
2402 |
* @see #getHierarchyListeners() |
* @see #getHierarchyListeners() |
2403 |
* @since 1.3 |
* @since 1.3 |
2404 |
*/ |
*/ |
2405 |
public synchronized void addHierarchyListener(HierarchyListener l) |
public synchronized void addHierarchyListener(HierarchyListener listener) |
2406 |
{ |
{ |
2407 |
hierarchyListener = AWTEventMulticaster.add(hierarchyListener, l); |
hierarchyListener = AWTEventMulticaster.add(hierarchyListener, listener); |
2408 |
if (hierarchyListener != null) |
if (hierarchyListener != null) |
2409 |
enableEvents(AWTEvent.HIERARCHY_EVENT_MASK); |
enableEvents(AWTEvent.HIERARCHY_EVENT_MASK); |
2410 |
} |
} |
2419 |
* @see #getHierarchyListeners() |
* @see #getHierarchyListeners() |
2420 |
* @since 1.3 |
* @since 1.3 |
2421 |
*/ |
*/ |
2422 |
public synchronized void removeHierarchyListener(HierarchyListener l) |
public synchronized void removeHierarchyListener(HierarchyListener listener) |
2423 |
{ |
{ |
2424 |
hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, l); |
hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, listener); |
2425 |
} |
} |
2426 |
|
|
2427 |
/** |
/** |
2451 |
* @since 1.3 |
* @since 1.3 |
2452 |
*/ |
*/ |
2453 |
public synchronized void |
public synchronized void |
2454 |
addHierarchyBoundsListener(HierarchyBoundsListener l) |
addHierarchyBoundsListener(HierarchyBoundsListener listener) |
2455 |
{ |
{ |
2456 |
hierarchyBoundsListener = |
hierarchyBoundsListener = |
2457 |
AWTEventMulticaster.add(hierarchyBoundsListener, l); |
AWTEventMulticaster.add(hierarchyBoundsListener, listener); |
2458 |
if (hierarchyBoundsListener != null) |
if (hierarchyBoundsListener != null) |
2459 |
enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); |
enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); |
2460 |
} |
} |
2470 |
* @since 1.3 |
* @since 1.3 |
2471 |
*/ |
*/ |
2472 |
public synchronized void |
public synchronized void |
2473 |
removeHierarchyBoundsListener(HierarchyBoundsListener l) |
removeHierarchyBoundsListener(HierarchyBoundsListener listener) |
2474 |
{ |
{ |
2475 |
hierarchyBoundsListener = |
hierarchyBoundsListener = |
2476 |
AWTEventMulticaster.remove(hierarchyBoundsListener, l); |
AWTEventMulticaster.remove(hierarchyBoundsListener, listener); |
2477 |
} |
} |
2478 |
|
|
2479 |
/** |
/** |
2502 |
* @see #getKeyListeners() |
* @see #getKeyListeners() |
2503 |
* @since 1.1 |
* @since 1.1 |
2504 |
*/ |
*/ |
2505 |
public synchronized void addKeyListener(KeyListener l) |
public synchronized void addKeyListener(KeyListener listener) |
2506 |
{ |
{ |
2507 |
keyListener = AWTEventMulticaster.add(keyListener, l); |
keyListener = AWTEventMulticaster.add(keyListener, listener); |
2508 |
if (keyListener != null) |
if (keyListener != null) |
2509 |
enableEvents(AWTEvent.KEY_EVENT_MASK); |
enableEvents(AWTEvent.KEY_EVENT_MASK); |
2510 |
} |
} |
2519 |
* @see #getKeyListeners() |
* @see #getKeyListeners() |
2520 |
* @since 1.1 |
* @since 1.1 |
2521 |
*/ |
*/ |
2522 |
public synchronized void removeKeyListener(KeyListener l) |
public synchronized void removeKeyListener(KeyListener listener) |
2523 |
{ |
{ |
2524 |
keyListener = AWTEventMulticaster.remove(keyListener, l); |
keyListener = AWTEventMulticaster.remove(keyListener, listener); |
2525 |
} |
} |
2526 |
|
|
2527 |
/** |
/** |
2549 |
* @see #getMouseListeners() |
* @see #getMouseListeners() |
2550 |
* @since 1.1 |
* @since 1.1 |
2551 |
*/ |
*/ |
2552 |
public synchronized void addMouseListener(MouseListener l) |
public synchronized void addMouseListener(MouseListener listener) |
2553 |
{ |
{ |
2554 |
mouseListener = AWTEventMulticaster.add(mouseListener, l); |
mouseListener = AWTEventMulticaster.add(mouseListener, listener); |
2555 |
if (mouseListener != null) |
if (mouseListener != null) |
2556 |
enableEvents(AWTEvent.MOUSE_EVENT_MASK); |
enableEvents(AWTEvent.MOUSE_EVENT_MASK); |
2557 |
} |
} |
2566 |
* @see #getMouseListeners() |
* @see #getMouseListeners() |
2567 |
* @since 1.1 |
* @since 1.1 |
2568 |
*/ |
*/ |
2569 |
public synchronized void removeMouseListener(MouseListener l) |
public synchronized void removeMouseListener(MouseListener listener) |
2570 |
{ |
{ |
2571 |
mouseListener = AWTEventMulticaster.remove(mouseListener, l); |
mouseListener = AWTEventMulticaster.remove(mouseListener, listener); |
2572 |
} |
} |
2573 |
|
|
2574 |
/** |
/** |
2596 |
* @see #getMouseMotionListeners() |
* @see #getMouseMotionListeners() |
2597 |
* @since 1.1 |
* @since 1.1 |
2598 |
*/ |
*/ |
2599 |
public synchronized void addMouseMotionListener(MouseMotionListener l) |
public synchronized void addMouseMotionListener(MouseMotionListener listener) |
2600 |
{ |
{ |
2601 |
mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, l); |
mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, listener); |
2602 |
if (mouseMotionListener != null) |
if (mouseMotionListener != null) |
2603 |
enableEvents(AWTEvent.MOUSE_EVENT_MASK); |
enableEvents(AWTEvent.MOUSE_EVENT_MASK); |
2604 |
} |
} |
2613 |
* @see #getMouseMotionListeners() |
* @see #getMouseMotionListeners() |
2614 |
* @since 1.1 |
* @since 1.1 |
2615 |
*/ |
*/ |
2616 |
public synchronized void removeMouseMotionListener(MouseMotionListener l) |
public synchronized void removeMouseMotionListener(MouseMotionListener listener) |
2617 |
{ |
{ |
2618 |
mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, l); |
mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, listener); |
2619 |
} |
} |
2620 |
|
|
2621 |
/** |
/** |
2645 |
* @see #getMouseWheelListeners() |
* @see #getMouseWheelListeners() |
2646 |
* @since 1.4 |
* @since 1.4 |
2647 |
*/ |
*/ |
2648 |
public synchronized void addMouseWheelListener(MouseWheelListener l) |
public synchronized void addMouseWheelListener(MouseWheelListener listener) |
2649 |
{ |
{ |
2650 |
mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, l); |
mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, listener); |
2651 |
if (mouseWheelListener != null) |
if (mouseWheelListener != null) |
2652 |
enableEvents(AWTEvent.MOUSE_WHEEL_EVENT_MASK); |
enableEvents(AWTEvent.MOUSE_WHEEL_EVENT_MASK); |
2653 |
} |
} |
2663 |
* @see #getMouseWheelListeners() |
* @see #getMouseWheelListeners() |
2664 |
* @since 1.4 |
* @since 1.4 |
2665 |
*/ |
*/ |
2666 |
public synchronized void removeMouseWheelListener(MouseWheelListener l) |
public synchronized void removeMouseWheelListener(MouseWheelListener listener) |
2667 |
{ |
{ |
2668 |
mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, l); |
mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, listener); |
2669 |
} |
} |
2670 |
|
|
2671 |
/** |
/** |
2695 |
* @see #getInputMethodRequests() |
* @see #getInputMethodRequests() |
2696 |
* @since 1.2 |
* @since 1.2 |
2697 |
*/ |
*/ |
2698 |
public synchronized void addInputMethodListener(InputMethodListener l) |
public synchronized void addInputMethodListener(InputMethodListener listener) |
2699 |
{ |
{ |
2700 |
inputMethodListener = AWTEventMulticaster.add(inputMethodListener, l); |
inputMethodListener = AWTEventMulticaster.add(inputMethodListener, listener); |
2701 |
if (inputMethodListener != null) |
if (inputMethodListener != null) |
2702 |
enableEvents(AWTEvent.INPUT_METHOD_EVENT_MASK); |
enableEvents(AWTEvent.INPUT_METHOD_EVENT_MASK); |
2703 |
} |
} |
2712 |
* @see #getInputMethodRequests() |
* @see #getInputMethodRequests() |
2713 |
* @since 1.2 |
* @since 1.2 |
2714 |
*/ |
*/ |
2715 |
public synchronized void removeInputMethodListener(InputMethodListener l) |
public synchronized void removeInputMethodListener(InputMethodListener listener) |
2716 |
{ |
{ |
2717 |
inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, l); |
inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, listener); |
2718 |
} |
} |
2719 |
|
|
2720 |
/** |
/** |
2876 |
* Processes the specified event. In this class, this method simply |
* Processes the specified event. In this class, this method simply |
2877 |
* calls one of the more specific event handlers. |
* calls one of the more specific event handlers. |
2878 |
* |
* |
2879 |
* @param event the event to process |
* @param e the event to process |
2880 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
2881 |
* @see #processComponentEvent(ComponentEvent) |
* @see #processComponentEvent(ComponentEvent) |
2882 |
* @see #processFocusEvent(FocusEvent) |
* @see #processFocusEvent(FocusEvent) |
2927 |
* enabled. This method passes the event along to any listeners |
* enabled. This method passes the event along to any listeners |
2928 |
* that are attached. |
* that are attached. |
2929 |
* |
* |
2930 |
* @param event the <code>ComponentEvent</code> to process |
* @param e the <code>ComponentEvent</code> to process |
2931 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
2932 |
* @see ComponentListener |
* @see ComponentListener |
2933 |
* @see #addComponentListener(ComponentListener) |
* @see #addComponentListener(ComponentListener) |
2960 |
* enabled. This method passes the event along to any listeners |
* enabled. This method passes the event along to any listeners |
2961 |
* that are attached. |
* that are attached. |
2962 |
* |
* |
2963 |
* @param event the <code>FocusEvent</code> to process |
* @param e the <code>FocusEvent</code> to process |
2964 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
2965 |
* @see FocusListener |
* @see FocusListener |
2966 |
* @see #addFocusListener(FocusListener) |
* @see #addFocusListener(FocusListener) |
2988 |
* enabled. This method passes the event along to any listeners |
* enabled. This method passes the event along to any listeners |
2989 |
* that are attached. |
* that are attached. |
2990 |
* |
* |
2991 |
* @param event the <code>KeyEvent</code> to process |
* @param e the <code>KeyEvent</code> to process |
2992 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
2993 |
* @see KeyListener |
* @see KeyListener |
2994 |
* @see #addKeyListener(KeyListener) |
* @see #addKeyListener(KeyListener) |
3018 |
* enabled. This method passes the event along to any listeners |
* enabled. This method passes the event along to any listeners |
3019 |
* that are attached. |
* that are attached. |
3020 |
* |
* |
3021 |
* @param event the <code>MouseEvent</code> to process |
* @param e the <code>MouseEvent</code> to process |
3022 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3023 |
* @see MouseListener |
* @see MouseListener |
3024 |
* @see #addMouseListener(MouseListener) |
* @see #addMouseListener(MouseListener) |
3055 |
* enabled. This method passes the event along to any listeners |
* enabled. This method passes the event along to any listeners |
3056 |
* that are attached. |
* that are attached. |
3057 |
* |
* |
3058 |
* @param event the <code>MouseMotionEvent</code> to process |
* @param e the <code>MouseMotionEvent</code> to process |
3059 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3060 |
* @see MouseMotionListener |
* @see MouseMotionListener |
3061 |
* @see #addMouseMotionListener(MouseMotionListener) |
* @see #addMouseMotionListener(MouseMotionListener) |
3083 |
* enabled. This method passes the event along to any listeners that are |
* enabled. This method passes the event along to any listeners that are |
3084 |
* attached. |
* attached. |
3085 |
* |
* |
3086 |
* @param event the <code>MouseWheelEvent</code> to process |
* @param e the <code>MouseWheelEvent</code> to process |
3087 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3088 |
* @see MouseWheelListener |
* @see MouseWheelListener |
3089 |
* @see #addMouseWheelListener(MouseWheelListener) |
* @see #addMouseWheelListener(MouseWheelListener) |
3105 |
* enabled. This method passes the event along to any listeners that are |
* enabled. This method passes the event along to any listeners that are |
3106 |
* attached. |
* attached. |
3107 |
* |
* |
3108 |
* @param event the <code>InputMethodEvent</code> to process |
* @param e the <code>InputMethodEvent</code> to process |
3109 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3110 |
* @see InputMethodListener |
* @see InputMethodListener |
3111 |
* @see #addInputMethodListener(InputMethodListener) |
* @see #addInputMethodListener(InputMethodListener) |
3132 |
* are enabled. This method passes the event along to any listeners that are |
* are enabled. This method passes the event along to any listeners that are |
3133 |
* attached. |
* attached. |
3134 |
* |
* |
3135 |
* @param event the <code>HierarchyEvent</code> to process |
* @param e the <code>HierarchyEvent</code> to process |
3136 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3137 |
* @see HierarchyListener |
* @see HierarchyListener |
3138 |
* @see #addHierarchyListener(HierarchyListener) |
* @see #addHierarchyListener(HierarchyListener) |
3152 |
* are enabled. This method passes the event along to any listeners that are |
* are enabled. This method passes the event along to any listeners that are |
3153 |
* attached. |
* attached. |
3154 |
* |
* |
3155 |
* @param event the <code>HierarchyEvent</code> to process |
* @param e the <code>HierarchyEvent</code> to process |
3156 |
* @throws NullPointerException if e is null |
* @throws NullPointerException if e is null |
3157 |
* @see HierarchyBoundsListener |
* @see HierarchyBoundsListener |
3158 |
* @see #addHierarchyBoundsListener(HierarchyBoundsListener) |
* @see #addHierarchyBoundsListener(HierarchyBoundsListener) |
3606 |
* |
* |
3607 |
* @param id one of FORWARD_TRAVERSAL_KEYS, BACKWARD_TRAVERSAL_KEYS, |
* @param id one of FORWARD_TRAVERSAL_KEYS, BACKWARD_TRAVERSAL_KEYS, |
3608 |
* or UP_CYCLE_TRAVERSAL_KEYS |
* or UP_CYCLE_TRAVERSAL_KEYS |
3609 |
|
* |
3610 |
|
* @return set of traversal keys |
3611 |
|
* |
3612 |
* @throws IllegalArgumentException if id is invalid |
* @throws IllegalArgumentException if id is invalid |
3613 |
|
* |
3614 |
* @see #setFocusTraversalKeys (int, Set) |
* @see #setFocusTraversalKeys (int, Set) |
3615 |
* @see KeyboardFocusManager#FORWARD_TRAVERSAL_KEYS |
* @see KeyboardFocusManager#FORWARD_TRAVERSAL_KEYS |
3616 |
* @see KeyboardFocusManager#BACKWARD_TRAVERSAL_KEYS |
* @see KeyboardFocusManager#BACKWARD_TRAVERSAL_KEYS |
3617 |
* @see KeyboardFocusManager#UP_CYCLE_TRAVERSAL_KEYS |
* @see KeyboardFocusManager#UP_CYCLE_TRAVERSAL_KEYS |
3618 |
|
* |
3619 |
* @since 1.4 |
* @since 1.4 |
3620 |
*/ |
*/ |
3621 |
public Set getFocusTraversalKeys (int id) |
public Set getFocusTraversalKeys (int id) |
4111 |
/** |
/** |
4112 |
* Adds the specified popup menu to this component. |
* Adds the specified popup menu to this component. |
4113 |
* |
* |
4114 |
* @param menu the popup menu to be added |
* @param popup the popup menu to be added |
4115 |
|
* |
4116 |
* @see #remove(MenuComponent) |
* @see #remove(MenuComponent) |
4117 |
|
* |
4118 |
* @since 1.1 |
* @since 1.1 |
4119 |
*/ |
*/ |
4120 |
public synchronized void add(PopupMenu popup) |
public synchronized void add(PopupMenu popup) |
4133 |
/** |
/** |
4134 |
* Removes the specified popup menu from this component. |
* Removes the specified popup menu from this component. |
4135 |
* |
* |
4136 |
* @param menu the popup menu to remove |
* @param popup the popup menu to remove |
4137 |
* @see #add(PopupMenu) |
* @see #add(PopupMenu) |
4138 |
* @since 1.1 |
* @since 1.1 |
4139 |
*/ |
*/ |
4194 |
/** |
/** |
4195 |
* Prints a listing of this component to the specified print stream. |
* Prints a listing of this component to the specified print stream. |
4196 |
* |
* |
4197 |
* @param stream the <code>PrintStream</code> to print to |
* @param out the <code>PrintStream</code> to print to |
4198 |
*/ |
*/ |
4199 |
public void list(PrintStream out) |
public void list(PrintStream out) |
4200 |
{ |
{ |
4205 |
* Prints a listing of this component to the specified print stream, |
* Prints a listing of this component to the specified print stream, |
4206 |
* starting at the specified indentation point. |
* starting at the specified indentation point. |
4207 |
* |
* |
4208 |
* @param stream the <code>PrintStream</code> to print to |
* @param out the <code>PrintStream</code> to print to |
4209 |
* @param indent the indentation point |
* @param indent the indentation point |
4210 |
*/ |
*/ |
4211 |
public void list(PrintStream out, int indent) |
public void list(PrintStream out, int indent) |
4218 |
/** |
/** |
4219 |
* Prints a listing of this component to the specified print writer. |
* Prints a listing of this component to the specified print writer. |
4220 |
* |
* |
4221 |
* @param writer the <code>PrintWrinter</code> to print to |
* @param out the <code>PrintWrinter</code> to print to |
4222 |
* @since 1.1 |
* @since 1.1 |
4223 |
*/ |
*/ |
4224 |
public void list(PrintWriter out) |
public void list(PrintWriter out) |
4230 |
* Prints a listing of this component to the specified print writer, |
* Prints a listing of this component to the specified print writer, |
4231 |
* starting at the specified indentation point. |
* starting at the specified indentation point. |
4232 |
* |
* |
4233 |
* @param writer the <code>PrintWriter</code> to print to |
* @param out the <code>PrintWriter</code> to print to |
4234 |
* @param indent the indentation point |
* @param indent the indentation point |
4235 |
* @since 1.1 |
* @since 1.1 |
4236 |
*/ |
*/ |