diff options
author | Michael Koch <konqueror@gmx.de> | 2003-06-19 16:30:09 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-06-19 16:30:09 +0000 |
commit | 536a695f0454b7c12015e0ac94aaa7125e1df351 (patch) | |
tree | ed5f4608b18c023ffe55eddd194f6b2db913b1c6 /libjava/javax/swing/JComponent.java | |
parent | 50af15ec616940c40dfbefe865c89853ee09622e (diff) | |
download | gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.zip gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.tar.gz gcc-536a695f0454b7c12015e0ac94aaa7125e1df351.tar.bz2 |
JComponent.java, [...]: New versions from classpath.
2003-06-19 Michael Koch <konqueror@gmx.de>
* javax/swing/JComponent.java,
javax/swing/JInternalFrame.java,
javax/swing/MenuSelectionManager.java,
javax/swing/SwingUtilities.java,
javax/swing/ToggleButtonModel.java:
New versions from classpath.
From-SVN: r68207
Diffstat (limited to 'libjava/javax/swing/JComponent.java')
-rw-r--r-- | libjava/javax/swing/JComponent.java | 87 |
1 files changed, 1 insertions, 86 deletions
diff --git a/libjava/javax/swing/JComponent.java b/libjava/javax/swing/JComponent.java index 7cfa743..a0409a4 100644 --- a/libjava/javax/swing/JComponent.java +++ b/libjava/javax/swing/JComponent.java @@ -66,7 +66,6 @@ import java.util.Hashtable; import javax.accessibility.Accessible; import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleExtendedComponent; -import javax.accessibility.AccessibleKeyBinding; import javax.accessibility.AccessibleRole; import javax.accessibility.AccessibleStateSet; import javax.swing.event.AncestorListener; @@ -116,16 +115,6 @@ public abstract class JComponent extends Container implements Serializable * AccessibleFocusHandler */ protected class AccessibleFocusHandler implements FocusListener { - - //------------------------------------------------------------- - // Variables -------------------------------------------------- - //------------------------------------------------------------- - - - //------------------------------------------------------------- - // Initialization --------------------------------------------- - //------------------------------------------------------------- - /** * Constructor AccessibleFocusHandler * @param component TODO @@ -134,11 +123,6 @@ public abstract class JComponent extends Container implements Serializable // TODO } // AccessibleFocusHandler() - - //------------------------------------------------------------- - // Methods ---------------------------------------------------- - //------------------------------------------------------------- - /** * focusGained * @param event TODO @@ -154,24 +138,12 @@ public abstract class JComponent extends Container implements Serializable public void focusLost(FocusEvent valevent) { // TODO } // focusLost() - - } // AccessibleFocusHandler /** * AccessibleContainerHandler */ protected class AccessibleContainerHandler implements ContainerListener { - - //------------------------------------------------------------- - // Variables -------------------------------------------------- - //------------------------------------------------------------- - - - //------------------------------------------------------------- - // Initialization --------------------------------------------- - //------------------------------------------------------------- - /** * Constructor AccessibleContainerHandler * @param component TODO @@ -180,11 +152,6 @@ public abstract class JComponent extends Container implements Serializable // TODO } // AccessibleContainerHandler() - - //------------------------------------------------------------- - // Methods ---------------------------------------------------- - //------------------------------------------------------------- - /** * componentAdded * @param event TODO @@ -200,15 +167,8 @@ public abstract class JComponent extends Container implements Serializable public void componentRemoved(ContainerEvent valevent) { // TODO } // componentRemoved() - - } // AccessibleContainerHandler - - //------------------------------------------------------------- - // Variables -------------------------------------------------- - //------------------------------------------------------------- - /** * accessibleContainerHandler */ @@ -219,11 +179,6 @@ public abstract class JComponent extends Container implements Serializable */ protected FocusListener accessibleFocusHandler; - - //------------------------------------------------------------- - // Initialization --------------------------------------------- - //------------------------------------------------------------- - /** * Constructor AccessibleJComponent * @param component TODO @@ -233,11 +188,6 @@ public abstract class JComponent extends Container implements Serializable // TODO } // AccessibleJComponent() - - //------------------------------------------------------------- - // Methods ---------------------------------------------------- - //------------------------------------------------------------- - /** * addPropertyChangeListener * @param listener TODO @@ -327,7 +277,6 @@ public abstract class JComponent extends Container implements Serializable //updateUI(); // get a proper ui } - // protected EventListenerList listenerList public boolean contains(int x, int y) { @@ -335,14 +284,12 @@ public abstract class JComponent extends Container implements Serializable return super.contains(x,y); } - public void addNotify() { //Notification to this component that it now has a parent component. super.addNotify(); } - Hashtable get_prop_hash() { if (prop_hash == null) @@ -374,7 +321,6 @@ public abstract class JComponent extends Container implements Serializable public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); } - public void removeAncestorListener(AncestorListener listener) { get_ancestor_list().removeElement(listener); } @@ -405,7 +351,6 @@ public abstract class JComponent extends Container implements Serializable //super.computeVisibleRect(rect); } - public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { //Reports a bound property change. @@ -446,7 +391,6 @@ public abstract class JComponent extends Container implements Serializable // Reports a bound property change. } - protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) { // Support for reporting constrained property changes. @@ -658,16 +602,6 @@ public abstract class JComponent extends Container implements Serializable } } - - - /********************************************************************* - * - * - * tooltips: - * - * - **************************************/ - public JToolTip createToolTip() { if (tooltip == null) @@ -687,15 +621,6 @@ public abstract class JComponent extends Container implements Serializable public String getToolTipText(MouseEvent event) { return tool_tip_text; } - /********************************************************************* - * - * - * things to do with visibility: - * - * - **************************************/ - - public Container getTopLevelAncestor() { // Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container. @@ -953,7 +878,6 @@ public abstract class JComponent extends Container implements Serializable // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport } - public void setDebugGraphicsOptions(int debugOptions) { // Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. @@ -977,6 +901,7 @@ public abstract class JComponent extends Container implements Serializable revalidate(); repaint(); } + public void setBackground(Color bg) { super.setBackground(bg); @@ -1043,16 +968,6 @@ public abstract class JComponent extends Container implements Serializable paint(g); } - - - /****************************************** - * - * - * UI management - * - * - *********/ - public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. |