+2003-10-12 Michael Koch <konqueror@gmx.de>
+
+ * javax/swing/Action.java,
+ javax/swing/BoundedRangeModel.java,
+ javax/swing/CellEditor.java,
+ javax/swing/ComboBoxEditor.java,
+ javax/swing/ComboBoxModel.java,
+ javax/swing/DesktopManager.java,
+ javax/swing/JComboBox.java,
+ javax/swing/ListCellRenderer.java,
+ javax/swing/ListSelectionModel.java,
+ javax/swing/MenuElement.java,
+ javax/swing/MutableComboBoxModel.java,
+ javax/swing/Renderer.java,
+ javax/swing/RootPaneContainer.java,
+ javax/swing/ScrollPaneConstants.java,
+ javax/swing/SingleSelectionModel.java,
+ javax/swing/SpinnerModel.java,
+ javax/swing/SwingConstants.java,
+ javax/swing/UIDefaults.java,
+ javax/swing/WindowConstants.java,
+ javax/swing/border/Border.java,
+ javax/swing/colorchooser/ColorSelectionModel.java:
+ Removed redundant modifiers.
+
2003-10-11 Michael Koch <konqueror@gmx.de>
* javax/transaction/Status.java,
/**
* DEFAULT
*/
- public static final String DEFAULT = "Default";
+ String DEFAULT = "Default";
/**
* LONG_DESCRIPTION
*/
- public static final String LONG_DESCRIPTION = "LongDescription";
+ String LONG_DESCRIPTION = "LongDescription";
/**
* NAME
*/
- public static final String NAME = "Name";
+ String NAME = "Name";
/**
* SHORT_DESCRIPTION
*/
- public static final String SHORT_DESCRIPTION = "ShortDescription";
+ String SHORT_DESCRIPTION = "ShortDescription";
/**
* SMALL_ICON
*/
- public static final String SMALL_ICON = "SmallIcon";
+ String SMALL_ICON = "SmallIcon";
/**
* ACCELERATOR_KEY
*/
- public static final String ACCELERATOR_KEY = "AcceleratorKey";
+ String ACCELERATOR_KEY = "AcceleratorKey";
/**
* ACTION_COMMAND_KEY
*/
- public static final String ACTION_COMMAND_KEY = "ActionCommandKey";
+ String ACTION_COMMAND_KEY = "ActionCommandKey";
/**
* MNEMONIC_KEY
*/
- public static final String MNEMONIC_KEY = "MnemonicKey";
+ String MNEMONIC_KEY = "MnemonicKey";
//-------------------------------------------------------------
* @param key TODO
* @returns TODO
*/
- public Object getValue(String key);
+ Object getValue(String key);
/**
* setValue
* @param key TODO
* @param value TODO
*/
- public void putValue(String key, Object value);
+ void putValue(String key, Object value);
/**
* isEnabled
* @returns TODO
*/
- public boolean isEnabled();
+ boolean isEnabled();
/**
* setEnabled
* @param b TODO
*/
- public void setEnabled(boolean b);
+ void setEnabled(boolean b);
/**
* addPropertyChangeListener
* @param listener TODO
*/
- public void addPropertyChangeListener(PropertyChangeListener listener);
+ void addPropertyChangeListener(PropertyChangeListener listener);
/**
* removePropertyChangeListener
* @param listener TODO
*/
- public void removePropertyChangeListener(PropertyChangeListener listener);
+ void removePropertyChangeListener(PropertyChangeListener listener);
} // Action
* getValue
* @returns int
*/
- public int getValue();
+ int getValue();
/**
* setValue
* @param value TODO
*/
- public void setValue(int value);
+ void setValue(int value);
/**
* getMinimum
* @returns int
*/
- public int getMinimum();
+ int getMinimum();
/**
* setMinimum
* @param minimum TODO
*/
- public void setMinimum(int minimum);
+ void setMinimum(int minimum);
/**
* getMaximum
* @returns int
*/
- public int getMaximum();
+ int getMaximum();
/**
* setMaximum
* @param maximum TODO
*/
- public void setMaximum(int maximum);
+ void setMaximum(int maximum);
/**
* getValueIsAdjusting
* @returns boolean
*/
- public boolean getValueIsAdjusting();
+ boolean getValueIsAdjusting();
/**
* setValueIsAdjusting
* @param adjusting TODO
*/
- public void setValueIsAdjusting(boolean adjusting);
+ void setValueIsAdjusting(boolean adjusting);
/**
* getExtent
* @returns int
*/
- public int getExtent();
+ int getExtent();
/**
* setExtent
* @param extent TODO
*/
- public void setExtent(int extent);
+ void setExtent(int extent);
/**
* setRangeProperties
* @param max TODO
* @param adjusting TODO
*/
- public void setRangeProperties(int value, int extent, int min,
+ void setRangeProperties(int value, int extent, int min,
int max, boolean adjusting);
/**
* addChangeListener
* @param listener TODO
*/
- public void addChangeListener(ChangeListener listener);
+ void addChangeListener(ChangeListener listener);
/**
* removeChangeListener
* @param listener TODO
*/
- public void removeChangeListener(ChangeListener listener);
+ void removeChangeListener(ChangeListener listener);
} // BoundedRangeModel
* getCellEditorValue
* @returns Object
*/
- public Object getCellEditorValue();
+ Object getCellEditorValue();
/**
* isCellEditable
* @param event TODO
* @returns boolean
*/
- public boolean isCellEditable(EventObject event);
+ boolean isCellEditable(EventObject event);
/**
* shouldSelectCell
* @param event TODO
* @returns boolean
*/
- public boolean shouldSelectCell(EventObject event);
+ boolean shouldSelectCell(EventObject event);
/**
* stopCellEditing
* @returns boolean
*/
- public boolean stopCellEditing();
+ boolean stopCellEditing();
/**
* cancelCellEditing
*/
- public void cancelCellEditing();
+ void cancelCellEditing();
/**
* addCellEditorListener
* @param value0 TODO
*/
- public void addCellEditorListener(CellEditorListener listener);
+ void addCellEditorListener(CellEditorListener listener);
/**
* removeCellEditorListener
* @param listener TODO
*/
- public void removeCellEditorListener(CellEditorListener listener);
+ void removeCellEditorListener(CellEditorListener listener);
} // CellEditor
* getEditorComponent
* @returns Component
*/
- public Component getEditorComponent();
+ Component getEditorComponent();
/**
* setItem
* @param item TODO
*/
- public void setItem(Object item);
+ void setItem(Object item);
/**
* getItem
* @returns Object
*/
- public Object getItem();
+ Object getItem();
/**
* selectAll
*/
- public void selectAll();
+ void selectAll();
/**
* addActionListener
* @param listener TODO
*/
- public void addActionListener(ActionListener listener);
+ void addActionListener(ActionListener listener);
/**
* removeActionListener
* @param listener TODO
*/
- public void removeActionListener(ActionListener listener);
+ void removeActionListener(ActionListener listener);
} // ComboBoxEditor
* setSelectedItem
* @param item TODO
*/
- public void setSelectedItem(Object item);
+ void setSelectedItem(Object item);
/**
* getSelectedItem
* @returns Object
*/
- public Object getSelectedItem();
+ Object getSelectedItem();
} // ComboBoxModel
* openFrame
* @param frame TODO
*/
- public void openFrame(JInternalFrame frame);
+ void openFrame(JInternalFrame frame);
/**
* closeFrame
* @param frame TODO
*/
- public void closeFrame(JInternalFrame frame);
+ void closeFrame(JInternalFrame frame);
/**
* maximizeFrame
* @param frame TODO
*/
- public void maximizeFrame(JInternalFrame frame);
+ void maximizeFrame(JInternalFrame frame);
/**
* minimizeFrame
* @param frame TODO
*/
- public void minimizeFrame(JInternalFrame frame);
+ void minimizeFrame(JInternalFrame frame);
/**
* iconifyFrame
* @param frame TODO
*/
- public void iconifyFrame(JInternalFrame frame);
+ void iconifyFrame(JInternalFrame frame);
/**
* deiconifyFrame
* @param frame TODO
*/
- public void deiconifyFrame(JInternalFrame frame);
+ void deiconifyFrame(JInternalFrame frame);
/**
* activateFrame
* @param frame TODO
*/
- public void activateFrame(JInternalFrame vframe);
+ void activateFrame(JInternalFrame vframe);
/**
* deactivateFrame
* @param frame TODO
*/
- public void deactivateFrame(JInternalFrame frame);
+ void deactivateFrame(JInternalFrame frame);
/**
* beginDraggingFrame
* @param frame TODO
*/
- public void beginDraggingFrame(JComponent frame);
+ void beginDraggingFrame(JComponent frame);
/**
* dragFrame
* @param x TODO
* @param y TODO
*/
- public void dragFrame(JComponent frame, int x, int y);
+ void dragFrame(JComponent frame, int x, int y);
/**
* endDraggingFrame
* @param frame TODO
*/
- public void endDraggingFrame(JComponent frame);
+ void endDraggingFrame(JComponent frame);
/**
* beginResizingFrame
* @param frame TODO
* @param direction TODO
*/
- public void beginResizingFrame(JComponent frame, int direction);
+ void beginResizingFrame(JComponent frame, int direction);
/**
* resizeFrame
* @param width TODO
* @param height TODO
*/
- public void resizeFrame(JComponent frame, int x, int y,
+ void resizeFrame(JComponent frame, int x, int y,
int width, int height);
/**
* endResizingFrame
* @param frame TODO
*/
- public void endResizingFrame(JComponent frame);
+ void endResizingFrame(JComponent frame);
/**
* setBoundsForFrame
* @param width TODO
* @param height TODO
*/
- public void setBoundsForFrame(JComponent frame, int x, int y,
+ void setBoundsForFrame(JComponent frame, int x, int y,
int width, int height);
* @param value1 TODO
* @returns int
*/
- public abstract int selectionForKey(char value0, ComboBoxModel value1);
+ int selectionForKey(char value0, ComboBoxModel value1);
} // KeySelectionManager
public interface ListCellRenderer
{
- public Component getListCellRendererComponent(JList list,
+ Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
public interface ListSelectionModel
{
- final static int SINGLE_SELECTION = 0;
- final static int SINGLE_INTERVAL_SELECTION = 1;
- final static int MULTIPLE_INTERVAL_SELECTION = 1;
+ int SINGLE_SELECTION = 0;
+ int SINGLE_INTERVAL_SELECTION = 1;
+ int MULTIPLE_INTERVAL_SELECTION = 1;
void setSelectionMode(int a);
int getSelectionMode();
* @param path TODO
* @param manager TODO
*/
- public void processMouseEvent(MouseEvent event,
+ void processMouseEvent(MouseEvent event,
MenuElement[] path, MenuSelectionManager manager);
/**
* @param path TODO
* @param manager TODO
*/
- public abstract void processKeyEvent(KeyEvent event,
+ void processKeyEvent(KeyEvent event,
MenuElement[] path, MenuSelectionManager manager);
/**
* menuSelectionChanged
* @param included TODO
*/
- public abstract void menuSelectionChanged(boolean included);
+ void menuSelectionChanged(boolean included);
/**
* getSubElements
* @returns MenuElement[]
*/
- public abstract MenuElement[] getSubElements();
+ MenuElement[] getSubElements();
/**
* getComponent
* @returns Component
*/
- public abstract Component getComponent();
+ Component getComponent();
} // MenuElement
* addElement
* @param object TODO
*/
- public void addElement(Object object);
+ void addElement(Object object);
/**
* removeElementAt
* @param index TODO
*/
- public void removeElementAt(int index);
+ void removeElementAt(int index);
/**
* insertElementAt
* @param object TODO
* @param index TODO
*/
- public void insertElementAt(Object object, int index);
+ void insertElementAt(Object object, int index);
/**
* removeElement
* @param object TODO
*/
- public void removeElement(Object object);
+ void removeElement(Object object);
} // MutableComboBoxModel
* @param value TODO
* @param selected TODO
*/
- public void setValue(Object value, boolean selected);
+ void setValue(Object value, boolean selected);
/**
* getComponent
* @returns Component
*/
- public Component getComponent();
+ Component getComponent();
} // Renderer
* getRootPane
* @returns JRootPane
*/
- public JRootPane getRootPane();
+ JRootPane getRootPane();
/**
* setContentPane
* @param contentPane TODO
*/
- public void setContentPane(Container contentPane);
+ void setContentPane(Container contentPane);
/**
* getContentPane
* @returns Container
*/
- public Container getContentPane();
+ Container getContentPane();
/**
* setLayeredPane
* @param layeredPane TODO
*/
- public void setLayeredPane(JLayeredPane layeredPane);
+ void setLayeredPane(JLayeredPane layeredPane);
/**
* getLayeredPane
* @returns JLayeredPane
*/
- public JLayeredPane getLayeredPane();
+ JLayeredPane getLayeredPane();
/**
* setGlassPane
* @param glassPane TODO
*/
- public void setGlassPane(Component glassPane);
+ void setGlassPane(Component glassPane);
/**
* getGlassPane
* @returns Component
*/
- public Component getGlassPane();
+ Component getGlassPane();
} // RootPaneContainer
/**
* VIEWPORT
*/
- public static final String VIEWPORT = "VIEWPORT";
+ String VIEWPORT = "VIEWPORT";
/**
* VERTICAL_SCROLLBAR
*/
- public static final String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
+ String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
/**
* HORIZONTAL_SCROLLBAR
*/
- public static final String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
+ String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
/**
* ROW_HEADER
*/
- public static final String ROW_HEADER = "ROW_HEADER";
+ String ROW_HEADER = "ROW_HEADER";
/**
* COLUMN_HEADER
*/
- public static final String COLUMN_HEADER = "COLUMN_HEADER";
+ String COLUMN_HEADER = "COLUMN_HEADER";
/**
* LOWER_LEFT_CORNER
*/
- public static final String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
+ String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
/**
* LOWER_RIGHT_CORNER
*/
- public static final String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
+ String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
/**
* UPPER_LEFT_CORNER
*/
- public static final String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
+ String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
/**
* UPPER_RIGHT_CORNER
*/
- public static final String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
+ String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
/**
* LOWER_LEADING_CORNER
*/
- public static final String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
+ String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
/**
* LOWER_TRAILING_CORNER
*/
- public static final String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
+ String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
/**
* UPPER_LEADING_CORNER
*/
- public static final String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
+ String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
/**
* UPPER_TRAILING_CORNER
*/
- public static final String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
+ String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
/**
* VERTICAL_SCROLLBAR_POLICY
*/
- public static final String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
+ String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
/**
* HORIZONTAL_SCROLLBAR_POLICY
*/
- public static final String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
+ String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
/**
* VERTICAL_SCROLLBAR_AS_NEEDED
*/
- public static final int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
+ int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
/**
* VERTICAL_SCROLLBAR_NEVER
*/
- public static final int VERTICAL_SCROLLBAR_NEVER = 21;
+ int VERTICAL_SCROLLBAR_NEVER = 21;
/**
* VERTICAL_SCROLLBAR_ALWAYS
*/
- public static final int VERTICAL_SCROLLBAR_ALWAYS = 22;
+ int VERTICAL_SCROLLBAR_ALWAYS = 22;
/**
* HORIZONTAL_SCROLLBAR_AS_NEEDED
*/
- public static final int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
+ int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
/**
* HORIZONTAL_SCROLLBAR_NEVER
*/
- public static final int HORIZONTAL_SCROLLBAR_NEVER = 31;
+ int HORIZONTAL_SCROLLBAR_NEVER = 31;
/**
* HORIZONTAL_SCROLLBAR_ALWAYS
*/
- public static final int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
+ int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
} // ScrollPaneConstants
* getSelectedIndex
* @returns int
*/
- public int getSelectedIndex();
+ int getSelectedIndex();
/**
* setSelectedIndex
* @param index TODO
*/
- public void setSelectedIndex(int index);
+ void setSelectedIndex(int index);
/**
* clearSelection
*/
- public void clearSelection();
+ void clearSelection();
/**
* isSelected
* @returns boolean
*/
- public boolean isSelected();
+ boolean isSelected();
/**
* addChangeListener
* @param listener TODO
*/
- public void addChangeListener(ChangeListener listener);
+ void addChangeListener(ChangeListener listener);
/**
* removeChangeListener
* @param listener TODO
*/
- public void removeChangeListener(ChangeListener listener);
+ void removeChangeListener(ChangeListener listener);
} // SingleSelectionModel
*/
public interface SpinnerModel
{
- public void setValue (Object value);
+ void setValue (Object value);
public Object getValue ();
public Object getNextValue ();
public Object getPreviousValue ();
- public void addChangeListener (ChangeListener listener);
- public void removeChangeListener (ChangeListener listener);
+ void addChangeListener (ChangeListener listener);
+ void removeChangeListener (ChangeListener listener);
}
public interface SwingConstants
{
- public static final int CENTER = 0;
- public static final int TOP = 1;
- public static final int LEFT = 2;
- public static final int BOTTOM = 3;
- public static final int RIGHT = 4;
+ int CENTER = 0;
+ int TOP = 1;
+ int LEFT = 2;
+ int BOTTOM = 3;
+ int RIGHT = 4;
- public static final int NORTH = 1;
- public static final int NORTH_EAST = 2;
- public static final int EAST = 3;
- public static final int SOUTH_EAST = 4;
- public static final int SOUTH = 5;
- public static final int SOUTH_WEST = 6;
- public static final int WEST = 7;
- public static final int NORTH_WEST = 8;
+ int NORTH = 1;
+ int NORTH_EAST = 2;
+ int EAST = 3;
+ int SOUTH_EAST = 4;
+ int SOUTH = 5;
+ int SOUTH_WEST = 6;
+ int WEST = 7;
+ int NORTH_WEST = 8;
- public static final int HORIZONTAL = 0;
- public static final int VERTICAL = 1;
+ int HORIZONTAL = 0;
+ int VERTICAL = 1;
- public static final int LEADING = 10;
- public static final int TRAILING = 11;
+ int LEADING = 10;
+ int TRAILING = 11;
}
*/
public class UIDefaults extends Hashtable
{
- public interface ActiveValue
+ interface ActiveValue
{
Object createValue(UIDefaults table);
} // interface ActiveValue
}
} // class LazyInputMap
- public interface LazyValue
+ interface LazyValue
{
Object createValue(UIDefaults table);
} // interface LazyValue
throw new Error("not implemented");
}
- public void putDefaults(Object[] list)
+ void putDefaults(Object[] list)
{
throw new Error("not implemented");
}
return o instanceof String ? (String) o : null;
}
- public int getInt(Object key)
+ int getInt(Object key)
{
Object o = get(key);
return o instanceof Integer ? ((Integer) o).intValue() : 0;
}
- public int getInt(Object key, Locale l)
+ int getInt(Object key, Locale l)
{
Object o = get(key, l);
return o instanceof Integer ? ((Integer) o).intValue() : 0;
return p;
}
- public void addPropertyChangeListener(PropertyChangeListener l)
+ void addPropertyChangeListener(PropertyChangeListener l)
{
throw new Error("not implemented");
}
- public void removePropertyChangeListener(PropertyChangeListener l)
+ void removePropertyChangeListener(PropertyChangeListener l)
{
throw new Error("not implemented");
}
throw new Error("not implemented");
}
- public void addResourceBundle(String name)
+ void addResourceBundle(String name)
{
throw new Error("not implemented");
}
- public void removeResourceBundle(String name)
+ void removeResourceBundle(String name)
{
throw new Error("not implemented");
}
- public void setDefaultLocale(Locale l)
+ void setDefaultLocale(Locale l)
{
throw new Error("not implemented");
}
/**
* DO_NOTHING_ON_CLOSE
*/
- public static final int DO_NOTHING_ON_CLOSE = 0;
+ int DO_NOTHING_ON_CLOSE = 0;
/**
* HIDE_ON_CLOSE
*/
- public static final int HIDE_ON_CLOSE = 1;
+ int HIDE_ON_CLOSE = 1;
/**
* DISPOSE_ON_CLOSE
*/
- public static final int DISPOSE_ON_CLOSE = 2;
+ int DISPOSE_ON_CLOSE = 2;
/**
* EXIT_ON_CLOSE
*/
- public static final int EXIT_ON_CLOSE =3;
+ int EXIT_ON_CLOSE =3;
} // WindowConstants
/**
- * An interface for decorative or spacing borders around a Component.
+ * An public interface for decorative or spacing borders around a Component.
*
* <p>To reduce memory consumption, several Components may share a
* single Border instance. {@link javax.swing.BorderFactory} is a
* @param width the width of the available area for painting the border.
* @param height the height of the available area for painting the border.
*/
- public void paintBorder(Component c, Graphics g,
+ void paintBorder(Component c, Graphics g,
int x, int y, int width, int height);
* <code>top</code> and <code>bottom</code> fields indicate the
* width of the border at the respective edge.
*/
- public Insets getBorderInsets(Component c);
+ Insets getBorderInsets(Component c);
/**
* <code>false</code> if some pixels of the background
* can shine through the border.
*/
- public boolean isBorderOpaque();
+ boolean isBorderOpaque();
}
* getSelectedColor
* @returns Color
*/
- public abstract Color getSelectedColor();
+ Color getSelectedColor();
/**
* setSelectedColor
* @param color TODO
*/
- public abstract void setSelectedColor(Color color);
+ void setSelectedColor(Color color);
/**
* addChangeListener
* @param listener TODO
*/
- public abstract void addChangeListener(ChangeListener listener);
+ void addChangeListener(ChangeListener listener);
/**
* removeChangeListener
* @param listener TODO
*/
- public abstract void removeChangeListener(ChangeListener listener);
+ void removeChangeListener(ChangeListener listener);
} // ColorSelectionModel