Commit 928366f0 by Michael Koch Committed by Michael Koch

AppletInitializer.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

	* java/beans/AppletInitializer.java,
	java/beans/BeanInfo.java,
	java/beans/Customizer.java,
	java/beans/DesignMode.java,
	java/beans/PropertyEditor.java,
	java/beans/Visibility.java:
	Removed redundant modifiers.

From-SVN: r72349
parent e1a5ed6c
2003-10-11 Michael Koch <konqueror@gmx.de> 2003-10-11 Michael Koch <konqueror@gmx.de>
* java/beans/AppletInitializer.java,
java/beans/BeanInfo.java,
java/beans/Customizer.java,
java/beans/DesignMode.java,
java/beans/PropertyEditor.java,
java/beans/Visibility.java:
Removed redundant modifiers.
2003-10-11 Michael Koch <konqueror@gmx.de>
* java/awt/print/Pageable.java, * java/awt/print/Pageable.java,
* java/awt/print/Printable.java, * java/awt/print/Printable.java,
java/awt/print/PrinterGraphics.java: java/awt/print/PrinterGraphics.java:
......
...@@ -51,11 +51,11 @@ import java.beans.beancontext.BeanContext; ...@@ -51,11 +51,11 @@ import java.beans.beancontext.BeanContext;
public interface AppletInitializer public interface AppletInitializer
{ {
/** Activate the applet. */ /** Activate the applet. */
public void activate (Applet applet); void activate (Applet applet);
/** This method will be called by <code>Beans.instantiate()</code> /** This method will be called by <code>Beans.instantiate()</code>
* to associated the new Applet with its AppletContext, AppletStub, * to associated the new Applet with its AppletContext, AppletStub,
* and Container. * and Container.
*/ */
public void initialize (Applet applet, BeanContext context); void initialize (Applet applet, BeanContext context);
} }
...@@ -74,27 +74,27 @@ package java.beans; ...@@ -74,27 +74,27 @@ package java.beans;
public interface BeanInfo { public interface BeanInfo {
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/ /** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
public static final int ICON_COLOR_16x16 = 1; int ICON_COLOR_16x16 = 1;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/ /** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
public static final int ICON_COLOR_32x32 = 2; int ICON_COLOR_32x32 = 2;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/ /** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
public static final int ICON_MONO_16x16 = 3; int ICON_MONO_16x16 = 3;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/ /** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
public static final int ICON_MONO_32x32 = 4; int ICON_MONO_32x32 = 4;
/** Get the general description of this Bean type. /** Get the general description of this Bean type.
** @return the BeanDescriptor for the Bean, or null if ** @return the BeanDescriptor for the Bean, or null if
** the BeanDescriptor should be obtained by ** the BeanDescriptor should be obtained by
** Introspection. ** Introspection.
**/ **/
public abstract BeanDescriptor getBeanDescriptor(); BeanDescriptor getBeanDescriptor();
/** Get the events this Bean type fires. /** Get the events this Bean type fires.
** @return the EventDescriptors representing events this ** @return the EventDescriptors representing events this
** Bean fires. Returns <CODE>null</CODE> if the ** Bean fires. Returns <CODE>null</CODE> if the
** events are to be acquired by Introspection. ** events are to be acquired by Introspection.
**/ **/
public abstract EventSetDescriptor[] getEventSetDescriptors(); EventSetDescriptor[] getEventSetDescriptors();
/** Get the "default" event, basically the one a RAD tool /** Get the "default" event, basically the one a RAD tool
** user is most likely to select. ** user is most likely to select.
...@@ -102,7 +102,7 @@ public interface BeanInfo { ...@@ -102,7 +102,7 @@ public interface BeanInfo {
** that the user is most likely to use. Returns ** that the user is most likely to use. Returns
** <CODE>-1</CODE> if there is no default event. ** <CODE>-1</CODE> if there is no default event.
**/ **/
public abstract int getDefaultEventIndex(); int getDefaultEventIndex();
/** Get the properties (get/set method pairs) this Bean /** Get the properties (get/set method pairs) this Bean
** type supports. ** type supports.
...@@ -111,7 +111,7 @@ public interface BeanInfo { ...@@ -111,7 +111,7 @@ public interface BeanInfo {
** Returns <CODE>null</CODE> if the properties ** Returns <CODE>null</CODE> if the properties
** are to be obtained by Introspection. ** are to be obtained by Introspection.
**/ **/
public abstract PropertyDescriptor[] getPropertyDescriptors(); PropertyDescriptor[] getPropertyDescriptors();
/** Get the "default" property, basically the one a RAD /** Get the "default" property, basically the one a RAD
** tool user is most likely to select. ** tool user is most likely to select.
...@@ -119,7 +119,7 @@ public interface BeanInfo { ...@@ -119,7 +119,7 @@ public interface BeanInfo {
** that the user is most likely to use. Returns ** that the user is most likely to use. Returns
** <CODE>-1</CODE> if there is no default event. ** <CODE>-1</CODE> if there is no default event.
**/ **/
public abstract int getDefaultPropertyIndex(); int getDefaultPropertyIndex();
/** Get the methods this Bean type supports. /** Get the methods this Bean type supports.
** @return the MethodDescriptors representing the ** @return the MethodDescriptors representing the
...@@ -127,7 +127,7 @@ public interface BeanInfo { ...@@ -127,7 +127,7 @@ public interface BeanInfo {
** <CODE>null</CODE> if the methods are to be ** <CODE>null</CODE> if the methods are to be
** obtained by Introspection. ** obtained by Introspection.
**/ **/
public abstract MethodDescriptor[] getMethodDescriptors(); MethodDescriptor[] getMethodDescriptors();
/** Get additional BeanInfos representing this Bean. /** Get additional BeanInfos representing this Bean.
** In this version of JavaBeans, this method is used so ** In this version of JavaBeans, this method is used so
...@@ -156,7 +156,7 @@ public interface BeanInfo { ...@@ -156,7 +156,7 @@ public interface BeanInfo {
** <CODE>null</CODE> may be returned (see Spec ** <CODE>null</CODE> may be returned (see Spec
** Note, above). ** Note, above).
**/ **/
public abstract BeanInfo[] getAdditionalBeanInfo(); BeanInfo[] getAdditionalBeanInfo();
/** Get a visual icon for this Bean. /** Get a visual icon for this Bean.
** A Bean does not have to support icons, and if it does ** A Bean does not have to support icons, and if it does
...@@ -177,5 +177,5 @@ public interface BeanInfo { ...@@ -177,5 +177,5 @@ public interface BeanInfo {
** @return the icon, or null if that type of icon is ** @return the icon, or null if that type of icon is
** unsupported by this Bean. ** unsupported by this Bean.
**/ **/
public abstract java.awt.Image getIcon(int iconType); java.awt.Image getIcon(int iconType);
} }
...@@ -72,15 +72,15 @@ public interface Customizer { ...@@ -72,15 +72,15 @@ public interface Customizer {
** Customizer. ** Customizer.
** @param bean the Bean to customize. ** @param bean the Bean to customize.
**/ **/
public abstract void setObject(Object bean); void setObject(Object bean);
/** Add a PropertyChangeListener. /** Add a PropertyChangeListener.
** @param l the PropertyChangeListener to add. ** @param l the PropertyChangeListener to add.
**/ **/
public abstract void addPropertyChangeListener(PropertyChangeListener l); void addPropertyChangeListener(PropertyChangeListener l);
/** Remove a PropertyChangeListener. /** Remove a PropertyChangeListener.
** @param l the PropertyChangeListener to remove. ** @param l the PropertyChangeListener to remove.
**/ **/
public abstract void removePropertyChangeListener(PropertyChangeListener l); void removePropertyChangeListener(PropertyChangeListener l);
} }
...@@ -54,7 +54,7 @@ public interface DesignMode { ...@@ -54,7 +54,7 @@ public interface DesignMode {
* Use this name when firing <code>PropertyChangeEvent</code>s from your Bean. * Use this name when firing <code>PropertyChangeEvent</code>s from your Bean.
* @fixme Check whether PROPERTYNAME is set to same value as Sun. * @fixme Check whether PROPERTYNAME is set to same value as Sun.
*/ */
public static final String PROPERTYNAME = "designTime"; String PROPERTYNAME = "designTime";
/** /**
* The environment will call this method on your * The environment will call this method on your
...@@ -82,12 +82,12 @@ public interface DesignMode { ...@@ -82,12 +82,12 @@ public interface DesignMode {
* @see java.beans.beancontext.BeanContext * @see java.beans.beancontext.BeanContext
* @see #PROPERTYNAME * @see #PROPERTYNAME
*/ */
public void setDesignTime(boolean designTime); void setDesignTime(boolean designTime);
/** /**
* This method should tell whether it is design time or runtime. * This method should tell whether it is design time or runtime.
* @return <code>true</code> if design time, <code>false</code> if * @return <code>true</code> if design time, <code>false</code> if
* runtime. * runtime.
*/ */
public boolean isDesignTime(); boolean isDesignTime();
} }
...@@ -114,14 +114,14 @@ public interface PropertyEditor { ...@@ -114,14 +114,14 @@ public interface PropertyEditor {
** wrapper type. ** wrapper type.
** @param value the value to set this property to. ** @param value the value to set this property to.
**/ **/
public abstract void setValue(Object value); void setValue(Object value);
/** Accessor method to get the current value the PropertyEditor is working with. /** Accessor method to get the current value the PropertyEditor is working with.
** If the property type is native, it will be wrapped in the appropriate ** If the property type is native, it will be wrapped in the appropriate
** wrapper type. ** wrapper type.
** @return the current value of the PropertyEditor. ** @return the current value of the PropertyEditor.
**/ **/
public abstract Object getValue(); Object getValue();
/** Set the value of this property using a String. /** Set the value of this property using a String.
...@@ -130,7 +130,7 @@ public interface PropertyEditor { ...@@ -130,7 +130,7 @@ public interface PropertyEditor {
** @param text the text to set it to. ** @param text the text to set it to.
** @exception IllegalArgumentException if the String is in the wrong format or setAsText() is not supported. ** @exception IllegalArgumentException if the String is in the wrong format or setAsText() is not supported.
**/ **/
public abstract void setAsText(String text) throws IllegalArgumentException; void setAsText(String text) throws IllegalArgumentException;
/** Get the value of this property in String format. /** Get the value of this property in String format.
** Many times this can simply use Object.toString().<P> ** Many times this can simply use Object.toString().<P>
...@@ -139,7 +139,7 @@ public interface PropertyEditor { ...@@ -139,7 +139,7 @@ public interface PropertyEditor {
** getAsText() should be able to go into setAsText(). ** getAsText() should be able to go into setAsText().
** @return the value of this property in String format. ** @return the value of this property in String format.
**/ **/
public abstract String getAsText(); String getAsText();
/** Get a list of possible Strings which this property type can have. /** Get a list of possible Strings which this property type can have.
** The value of these will be used by the RAD tool to construct some sort ** The value of these will be used by the RAD tool to construct some sort
...@@ -149,13 +149,13 @@ public interface PropertyEditor { ...@@ -149,13 +149,13 @@ public interface PropertyEditor {
** must check the value in setAsText() anyway. ** must check the value in setAsText() anyway.
** @return the list of possible String values for this property type. ** @return the list of possible String values for this property type.
**/ **/
public abstract String[] getTags(); String[] getTags();
/** The RAD tool calls this to find out whether the PropertyEditor can paint itself. /** The RAD tool calls this to find out whether the PropertyEditor can paint itself.
** @return true if it can paint itself graphically, false if it cannot. ** @return true if it can paint itself graphically, false if it cannot.
**/ **/
public abstract boolean isPaintable(); boolean isPaintable();
/** The RAD tool calls this to paint the actual value of the property. /** The RAD tool calls this to paint the actual value of the property.
** The Graphics context will have the same current font, color, etc. as the ** The Graphics context will have the same current font, color, etc. as the
...@@ -165,13 +165,13 @@ public interface PropertyEditor { ...@@ -165,13 +165,13 @@ public interface PropertyEditor {
** @param g the Graphics context to paint on ** @param g the Graphics context to paint on
** @param bounds the rectangle you have reserved to work in ** @param bounds the rectangle you have reserved to work in
**/ **/
public abstract void paintValue(java.awt.Graphics g, java.awt.Rectangle bounds); void paintValue(java.awt.Graphics g, java.awt.Rectangle bounds);
/** The RAD tool calls this to find out whether the PropertyEditor supports a custom component to edit and display itself. /** The RAD tool calls this to find out whether the PropertyEditor supports a custom component to edit and display itself.
** @return true if getCustomEditor() will return a component, false if not. ** @return true if getCustomEditor() will return a component, false if not.
**/ **/
public abstract boolean supportsCustomEditor(); boolean supportsCustomEditor();
/** The RAD tool calls this to grab the component that can edit this type. /** The RAD tool calls this to grab the component that can edit this type.
** The component may be painted anywhere the RAD tool wants to paint it-- ** The component may be painted anywhere the RAD tool wants to paint it--
...@@ -180,18 +180,18 @@ public interface PropertyEditor { ...@@ -180,18 +180,18 @@ public interface PropertyEditor {
** change to the value is made, fire a PropertyChangeEvent to the source.<P> ** change to the value is made, fire a PropertyChangeEvent to the source.<P>
** @return the custom editor for this property type. ** @return the custom editor for this property type.
**/ **/
public abstract java.awt.Component getCustomEditor(); java.awt.Component getCustomEditor();
/** Adds a property change listener to this PropertyEditor. /** Adds a property change listener to this PropertyEditor.
** @param listener the listener to add ** @param listener the listener to add
**/ **/
public abstract void addPropertyChangeListener(PropertyChangeListener listener); void addPropertyChangeListener(PropertyChangeListener listener);
/** Removes a property change listener from this PropertyEditor. /** Removes a property change listener from this PropertyEditor.
** @param listener the listener to remove ** @param listener the listener to remove
**/ **/
public abstract void removePropertyChangeListener(PropertyChangeListener listener); void removePropertyChangeListener(PropertyChangeListener listener);
/** Get a Java language-specific String which could be used to create an Object /** Get a Java language-specific String which could be used to create an Object
** of the specified type. Every PropertyEditor must support this.<P> ** of the specified type. Every PropertyEditor must support this.<P>
...@@ -205,5 +205,5 @@ public interface PropertyEditor { ...@@ -205,5 +205,5 @@ public interface PropertyEditor {
** </OL> ** </OL>
** @return the initialization string for this object in Java. ** @return the initialization string for this object in Java.
**/ **/
public abstract String getJavaInitializationString(); String getJavaInitializationString();
} }
...@@ -58,21 +58,21 @@ public interface Visibility { ...@@ -58,21 +58,21 @@ public interface Visibility {
* Tells whether the Bean can run without a GUI or not. * Tells whether the Bean can run without a GUI or not.
* @return false if Bean can run without a GUI, else true. * @return false if Bean can run without a GUI, else true.
*/ */
public abstract boolean needsGui(); boolean needsGui();
/** /**
* Tells whether Bean is trying not to use the GUI. * Tells whether Bean is trying not to use the GUI.
* If needsGui() is true, this method should always return false. * If needsGui() is true, this method should always return false.
* @return true if definitely not using GUI, otherwise false. * @return true if definitely not using GUI, otherwise false.
*/ */
public abstract boolean avoidingGui(); boolean avoidingGui();
/** /**
* Tells the Bean not to use GUI methods. * Tells the Bean not to use GUI methods.
* If needsGUI() is false, then after this method is called, * If needsGUI() is false, then after this method is called,
* avoidingGui() should return true. * avoidingGui() should return true.
*/ */
public abstract void dontUseGui(); void dontUseGui();
/** /**
* Tells the Bean it may use the GUI. * Tells the Bean it may use the GUI.
...@@ -81,5 +81,5 @@ public interface Visibility { ...@@ -81,5 +81,5 @@ public interface Visibility {
* false, avoidingGui() may return true or false after this method * false, avoidingGui() may return true or false after this method
* is called. * is called.
*/ */
public abstract void okToUseGui(); void okToUseGui();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment