diff options
Diffstat (limited to 'javax')
39 files changed, 12935 insertions, 20 deletions
diff --git a/javax/swing/AbstractAction.java b/javax/swing/AbstractAction.java index 288395398..fb81c503b 100644 --- a/javax/swing/AbstractAction.java +++ b/javax/swing/AbstractAction.java @@ -1,4 +1,4 @@ -/* AbstractAction.java -- +/* AbstractAction.java -- Copyright (C) 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -37,9 +37,179 @@ exception statement from your version. */ package javax.swing; +// Imports +import java.awt.event.*; +import java.beans.*; +import java.io.*; +import javax.swing.event.*; +import java.util.*; -public abstract -class AbstractAction implements Action, Cloneable, java.io.Serializable -{ - -} +/** + * AbstractAction + * @author Andrew Selkirk + * @version 1.0 + */ +public abstract class AbstractAction implements Action, Cloneable, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * enabled + */ + protected boolean enabled = true; + + /** + * changeSupport + */ + protected SwingPropertyChangeSupport changeSupport = + new SwingPropertyChangeSupport(this); + + /** + * store + */ + private transient HashMap store = new HashMap(); + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AbstractAction + */ + public AbstractAction() { + this(""); // TODO: default name + } // AbstractAction() + + /** + * Constructor AbstractAction + * @param name TODO + */ + public AbstractAction(String name) { + this(name, null); // TODO: default icon?? + } // AbstractAction() + + /** + * Constructor AbstractAction + * @param name TODO + * @param icon TODO + */ + public AbstractAction(String name, Icon icon) { + putValue(NAME, name); + putValue(SMALL_ICON, icon); + } // AbstractAction() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * readObject + * @param stream TODO + * @exception ClassNotFoundException TODO + * @exception IOException TODO + */ + private void readObject(ObjectInputStream stream) + throws ClassNotFoundException, IOException { + // TODO + } // readObject() + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * clone + * @exception CloneNotSupportedException TODO + * @returns Object + */ + protected Object clone() throws CloneNotSupportedException { + // What to do?? + return null; + } // clone() + + /** + * getValue + * @param key TODO + * @returns Object + */ + public Object getValue(String key) { + return store.get(key); + } // getValue() + + /** + * putValue + * @param key TODO + * @param value TODO + */ + public void putValue(String key, Object value) { + store.put(key, value); + } // putValue() + + /** + * isEnabled + * @returns boolean + */ + public boolean isEnabled() { + return enabled; + } // isEnabled() + + /** + * setEnabled + * @param enabled TODO + */ + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } // setEnabled() + + /** + * getKeys + * @returns Object[] + */ + public Object[] getKeys() { + return store.keySet().toArray(); + } // getKeys() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + protected void firePropertyChange(String propertyName, + Object oldValue, Object newValue) { + changeSupport.firePropertyChange(propertyName, oldValue, newValue); + } // firePropertyChange() + + /** + * addPropertyChangeListener + * @param listener TODO + */ + public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { + changeSupport.addPropertyChangeListener(listener); + } // addPropertyChangeListener() + + /** + * removePropertyChangeListener + * @param listener TODO + */ + public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { + changeSupport.removePropertyChangeListener(listener); + } // removePropertyChangeListener() + + /** + * actionPerformed + * @param event TODO + */ + public abstract void actionPerformed(ActionEvent event); + + +} // AbstractAction diff --git a/javax/swing/AbstractButton.java b/javax/swing/AbstractButton.java index c31acd557..b675d808a 100644 --- a/javax/swing/AbstractButton.java +++ b/javax/swing/AbstractButton.java @@ -42,6 +42,8 @@ import java.awt.event.*; import javax.swing.event.*; import javax.swing.plaf.*; +import javax.swing.text.*; +import javax.accessibility.*; import java.util.*; import java.beans.*; @@ -71,6 +73,255 @@ public abstract class AbstractButton extends JComponent public static final String FOCUS_PAINTED_CHANGED_PROPERTY = "focusPainted"; + /** + * AccessibleAbstractButton + */ + protected abstract class AccessibleAbstractButton + extends AccessibleJComponent + implements AccessibleAction, AccessibleValue, AccessibleText { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleAbstractButton + * @param component TODO + */ + protected AccessibleAbstractButton(AbstractButton component) { + super(component); + // TODO + } // AccessibleAbstractButton() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleName + * @returns String + */ + public String getAccessibleName() { + return null; // TODO + } // getAccessibleName() + + /** + * getAccessibleIcon + * @returns AccessibleIcon[] + */ + public AccessibleIcon[] getAccessibleIcon() { + return null; // TODO + } // getAccessibleIcon() + + /** + * getAccessibleRelationSet + * @returns AccessibleRelationSet + */ + public AccessibleRelationSet getAccessibleRelationSet() { + return null; // TODO + } // getAccessibleRelationSet() + + /** + * getAccessibleAction + * @returns AccessibleAction + */ + public AccessibleAction getAccessibleAction() { + return null; // TODO + } // getAccessibleAction() + + /** + * getAccessibleValue + * @returns AccessibleValue + */ + public AccessibleValue getAccessibleValue() { + return null; // TODO + } // getAccessibleValue() + + /** + * getAccessibleActionCount + * @returns int + */ + public int getAccessibleActionCount() { + return 0; // TODO + } // getAccessibleActionCount() + + /** + * getAccessibleActionDescription + * @param value0 TODO + * @returns String + */ + public String getAccessibleActionDescription(int value0) { + return null; // TODO + } // getAccessibleActionDescription() + + /** + * doAccessibleAction + * @param value0 TODO + * @returns boolean + */ + public boolean doAccessibleAction(int value0) { + return false; // TODO + } // doAccessibleAction() + + /** + * getCurrentAccessibleValue + * @returns Number + */ + public Number getCurrentAccessibleValue() { + return null; // TODO + } // getCurrentAccessibleValue() + + /** + * setCurrentAccessibleValue + * @param value0 TODO + * @returns boolean + */ + public boolean setCurrentAccessibleValue(Number value0) { + return false; // TODO + } // setCurrentAccessibleValue() + + /** + * getMinimumAccessibleValue + * @returns Number + */ + public Number getMinimumAccessibleValue() { + return null; // TODO + } // getMinimumAccessibleValue() + + /** + * getMaximumAccessibleValue + * @returns Number + */ + public Number getMaximumAccessibleValue() { + return null; // TODO + } // getMaximumAccessibleValue() + + /** + * getAccessibleText + * @returns AccessibleText + */ + public AccessibleText getAccessibleText() { + return null; // TODO + } // getAccessibleText() + + /** + * getIndexAtPoint + * @param value0 TODO + * @returns int + */ + public int getIndexAtPoint(Point value0) { + return 0; // TODO + } // getIndexAtPoint() + + /** + * getCharacterBounds + * @param value0 TODO + * @returns Rectangle + */ + public Rectangle getCharacterBounds(int value0) { + return null; // TODO + } // getCharacterBounds() + + /** + * getCharCount + * @returns int + */ + public int getCharCount() { + return 0; // TODO + } // getCharCount() + + /** + * getCaretPosition + * @returns int + */ + public int getCaretPosition() { + return 0; // TODO + } // getCaretPosition() + + /** + * getAtIndex + * @param value0 TODO + * @param value1 TODO + * @returns String + */ + public String getAtIndex(int value0, int value1) { + return null; // TODO + } // getAtIndex() + + /** + * getAfterIndex + * @param value0 TODO + * @param value1 TODO + * @returns String + */ + public String getAfterIndex(int value0, int value1) { + return null; // TODO + } // getAfterIndex() + + /** + * getBeforeIndex + * @param value0 TODO + * @param value1 TODO + * @returns String + */ + public String getBeforeIndex(int value0, int value1) { + return null; // TODO + } // getBeforeIndex() + + /** + * getCharacterAttribute + * @param value0 TODO + * @returns AttributeSet + */ + public AttributeSet getCharacterAttribute(int value0) { + return null; // TODO + } // getCharacterAttribute() + + /** + * getSelectionStart + * @returns int + */ + public int getSelectionStart() { + return 0; // TODO + } // getSelectionStart() + + /** + * getSelectionEnd + * @returns int + */ + public int getSelectionEnd() { + return 0; // TODO + } // getSelectionEnd() + + /** + * getSelectedText + * @returns String + */ + public String getSelectedText() { + return null; // TODO + } // getSelectedText() + + /** + * getTextRectangle + * @returns Rectangle + */ + private Rectangle getTextRectangle() { + return null; // TODO + } // getTextRectangle() + + + } // AccessibleAbstractButton + + static private class JFocusListener implements FocusListener { AbstractButton c; diff --git a/javax/swing/AbstractCellEditor.java b/javax/swing/AbstractCellEditor.java new file mode 100644 index 000000000..098aa9901 --- /dev/null +++ b/javax/swing/AbstractCellEditor.java @@ -0,0 +1,153 @@ +/* AbstractCellEditor.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import java.util.*; +import javax.swing.event.*; + +/** + * AbstractCellEditor + * @author Andrew Selkirk + * @version 1.0 + */ +public abstract class AbstractCellEditor implements CellEditor, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * listenerList + */ + protected EventListenerList listenerList; + + /** + * changeEvent + */ + protected transient ChangeEvent changeEvent; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AbstractCellEditor + */ + public AbstractCellEditor() { + // TODO + } // AbstractCellEditor() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * isCellEditable + * @param event TODO + * @returns boolean + */ + public boolean isCellEditable(EventObject event) { + return false; // TODO + } // isCellEditable() + + /** + * shouldSelectCell + * @param event TODO + * @returns boolean + */ + public boolean shouldSelectCell(EventObject event) { + return false; // TODO + } // shouldSelectCell() + + /** + * stopCellEditing + * @returns boolean + */ + public boolean stopCellEditing() { + return false; // TODO + } // stopCellEditing() + + /** + * cancelCellEditing + */ + public void cancelCellEditing() { + // TODO + } // cancelCellEditing() + + /** + * addCellEditorListener + * @param listener TODO + */ + public void addCellEditorListener(CellEditorListener listener) { + // TODO + } // addCellEditorListener() + + /** + * removeCellEditorListener + * @param listener TODO + */ + public void removeCellEditorListener(CellEditorListener listener) { + // TODO + } // removeCellEditorListener() + + /** + * fireEditingStopped + */ + protected void fireEditingStopped() { + // TODO + } // fireEditingStopped() + + /** + * fireEditingCanceled + */ + protected void fireEditingCanceled() { + // TODO + } // fireEditingCanceled() + + /** + * getCellEditorValue + * @returns Object + */ + public abstract Object getCellEditorValue(); + + +} // AbstractCellEditor diff --git a/javax/swing/CellRendererPane.java b/javax/swing/CellRendererPane.java new file mode 100644 index 000000000..c93b919c8 --- /dev/null +++ b/javax/swing/CellRendererPane.java @@ -0,0 +1,215 @@ +/* CellRendererPane.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.accessibility.*; + +/** + * CellRendererPane + * @author Andrew Selkirk + * @version 1.0 + */ +public class CellRendererPane extends Container implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleCellRendererPane + */ + protected class AccessibleCellRendererPane extends AccessibleAWTContainer { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleCellRendererPane + * @param component TODO + */ + protected AccessibleCellRendererPane(CellRendererPane component) { + super(); + // TODO + } // AccessibleCellRendererPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.PANEL; + } // getAccessibleRole() + + + } // AccessibleCellRendererPane + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * accessibleContext + */ + protected AccessibleContext accessibleContext = null; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor CellRendererPane + */ + public CellRendererPane() { + // TODO + } // CellRendererPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * update + * @param graphics TODO + */ + public void update(Graphics graphics) { + // TODO + } // update() + + /** + * invalidate + */ + public void invalidate() { + // TODO + } // invalidate() + + /** + * paint + * @param graphics TODO + */ + public void paint(Graphics graphics) { + // TODO + } // paint() + + /** + * addImpl + * @param c TODO + * @param constraints TODO + * @param index TODO + */ + protected void addImpl(Component c, Object constraints, int index) { + // TODO + } // addImpl() + + /** + * paintComponent + * @param graphics TODO + * @param c TODO + * @param p TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param shouldValidate TODO + */ + public void paintComponent(Graphics graphics, Component c, + Container p, int x, int y, int w, int h, + boolean shouldValidate) { + // TODO + } // paintComponent() + + /** + * paintComponent + * @param graphics TODO + * @param c TODO + * @param p TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void paintComponent(Graphics graphics, Component c, + Container p, int x, int y, int w, int h) { + // TODO + } // paintComponent() + + /** + * paintComponent + * @param graphics TODO + * @param c TODO + * @param p TODO + * @param r TODO + */ + public void paintComponent(Graphics graphics, Component c, + Container p, Rectangle r) { + // TODO + } // paintComponent() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleCellRendererPane(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // CellRendererPane diff --git a/javax/swing/ComponentInputMap.java b/javax/swing/ComponentInputMap.java index 2911c684b..d6183155c 100644 --- a/javax/swing/ComponentInputMap.java +++ b/javax/swing/ComponentInputMap.java @@ -1,4 +1,4 @@ -/* ComponentInputMap.java -- +/* ComponentInputMap.java -- Copyright (C) 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -37,7 +37,79 @@ exception statement from your version. */ package javax.swing; +/** + * ComponentInputMap + * @author Andrew Selkirk + * @version 1.0 + */ +public class ComponentInputMap extends InputMap { -public class ComponentInputMap extends InputMap -{ -} + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * component + */ + private JComponent component; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ComponentInputMap + * @param value0 TODO + */ + public ComponentInputMap(JComponent value0) { + // TODO + } // ComponentInputMap() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * put + * @param keystroke TODO + * @param value TODO + */ + public void put(KeyStroke keystroke, Object value) { + // TODO + } // put() + + /** + * clear + */ + public void clear() { + // TODO + } // clear() + + /** + * remove + * @param keystroke TODO + */ + public void remove(KeyStroke keystroke) { + // TODO + } // remove() + + /** + * setParent + * @param parent TODO + */ + public void setParent(InputMap parent) { + // TODO + } // setParent() + + /** + * getComponent + * @returns JComponent + */ + public JComponent getComponent() { + return null; // TODO + } // getComponent() + + +} // ComponentInputMap diff --git a/javax/swing/DebugGraphics.java b/javax/swing/DebugGraphics.java new file mode 100644 index 000000000..9a4c6592d --- /dev/null +++ b/javax/swing/DebugGraphics.java @@ -0,0 +1,720 @@ +/* DebugGraphics.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.image.*; +import java.io.*; +import java.text.*; + +/** + * DebugGraphics + * @author Andrew Selkirk + * @version 1.0 + */ +public class DebugGraphics extends Graphics { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * graphics + */ + Graphics graphics; + + /** + * buffer + */ + Image buffer; + + /** + * debugOptions + */ + int debugOptions; + + /** + * graphicsID + */ + int graphicsID; + + /** + * xOffset + */ + int xOffset; + + /** + * yOffset + */ + int yOffset; + + /** + * LOG_OPTION + */ + public static final int LOG_OPTION = 1; + + /** + * FLASH_OPTION + */ + public static final int FLASH_OPTION = 2; + + /** + * BUFFERED_OPTION + */ + public static final int BUFFERED_OPTION = 4; + + /** + * NONE_OPTION + */ + public static final int NONE_OPTION = -1; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DebugGraphics + */ + public DebugGraphics() { + // TODO + } // DebugGraphics() + + /** + * Constructor DebugGraphics + * @param graphics TODO + * @param component TODO + */ + public DebugGraphics(Graphics graphics, JComponent component) { + // TODO + } // DebugGraphics() + + /** + * Constructor DebugGraphics + * @param graphics TODO + */ + public DebugGraphics(Graphics graphics) { + // TODO + } // DebugGraphics() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * setColor + * @param value0 TODO + */ + public void setColor(Color color) { + // TODO + } // setColor() + + /** + * create + * @returns Graphics + */ + public Graphics create() { + return null; // TODO + } // create() + + /** + * create + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @returns Graphics + */ + public Graphics create(int valx, int y, int w, int h) { + return null; // TODO + } // create() + + /** + * flashColor + * @returns Color + */ + public static Color flashColor() { + return null; // TODO + } // flashColor() + + /** + * setFlashColor + * @param color TODO + */ + public static void setFlashColor(Color color) { + // TODO + } // setFlashColor() + + /** + * flashTime + * @returns int + */ + public static int flashTime() { + return 0; // TODO + } // flashTime() + + /** + * setFlashTime + * @param time TODO + */ + public static void setFlashTime(int time) { + // TODO + } // setFlashTime() + + /** + * flashCount + * @returns int + */ + public static int flashCount() { + return 0; // TODO + } // flashCount() + + /** + * setFlashCount + * @param count TODO + */ + public static void setFlashCount(int count) { + // TODO + } // setFlashCount() + + /** + * logStream + * @returns PrintStream + */ + public static PrintStream logStream() { + return null; // TODO + } // logStream() + + /** + * setLogStream + * @param stream TODO + */ + public static void setLogStream(PrintStream stream) { + // TODO + } // setLogStream() + + /** + * getFont + * @returns Font + */ + public Font getFont() { + return null; // TODO + } // getFont() + + /** + * setFont + * @param font TODO + */ + public void setFont(Font font) { + // TODO + } // setFont() + + /** + * getColor + * @returns Color + */ + public Color getColor() { + return null; // TODO + } // getColor() + + /** + * getFontMetrics + * @returns FontMetrics + */ + public FontMetrics getFontMetrics() { + return null; // TODO + } // getFontMetrics() + + /** + * getFontMetrics + * @param font TODO + * @returns FontMetrics + */ + public FontMetrics getFontMetrics(Font font) { + return null; // TODO + } // getFontMetrics() + + /** + * translate + * @param x TODO + * @param y TODO + */ + public void translate(int x, int y) { + // TODO + } // translate() + + /** + * setPaintMode + */ + public void setPaintMode() { + // TODO + } // setPaintMode() + + /** + * setXORMode + * @param color TODO + */ + public void setXORMode(Color color) { + // TODO + } // setXORMode() + + /** + * getClipBounds + * @returns Rectangle + */ + public Rectangle getClipBounds() { + return null; // TODO + } // getClipBounds() + + /** + * clipRect + * @param value0 TODO + * @param value1 TODO + * @param value2 TODO + * @param value3 TODO + */ + public void clipRect(int value0, int value1, int value2, int value3) { + // TODO + } // clipRect() + + /** + * setClip + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void setClip(int x, int y, int w, int h) { + // TODO + } // setClip() + + /** + * getClip + * @returns Shape + */ + public Shape getClip() { + return null; // TODO + } // getClip() + + /** + * setClip + * @param shape TODO + */ + public void setClip(Shape shape) { + // TODO + } // setClip() + + /** + * drawRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param valh TODO + */ + public void drawRect(int x, int y, int w, int h) { + // TODO + } // drawRect() + + /** + * fillRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void fillRect(int x, int y, int w, int h) { + // TODO + } // fillRect() + + /** + * clearRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void clearRect(int x, int y, int w, int h) { + // TODO + } // clearRect() + + /** + * drawRoundRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param arcWidth TODO + * @param arcHeight TODO + */ + public void drawRoundRect(int x, int y, int w, int h, + int arcWidth, int arcHeight) { + // TODO + } // drawRoundRect() + + /** + * fillRoundRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param arcWidth TODO + * @param arcHeight TODO + */ + public void fillRoundRect(int x, int y, int w, int h, + int arcWidth, int arcHeight) { + // TODO + } // fillRoundRect() + + /** + * drawLine + * @param x1 TODO + * @param y1 TODO + * @param x2 TODO + * @param y2 TODO + */ + public void drawLine(int x1, int y1, int x2, int y2) { + // TODO + } // drawLine() + + /** + * draw3DRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param raised TODO + */ + public void draw3DRect(int x, int y, int w, int h, boolean raised) { + // TODO + } // draw3DRect() + + /** + * fill3DRect + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param raised TODO + */ + public void fill3DRect(int x, int y, int w, int h, boolean raised) { + // TODO + } // fill3DRect() + + /** + * drawOval + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void drawOval(int x, int y, int w, int h) { + // TODO + } // drawOval() + + /** + * fillOval + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void fillOval(int x, int y, int w, int h) { + // TODO + } // fillOval() + + /** + * drawArc + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param startAngle TODO + * @param arcAngle TODO + */ + public void drawArc(int x, int y, int w, int h, + int startAngle, int arcAngle) { + // TODO + } // drawArc() + + /** + * fillArc + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param startAngle TODO + * @param arcAngle TODO + */ + public void fillArc(int x, int y, int w, int h, + int startAngle, int arcAngle) { + // TODO + } // fillArc() + + /** + * drawPolyline + * @param xpoints TODO + * @param ypoints TODO + * @param npoints TODO + */ + public void drawPolyline(int[] xpoints, int[] ypoints, int npoints) { + // TODO + } // drawPolyline() + + /** + * drawPolygon + * @param xpoints TODO + * @param ypoints TODO + * @param npoints TODO + */ + public void drawPolygon(int[] xpoints, int[] ypoints, int npoints) { + // TODO + } // drawPolygon() + + /** + * fillPolygon + * @param xpoints TODO + * @param ypoints TODO + * @param npoints TODO + */ + public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) { + // TODO + } // fillPolygon() + + /** + * drawString + * @param string TODO + * @param x TODO + * @param y TODO + */ + public void drawString(String string, int s, int y) { + // TODO + } // drawString() + + /** + * drawString + * @param iterator TODO + * @param x TODO + * @param y TODO + */ + public void drawString(AttributedCharacterIterator iterator, + int x, int y) { + // TODO + } // drawString() + + /** + * drawBytes + * @param data TODO + * @param offset TODO + * @param length TODO + * @param x TODO + * @param y TODO + */ + public void drawBytes(byte[] data, int offset, int length, + int x, int y) { + // TODO + } // drawBytes() + + /** + * drawChars + * @param data TODO + * @param offset TODO + * @param length TODO + * @param value3 TODO + * @param value4 TODO + */ + public void drawChars(char[] data, int offset, int value2, + int x, int y) { + // TODO + } // drawChars() + + /** + * drawImage + * @param image TODO + * @param x TODO + * @param y TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int x, int y, + ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * drawImage + * @param image TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int x, int y, int w, + int h, ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * drawImage + * @param image TODO + * @param x TODO + * @param y TODO + * @param background TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int x, int y, + Color background, ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * drawImage + * @param image TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param background TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int x, int y, int w, int h, + Color background, ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * drawImage + * @param image TODO + * @param dx1 TODO + * @param dy1 TODO + * @param dx2 TODO + * @param dy2 TODO + * @param sx1 TODO + * @param sy1 TODO + * @param sx2 TODO + * @param sy2 TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int dx1, int dy1, + int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, + ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * drawImage + * @param image TODO + * @param dx1 TODO + * @param dy1 TODO + * @param dx2 TODO + * @param dy2 TODO + * @param sx1 TODO + * @param sy1 TODO + * @param sx2 TODO + * @param sy2 TODO + * @param background TODO + * @param observer TODO + * @returns boolean + */ + public boolean drawImage(Image image, int dx1, int dy1, + int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, + Color background, ImageObserver observer) { + return false; // TODO + } // drawImage() + + /** + * copyArea + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + * @param destx TODO + * @param desty TODO + */ + public void copyArea(int x, int y, int w, int h, + int destx, int desty) { + // TODO + } // copyArea() + + /** + * dispose + */ + public void dispose() { + // TODO + } // dispose() + + /** + * isDrawingBuffer + * @returns boolean + */ + public boolean isDrawingBuffer() { + return false; // TODO + } // isDrawingBuffer() + + /** + * toShortString + * @returns String + */ + String toShortString() { + return null; // TODO + } // toShortString() + + /** + * setDebugOptions + * @param options TODO + */ + public void setDebugOptions(int options) { + // TODO + } // setDebugOptions() + + /** + * getDebugOptions + * @returns int + */ + public int getDebugOptions() { + return 0; // TODO + } // getDebugOptions() + + +} // DebugGraphics diff --git a/javax/swing/DefaultCellEditor.java b/javax/swing/DefaultCellEditor.java new file mode 100644 index 000000000..3f9442e08 --- /dev/null +++ b/javax/swing/DefaultCellEditor.java @@ -0,0 +1,319 @@ +/* DefaultCellEditor.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.io.*; +import java.util.*; +import javax.swing.table.*; +import javax.swing.tree.*; + +/** + * DefaultCellEditor + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * EditorDelegate + */ + protected class EditorDelegate implements ActionListener, + ItemListener, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * value + */ + protected Object value; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor EditorDelegate + * @param value0 TODO + */ + protected EditorDelegate(DefaultCellEditor editor) { + // TODO + } // EditorDelegate() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * setValue + * @param event TODO + */ + public void setValue(Object event) { + // TODO + } // setValue() + + /** + * getCellEditorValue + * @returns Object + */ + public Object getCellEditorValue() { + return null; // TODO + } // getCellEditorValue() + + /** + * isCellEditable + * @param event TODO + * @returns boolean + */ + public boolean isCellEditable(EventObject event) { + return false; // TODO + } // isCellEditable() + + /** + * shouldSelectCell + * @param event TODO + * @returns boolean + */ + public boolean shouldSelectCell(EventObject event) { + return false; // TODO + } // shouldSelectCell() + + /** + * stopCellEditing + * @returns boolean + */ + public boolean stopCellEditing() { + return false; // TODO + } // stopCellEditing() + + /** + * cancelCellEditing + */ + public void cancelCellEditing() { + // TODO + } // cancelCellEditing() + + /** + * startCellEditing + * @param event TODO + * @returns boolean + */ + public boolean startCellEditing(EventObject event) { + return false; // TODO + } // startCellEditing() + + /** + * actionPerformed + * @param event TODO + */ + public void actionPerformed(ActionEvent event) { + // TODO + } // actionPerformed() + + /** + * itemStateChanged + * @param event TODO + */ + public void itemStateChanged(ItemEvent event) { + // TODO + } // itemStateChanged() + + + } // EditorDelegate + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * editorComponent + */ + protected JComponent editorComponent; + + /** + * delegate + */ + protected EditorDelegate delegate; + + /** + * clickCountToStart + */ + protected int clickCountToStart; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultCellEditor + * @param textfield TODO + */ + public DefaultCellEditor(JTextField textfield) { + // TODO + } // DefaultCellEditor() + + /** + * Constructor DefaultCellEditor + * @param checkbox TODO + */ + public DefaultCellEditor(JCheckBox checkbox) { + // TODO + } // DefaultCellEditor() + + /** + * Constructor DefaultCellEditor + * @param combobox TODO + */ + public DefaultCellEditor(JComboBox combobox) { + // TODO + } // DefaultCellEditor() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getComponent + * @returns Component + */ + public Component getComponent() { + return null; // TODO + } // getComponent() + + /** + * getClickCountToStart + * @returns int + */ + public int getClickCountToStart() { + return 0; // TODO + } // getClickCountToStart() + + /** + * setClickCountToStart + * @param count TODO + */ + public void setClickCountToStart(int count) { + // TODO + } // setClickCountToStart() + + /** + * getCellEditorValue + * @returns Object + */ + public Object getCellEditorValue() { + return null; // TODO + } // getCellEditorValue() + + /** + * isCellEditable + * @param event TODO + * @returns boolean + */ + public boolean isCellEditable(EventObject event) { + return false; // TODO + } // isCellEditable() + + /** + * shouldSelectCell + * @param event TODO + * @returns boolean + */ + public boolean shouldSelectCell(EventObject event) { + return false; // TODO + } // shouldSelectCell() + + /** + * stopCellEditing + * @returns boolean + */ + public boolean stopCellEditing() { + return false; // TODO + } // stopCellEditing() + + /** + * cancelCellEditing + */ + public void cancelCellEditing() { + // TODO + } // cancelCellEditing() + + /** + * getTreeCellEditorComponent + * @param tree TODO + * @param value TODO + * @param isSelected TODO + * @param expanded TODO + * @param leaf TODO + * @param row TODO + * @returns Component + */ + public Component getTreeCellEditorComponent(JTree tree, + Object value, boolean isSelected, boolean expanded, + boolean leaf, int row) { + return null; // TODO + } // getTreeCellEditorComponent() + + /** + * getTableCellEditorComponent + * @param tree TODO + * @param value TODO + * @param isSelected TODO + * @param row TODO + * @param column TODO + * @returns Component + */ + public Component getTableCellEditorComponent(JTable tree, + Object value, boolean isSelected, int row, int column) { + return null; // TODO + } // getTableCellEditorComponent() + + +} // DefaultCellEditor diff --git a/javax/swing/DefaultComboBoxModel.java b/javax/swing/DefaultComboBoxModel.java new file mode 100644 index 000000000..2ceb15a65 --- /dev/null +++ b/javax/swing/DefaultComboBoxModel.java @@ -0,0 +1,182 @@ +/* DefaultComboBoxModel.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import java.util.*; + +/** + * DefaultComboBoxModel + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultComboBoxModel extends AbstractListModel + implements MutableComboBoxModel, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * list + */ + private Vector list; + + /** + * selectedItem + */ + private Object selectedItem; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultComboBoxModel + */ + public DefaultComboBoxModel() { + // TODO + } // DefaultComboBoxModel() + + /** + * Constructor DefaultComboBoxModel + * @param items TODO + */ + public DefaultComboBoxModel(Object[] items) { + // TODO + } // DefaultComboBoxModel() + + /** + * Constructor DefaultComboBoxModel + * @param vector TODO + */ + public DefaultComboBoxModel(Vector vector) { + // TODO + } // DefaultComboBoxModel() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * addElement + * @param object TODO + */ + public void addElement(Object object) { + // TODO + } // addElement() + + /** + * removeElementAt + * @param index TODO + */ + public void removeElementAt(int index) { + // TODO + } // removeElementAt() + + /** + * insertElementAt + * @param object TODO + * @param index TODO + */ + public void insertElementAt(Object object, int index) { + // TODO + } // insertElementAt() + + /** + * removeElement + * @param object TODO + */ + public void removeElement(Object object) { + // TODO + } // removeElement() + + /** + * removeAllElements + */ + public void removeAllElements() { + // TODO + } // removeAllElements() + + /** + * getSize + * @returns int + */ + public int getSize() { + return 0; // TODO + } // getSize() + + /** + * setSelectedItem + * @param object TODO + */ + public void setSelectedItem(Object object) { + // TODO + } // setSelectedItem() + + /** + * getSelectedItem + * @returns Object + */ + public Object getSelectedItem() { + return null; // TODO + } // getSelectedItem() + + /** + * getElementAt + * @param index TODO + * @returns Object + */ + public Object getElementAt(int index) { + return null; // TODO + } // getElementAt() + + /** + * getIndexOf + * @param object TODO + * @returns int + */ + public int getIndexOf(Object object) { + return 0; // TODO + } // getIndexOf() + + +} // DefaultComboBoxModel diff --git a/javax/swing/DefaultDesktopManager.java b/javax/swing/DefaultDesktopManager.java new file mode 100644 index 000000000..5581e580c --- /dev/null +++ b/javax/swing/DefaultDesktopManager.java @@ -0,0 +1,284 @@ +/* DefaultDesktopManager.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; + +/** + * DefaultDesktopManager + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultDesktopManager implements DesktopManager, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * HAS_BEEN_ICONIFIED_PROPERTY + */ + static final String HAS_BEEN_ICONIFIED_PROPERTY = ""; // TODO + + /** + * DEFAULT_DRAG_MODE + */ + static final int DEFAULT_DRAG_MODE = 0; // TODO + + /** + * OUTLINE_DRAG_MODE + */ + static final int OUTLINE_DRAG_MODE = 0; // TODO + + /** + * FASTER_DRAG_MODE + */ + static final int FASTER_DRAG_MODE = 0; // TODO + + /** + * dragMode + */ + int dragMode; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultDesktopManager + */ + public DefaultDesktopManager() { + // TODO + } // DefaultDesktopManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * openFrame + * @param frame TODO + */ + public void openFrame(JInternalFrame frame) { + // TODO + } // openFrame() + + /** + * closeFrame + * @param frame TODO + */ + public void closeFrame(JInternalFrame frame) { + // TODO + } // closeFrame() + + /** + * maximizeFrame + * @param frame TODO + */ + public void maximizeFrame(JInternalFrame frame) { + // TODO + } // maximizeFrame() + + /** + * minimizeFrame + * @param frame TODO + */ + public void minimizeFrame(JInternalFrame frame) { + // TODO + } // minimizeFrame() + + /** + * iconifyFrame + * @param frame TODO + */ + public void iconifyFrame(JInternalFrame frame) { + // TODO + } // iconifyFrame() + + /** + * deiconifyFrame + * @param frame TODO + */ + public void deiconifyFrame(JInternalFrame frame) { + // TODO + } // deiconifyFrame() + + /** + * activateFrame + * @param frame TODO + */ + public void activateFrame(JInternalFrame frame) { + // TODO + } // activateFrame() + + /** + * deactivateFrame + * @param frame TODO + */ + public void deactivateFrame(JInternalFrame frame) { + // TODO + } // deactivateFrame() + + /** + * beginDraggingFrame + * @param component TODO + */ + public void beginDraggingFrame(JComponent component) { + // TODO + } // beginDraggingFrame() + + /** + * dragFrame + * @param component TODO + * @param newX TODO + * @param newY TODO + */ + public void dragFrame(JComponent component, int newX, int newY) { + // TODO + } // dragFrame() + + /** + * endDraggingFrame + * @param component TODO + */ + public void endDraggingFrame(JComponent component) { + // TODO + } // endDraggingFrame() + + /** + * beginResizingFrame + * @param component TODO + * @param direction TODO + */ + public void beginResizingFrame(JComponent component, int direction) { + // TODO + } // beginResizingFrame() + + /** + * resizeFrame + * @param component TODO + * @param newX TODO + * @param newY TODO + * @param newWidth TODO + * @param newHeight TODO + */ + public void resizeFrame(JComponent component, int newX, int newY, + int newWidth, int newHeight) { + // TODO + } // resizeFrame() + + /** + * endResizingFrame + * @param component TODO + */ + public void endResizingFrame(JComponent component) { + // TODO + } // endResizingFrame() + + /** + * setBoundsForFrame + * @param component TODO + * @param newX TODO + * @param newY TODO + * @param newWidth TODO + * @param newHeight TODO + */ + public void setBoundsForFrame(JComponent component, int newX, + int newY, int newWidth, int newHeight) { + // TODO + } // setBoundsForFrame() + + /** + * removeIconFor + * @param frame TODO + */ + protected void removeIconFor(JInternalFrame frame) { + // TODO + } // removeIconFor() + + /** + * getBoundsForIconOf + * @param frame TODO + * @returns Rectangle + */ + protected Rectangle getBoundsForIconOf(JInternalFrame frame) { + return null; // TODO + } // getBoundsForIconOf() + + /** + * setPreviousBounds + * @param frame TODO + * @param rect TODO + */ + protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { + // TODO + } // setPreviousBounds() + + /** + * getPreviousBounds + * @param frame TODO + * @returns Rectangle + */ + protected Rectangle getPreviousBounds(JInternalFrame frame) { + return null; // TODO + } // getPreviousBounds() + + /** + * setWasIcon + * @param frame TODO + * @param value TODO + */ + protected void setWasIcon(JInternalFrame frame, Boolean value) { + // TODO + } // setWasIcon() + + /** + * wasIcon + * @param frame TODO + * @returns boolean + */ + protected boolean wasIcon(JInternalFrame frame) { + return false; // TODO + } // wasIcon() + + +} // DefaultDesktopManager diff --git a/javax/swing/DefaultFocusManager.java b/javax/swing/DefaultFocusManager.java new file mode 100644 index 000000000..c2c5d610c --- /dev/null +++ b/javax/swing/DefaultFocusManager.java @@ -0,0 +1,155 @@ +/* DefaultFocusManager.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.util.*; + +/** + * DefaultFocusManager + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultFocusManager extends FocusManager { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * historyStack + */ + private Stack historyStack; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultFocusManager + */ + public DefaultFocusManager() { + // TODO + } // DefaultFocusManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * processKeyEvent + * @param component TODO + * @param event TODO + */ + public void processKeyEvent(Component component, KeyEvent event) { + // TODO + } // processKeyEvent() + + /** + * focusNextComponent + * @param component TODO + */ + public void focusNextComponent(Component component) { + // TODO + } // focusNextComponent() + + /** + * focusPreviousComponent + * @param component TODO + */ + public void focusPreviousComponent(Component component) { + // TODO + } // focusPreviousComponent() + + /** + * getFirstComponent + * @param container TODO + * @returns Component + */ + public Component getFirstComponent(Container container) { + return null; // TODO + } // getFirstComponent() + + /** + * getLastComponent + * @param container TODO + * @returns Component + */ + public Component getLastComponent(Container container) { + return null; // TODO + } // getLastComponent() + + /** + * getComponentBefore + * @param container TODO + * @param component TODO + * @returns Component + */ + public Component getComponentBefore(Container container, + Component component) { + return null; // TODO + } // getComponentBefore() + + /** + * getComponentAfter + * @param container TODO + * @param component TODO + * @returns Component + */ + public Component getComponentAfter(Container container, + Component component) { + return null; // TODO + } // getComponentAfter() + + /** + * compareTabOrder + * @param component1 TODO + * @param component2 TODO + * @returns boolean + */ + public boolean compareTabOrder(Component component1, + Component component2) { + return false; // TODO + } // compareTabOrder() + + +} // DefaultFocusManager diff --git a/javax/swing/DefaultListCellRenderer.java b/javax/swing/DefaultListCellRenderer.java new file mode 100644 index 000000000..c6f8809e7 --- /dev/null +++ b/javax/swing/DefaultListCellRenderer.java @@ -0,0 +1,253 @@ +/* DefaultListCellRenderer.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.swing.border.*; +import javax.swing.plaf.*; + +/** + * DefaultListCellRenderer + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultListCellRenderer extends JLabel + implements ListCellRenderer, Serializable { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * UIResource + */ + public static class UIResource extends DefaultListCellRenderer + implements javax.swing.plaf.UIResource { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor UIResource + */ + public UIResource() { + // TODO + } // UIResource() + + + } // UIResource + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * noFocusBorder + */ + protected static Border noFocusBorder = null; // TODO + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultListCellRenderer + */ + public DefaultListCellRenderer() { + // TODO + } // DefaultListCellRenderer() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getListCellRendererComponent + * @param list TODO + * @param value TODO + * @param index TODO + * @param isSelected TODO + * @param cellHasFocus TODO + * @returns Component + */ + public Component getListCellRendererComponent(JList list, + Object value, int index, boolean isSelected, boolean cellHasFocus) { + return null; // TODO + } // getListCellRendererComponent() + + /** + * validate + */ + public void validate() { + // TODO + } // validate() + + /** + * revalidate + */ + public void revalidate() { + // TODO + } // revalidate() + + /** + * repaint + * @param tm TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public void repaint(long tm, int x, int y, int w, int h) { + // TODO + } // repaint() + + /** + * repaint + * @param rect TODO + */ + public void repaint(Rectangle rect) { + // TODO + } // repaint() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + protected void firePropertyChange(String propertyName, + Object oldValue, Object newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + byte oldValue, byte newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + char oldValue, char newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + short oldValue, short newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + int oldValue, int newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + long oldValue, long newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + float oldValue, float newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + double oldValue, double newValue) { + // TODO + } // firePropertyChange() + + /** + * firePropertyChange + * @param propertyName TODO + * @param oldValue TODO + * @param newValue TODO + */ + public void firePropertyChange(String propertyName, + boolean oldValue, boolean newValue) { + // TODO + } // firePropertyChange() + + +} // DefaultListCellRenderer diff --git a/javax/swing/DefaultSingleSelectionModel.java b/javax/swing/DefaultSingleSelectionModel.java new file mode 100644 index 000000000..50a35d9d9 --- /dev/null +++ b/javax/swing/DefaultSingleSelectionModel.java @@ -0,0 +1,179 @@ +/* DefaultSingleSelectionModel.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import java.util.*; +import javax.swing.event.*; + +/** + * DefaultSingleSelectionModel + * @author Andrew Selkirk + * @version 1.0 + */ +public class DefaultSingleSelectionModel implements + SingleSelectionModel, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * changeEvent + */ + protected transient ChangeEvent changeEvent = new ChangeEvent(this); + + /** + * listenerList + */ + protected EventListenerList listenerList= new EventListenerList(); + + /** + * index + */ + private int index = -1; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DefaultSingleSelectionModel + */ + public DefaultSingleSelectionModel() { + // TODO + } // DefaultSingleSelectionModel() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getSelectedIndex + * @returns int + */ + public int getSelectedIndex() { + return index; + } // getSelectedIndex() + + /** + * setSelectedIndex + * @param index TODO + */ + public void setSelectedIndex(int index) { + + // Set Data + this.index = index; + + // Notify Listeners + fireStateChanged(); + + } // setSelectedIndex() + + /** + * clearSelection + */ + public void clearSelection() { + + // Set Data + index = -1; + + // Notify Listeners + fireStateChanged(); + + } // clearSelection() + + /** + * isSelected + * @returns boolean + */ + public boolean isSelected() { + return (index == -1); + } // isSelected() + + /** + * addChangeListener + * @param listener TODO + */ + public void addChangeListener(ChangeListener listener) { + listenerList.add(ChangeListener.class, listener); + } // addChangeListener() + + /** + * removeChangeListener + * @param listener TODO + */ + public void removeChangeListener(ChangeListener listener) { + listenerList.remove(ChangeListener.class, listener); + } // removeChangeListener() + + /** + * fireStateChanged + */ + protected void fireStateChanged() { + + // Variables + ChangeListener listener; + EventListener[] listeners; + int index; + + // Get Listeners + listeners = listenerList.getListeners(ChangeListener.class); + + // Process Listeners + for (index = 0; index < listeners.length; index++) { + listener = (ChangeListener) listeners[index]; + listener.stateChanged(changeEvent); + } // for + + } // fireStateChanged() + + /** + * getListeners + * @param listenerClass TODO + * @returns EventListener[] + */ + public EventListener[] getListeners(Class listenerClass) { + return listenerList.getListeners(listenerClass); + } // getListeners() + + +} // DefaultSingleSelectionModel diff --git a/javax/swing/FocusManager.java b/javax/swing/FocusManager.java new file mode 100644 index 000000000..c770bd024 --- /dev/null +++ b/javax/swing/FocusManager.java @@ -0,0 +1,182 @@ +/* FocusManager.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; + +/** + * FocusManager + * @author Andrew Selkirk + * @version 1.0 + */ +public abstract class FocusManager { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * DisabledFocusManager + */ + static class DisabledFocusManager extends FocusManager { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor DisabledFocusManager + */ + DisabledFocusManager() { + // TODO + } // DisabledFocusManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * processKeyEvent + * @param component TODO + * @param event TODO + */ + public void processKeyEvent(Component component, KeyEvent event) { + // TODO + } // processKeyEvent() + + /** + * focusNextComponent + * @param component TODO + */ + public void focusNextComponent(Component component) { + // TODO + } // focusNextComponent() + + /** + * focusPreviousComponent + * @param value0 TODO + */ + public void focusPreviousComponent(Component value0) { + // TODO + } // focusPreviousComponent() + + + } // DisabledFocusManager + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * FOCUS_MANAGER_CLASS_PROPERTY + */ + public static final String FOCUS_MANAGER_CLASS_PROPERTY = "FocusManagerClassName"; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor FocusManager + */ + public FocusManager() { + // TODO + } // FocusManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getCurrentManager + * @returns FocusManager + */ + public static FocusManager getCurrentManager() { + return null; // TODO + } // getCurrentManager() + + /** + * setCurrentManager + * @param manager TODO + */ + public static void setCurrentManager(FocusManager manager) { + // TODO + } // setCurrentManager() + + /** + * disableSwingFocusManager + */ + public static void disableSwingFocusManager() { + // TODO + } // disableSwingFocusManager() + + /** + * isFocusManagerEnabled + * @returns boolean + */ + public static boolean isFocusManagerEnabled() { + return false; // TODO + } // isFocusManagerEnabled() + + /** + * processKeyEvent + * @param component TODO + * @param event TODO + */ + public abstract void processKeyEvent(Component component, KeyEvent event); + + /** + * focusNextComponent + * @param component TODO + */ + public abstract void focusNextComponent(Component component); + + /** + * focusPreviousComponent + * @param component TODO + */ + public abstract void focusPreviousComponent(Component component); + + +} // FocusManager diff --git a/javax/swing/JCheckBoxMenuItem.java b/javax/swing/JCheckBoxMenuItem.java new file mode 100644 index 000000000..ac3b6600c --- /dev/null +++ b/javax/swing/JCheckBoxMenuItem.java @@ -0,0 +1,241 @@ +/* JCheckBoxMenuItem.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import javax.accessibility.*; + +/** + * JCheckBoxMenuItem + * @author Andrew Selkirk + * @version 1.0 + */ +public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJCheckBoxMenuItem + */ + protected class AccessibleJCheckBoxMenuItem extends AccessibleJMenuItem { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJCheckBoxMenuItem + * @param component TODO + */ + protected AccessibleJCheckBoxMenuItem(JCheckBoxMenuItem component) { + super(component); + // TODO + } // AccessibleJCheckBoxMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.CHECK_BOX; + } // getAccessibleRole() + + + } // AccessibleJCheckBoxMenuItem + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "CheckBoxMenuItemUI"; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JCheckBoxMenuItem + */ + public JCheckBoxMenuItem() { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param icon TODO + */ + public JCheckBoxMenuItem(Icon icon) { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param text TODO + */ + public JCheckBoxMenuItem(String text) { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param action TODO + */ + public JCheckBoxMenuItem(Action action) { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param text TODO + * @param icon TODO + */ + public JCheckBoxMenuItem(String text, Icon icon) { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param text TODO + * @param state TODO + */ + public JCheckBoxMenuItem(String text, boolean state) { + // TODO + } // JCheckBoxMenuItem() + + /** + * Constructor JCheckBoxMenuItem + * @param text TODO + * @param icon TODO + * @param state TODO + */ + public JCheckBoxMenuItem(String text, Icon icon, boolean state) { + // TODO + } // JCheckBoxMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getState + * @returns boolean + */ + public boolean getState() { + return false; // TODO + } // getState() + + /** + * setState + * @param state TODO + */ + public synchronized void setState(boolean state) { + // TODO + } // setState() + + /** + * getSelectedObjects + * @returns Object[] + */ + public Object[] getSelectedObjects() { + return null; // TODO + } // getSelectedObjects() + + /** + * requestFocus + */ + public void requestFocus() { + // TODO + } // requestFocus() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJCheckBoxMenuItem(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JCheckBoxMenuItem diff --git a/javax/swing/JColorChooser.java b/javax/swing/JColorChooser.java new file mode 100644 index 000000000..c9c22f18c --- /dev/null +++ b/javax/swing/JColorChooser.java @@ -0,0 +1,365 @@ +/* JColorChooser.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.colorchooser.*; +import javax.swing.plaf.*; + +/** + * JColorChooser + * @author Andrew Selkirk + * @version 1.0 + */ +public class JColorChooser extends JComponent implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJColorChooser + */ + protected class AccessibleJColorChooser extends JComponent.AccessibleJComponent { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJColorChooser + * @param component TODO + */ + protected AccessibleJColorChooser(JColorChooser component) { + super(component); + // TODO + } // AccessibleJColorChooser() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.COLOR_CHOOSER; + } // getAccessibleRole() + + + } // AccessibleJColorChooser + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "ColorChooserUI"; + + /** + * selectionModel + */ + private ColorSelectionModel selectionModel; + + /** + * previewPanel + */ + private JComponent previewPanel; + + /** + * chooserPanels + */ + private AbstractColorChooserPanel[] chooserPanels; + + /** + * SELECTION_MODEL_PROPERTY + */ + public static final String SELECTION_MODEL_PROPERTY = "selectionModel"; + + /** + * PREVIEW_PANEL_PROPERTY + */ + public static final String PREVIEW_PANEL_PROPERTY = "previewPanel"; + + /** + * CHOOSER_PANELS_PROPERTY + */ + public static final String CHOOSER_PANELS_PROPERTY = "chooserPanels"; + + /** + * accessibleContext + */ + protected AccessibleContext accessibleContext; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JColorChooser + */ + public JColorChooser() { + // TODO + } // JColorChooser() + + /** + * Constructor JColorChooser + * @param initial TODO + */ + public JColorChooser(Color initial) { + // TODO + } // JColorChooser() + + /** + * Constructor JColorChooser + * @param model TODO + */ + public JColorChooser(ColorSelectionModel model) { + // TODO + } // JColorChooser() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * setColor + * @param color TODO + */ + public void setColor(Color color) { + // TODO + } // setColor() + + /** + * setColor + * @param r TODO + * @param g TODO + * @param b TODO + */ + public void setColor(int r, int g, int b) { + // TODO + } // setColor() + + /** + * setColor + * @param color TODO + */ + public void setColor(int color) { + // TODO + } // setColor() + + /** + * showDialog + * @param component TODO + * @param title TODO + * @param initial TODO + * @returns Color + */ + public static Color showDialog(Component component, String title, + Color initial) { + return null; // TODO + } // showDialog() + + /** + * createDialog + * @param component TODO + * @param title TODO + * @param modal TODO + * @param chooserPane TODO + * @param okListener TODO + * @param cancelListener TODO + * @returns JDialog + */ + public static JDialog createDialog(Component component, String title, + boolean modal, JColorChooser chooserPane, + ActionListener okListener, ActionListener cancelListener) { + return null; // TODO + } // createDialog() + + /** + * getUI + * @returns ColorChooserUI + */ + public ColorChooserUI getUI() { + return (ColorChooserUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(ColorChooserUI ui) { + super.setUI(ui); + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((ColorChooserUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getColor + * @returns Color + */ + public Color getColor() { + return null; // TODO + } // getColor() + + /** + * setPreviewPanel + * @param component TODO + */ + public void setPreviewPanel(JComponent component) { + // TODO + } // setPreviewPanel() + + /** + * getPreviewPanel + * @returns JComponent + */ + public JComponent getPreviewPanel() { + return null; // TODO + } // getPreviewPanel() + + /** + * addChooserPanel + * @param panel TODO + */ + public void addChooserPanel(AbstractColorChooserPanel panel) { + // TODO + } // addChooserPanel() + + /** + * removeChooserPanel + * @param panel TODO + * @returns AbstractColorChooserPanel + */ + public AbstractColorChooserPanel removeChooserPanel( + AbstractColorChooserPanel panel) { + return null; // TODO + } // removeChooserPanel() + + /** + * setChooserPanels + * @param panels TODO + */ + public void setChooserPanels(AbstractColorChooserPanel[] panels) { + // TODO + } // setChooserPanels() + + /** + * getChooserPanels + * @returns AbstractColorChooserPanel[] + */ + public AbstractColorChooserPanel[] getChooserPanels() { + return null; // TODO + } // getChooserPanels() + + /** + * getSelectionModel + * @returns ColorSelectionModel + */ + public ColorSelectionModel getSelectionModel() { + return null; // TODO + } // getSelectionModel() + + /** + * setSelectionModel + * @param model TODO + */ + public void setSelectionModel(ColorSelectionModel model) { + // TODO + } // setSelectionModel() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJColorChooser(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JColorChooser diff --git a/javax/swing/JComboBox.java b/javax/swing/JComboBox.java new file mode 100644 index 000000000..4837e9720 --- /dev/null +++ b/javax/swing/JComboBox.java @@ -0,0 +1,835 @@ +/* JComboBox.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.beans.*; +import java.io.*; +import java.util.*; +import javax.accessibility.*; +import javax.swing.event.*; +import javax.swing.plaf.*; + +/** + * JComboBox + * @author Andrew Selkirk + * @version 1.0 + */ +public class JComboBox extends JComponent implements ItemSelectable, + ListDataListener, ActionListener, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJComboBox + */ + protected class AccessibleJComboBox extends AccessibleJComponent + implements AccessibleAction, AccessibleSelection { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJComboBox + * @param component TODO + */ + protected AccessibleJComboBox(JComboBox component) { + super(component); + // TODO + } // AccessibleJComboBox() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleChildrenCount + * @returns int + */ + public int getAccessibleChildrenCount() { + return 0; // TODO + } // getAccessibleChildrenCount() + + /** + * getAccessibleChild + * @param value0 TODO + * @returns Accessible + */ + public Accessible getAccessibleChild(int value0) { + return null; // TODO + } // getAccessibleChild() + + /** + * getAccessibleSelection + * @returns AccessibleSelection + */ + public AccessibleSelection getAccessibleSelection() { + return null; // TODO + } // getAccessibleSelection() + + /** + * getAccessibleSelection + * @param value0 TODO + * @returns Accessible + */ + public Accessible getAccessibleSelection(int value0) { + return null; // TODO + } // getAccessibleSelection() + + /** + * isAccessibleChildSelected + * @param value0 TODO + * @returns boolean + */ + public boolean isAccessibleChildSelected(int value0) { + return false; // TODO + } // isAccessibleChildSelected() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.COMBO_BOX; + } // getAccessibleRole() + + /** + * getAccessibleAction + * @returns AccessibleAction + */ + public AccessibleAction getAccessibleAction() { + return null; // TODO + } // getAccessibleAction() + + /** + * getAccessibleActionDescription + * @param value0 TODO + * @returns String + */ + public String getAccessibleActionDescription(int value0) { + return null; // TODO + } // getAccessibleActionDescription() + + /** + * getAccessibleActionCount + * @returns int + */ + public int getAccessibleActionCount() { + return 0; // TODO + } // getAccessibleActionCount() + + /** + * doAccessibleAction + * @param value0 TODO + * @returns boolean + */ + public boolean doAccessibleAction(int value0) { + return false; // TODO + } // doAccessibleAction() + + /** + * getAccessibleSelectionCount + * @returns int + */ + public int getAccessibleSelectionCount() { + return 0; // TODO + } // getAccessibleSelectionCount() + + /** + * addAccessibleSelection + * @param value0 TODO + */ + public void addAccessibleSelection(int value0) { + // TODO + } // addAccessibleSelection() + + /** + * removeAccessibleSelection + * @param value0 TODO + */ + public void removeAccessibleSelection(int value0) { + // TODO + } // removeAccessibleSelection() + + /** + * clearAccessibleSelection + */ + public void clearAccessibleSelection() { + // TODO + } // clearAccessibleSelection() + + /** + * selectAllAccessibleSelection + */ + public void selectAllAccessibleSelection() { + // TODO + } // selectAllAccessibleSelection() + + + } // AccessibleJComboBox + + /** + * KeySelectionManager + */ + public static interface KeySelectionManager { + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * selectionForKey + * @param value0 TODO + * @param value1 TODO + * @returns int + */ + public abstract int selectionForKey(char value0, ComboBoxModel value1); + + + } // KeySelectionManager + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "ComboBoxUI"; + + /** + * dataModel + */ + protected ComboBoxModel dataModel; + + /** + * renderer + */ + protected ListCellRenderer renderer; + + /** + * editor + */ + protected ComboBoxEditor editor; + + /** + * maximumRowCount + */ + protected int maximumRowCount; + + /** + * isEditable + */ + protected boolean isEditable; + + /** + * selectedItemReminder + */ + protected Object selectedItemReminder; + + /** + * keySelectionManager + */ + protected JComboBox.KeySelectionManager keySelectionManager; + + /** + * actionCommand + */ + protected String actionCommand; + + /** + * lightWeightPopupEnabled + */ + protected boolean lightWeightPopupEnabled; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JComboBox + * @param value0 TODO + */ + public JComboBox(ComboBoxModel value0) { + // TODO + } // JComboBox() + + /** + * Constructor JComboBox + * @param value0 TODO + */ + public JComboBox(Object[] value0) { + // TODO + } // JComboBox() + + /** + * Constructor JComboBox + * @param value0 TODO + */ + public JComboBox(Vector value0) { + // TODO + } // JComboBox() + + /** + * Constructor JComboBox + */ + public JComboBox() { + // TODO + } // JComboBox() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * isEditable + * @returns boolean + */ + public boolean isEditable() { + return false; // TODO + } // isEditable() + + /** + * installAncestorListener + */ + protected void installAncestorListener() { + // TODO + } // installAncestorListener() + + /** + * setUI + * @param ui TODO + */ + public void setUI(ComboBoxUI ui) { + super.setUI(ui); + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((ComboBoxUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getUI + * @returns ComboBoxUI + */ + public ComboBoxUI getUI() { + return (ComboBoxUI) ui; + } // getUI() + + /** + * setModel + * @param value0 TODO + */ + public void setModel(ComboBoxModel value0) { + // TODO + } // setModel() + + /** + * getModel + * @returns ComboBoxModel + */ + public ComboBoxModel getModel() { + return null; // TODO + } // getModel() + + /** + * setLightWeightPopupEnabled + * @param value0 TODO + */ + public void setLightWeightPopupEnabled(boolean value0) { + // TODO + } // setLightWeightPopupEnabled() + + /** + * isLightWeightPopupEnabled + * @returns boolean + */ + public boolean isLightWeightPopupEnabled() { + return false; // TODO + } // isLightWeightPopupEnabled() + + /** + * setEditable + * @param value0 TODO + */ + public void setEditable(boolean value0) { + // TODO + } // setEditable() + + /** + * setMaximumRowCount + * @param value0 TODO + */ + public void setMaximumRowCount(int value0) { + // TODO + } // setMaximumRowCount() + + /** + * getMaximumRowCount + * @returns int + */ + public int getMaximumRowCount() { + return 0; // TODO + } // getMaximumRowCount() + + /** + * setRenderer + * @param value0 TODO + */ + public void setRenderer(ListCellRenderer value0) { + // TODO + } // setRenderer() + + /** + * getRenderer + * @returns ListCellRenderer + */ + public ListCellRenderer getRenderer() { + return null; // TODO + } // getRenderer() + + /** + * setEditor + * @param value0 TODO + */ + public void setEditor(ComboBoxEditor value0) { + // TODO + } // setEditor() + + /** + * getEditor + * @returns ComboBoxEditor + */ + public ComboBoxEditor getEditor() { + return null; // TODO + } // getEditor() + + /** + * setSelectedItem + * @param value0 TODO + */ + public void setSelectedItem(Object value0) { + // TODO + } // setSelectedItem() + + /** + * getSelectedItem + * @returns Object + */ + public Object getSelectedItem() { + return null; // TODO + } // getSelectedItem() + + /** + * setSelectedIndex + * @param value0 TODO + */ + public void setSelectedIndex(int value0) { + // TODO + } // setSelectedIndex() + + /** + * getSelectedIndex + * @returns int + */ + public int getSelectedIndex() { + return 0; // TODO + } // getSelectedIndex() + + /** + * addItem + * @param value0 TODO + */ + public void addItem(Object value0) { + // TODO + } // addItem() + + /** + * insertItemAt + * @param value0 TODO + * @param value1 TODO + */ + public void insertItemAt(Object value0, int value1) { + // TODO + } // insertItemAt() + + /** + * removeItem + * @param value0 TODO + */ + public void removeItem(Object value0) { + // TODO + } // removeItem() + + /** + * removeItemAt + * @param value0 TODO + */ + public void removeItemAt(int value0) { + // TODO + } // removeItemAt() + + /** + * removeAllItems + */ + public void removeAllItems() { + // TODO + } // removeAllItems() + + /** + * showPopup + */ + public void showPopup() { + // TODO + } // showPopup() + + /** + * hidePopup + */ + public void hidePopup() { + // TODO + } // hidePopup() + + /** + * setPopupVisible + * @param value0 TODO + */ + public void setPopupVisible(boolean value0) { + // TODO + } // setPopupVisible() + + /** + * isPopupVisible + * @returns boolean + */ + public boolean isPopupVisible() { + return false; // TODO + } // isPopupVisible() + + /** + * addItemListener + * @param value0 TODO + */ + public void addItemListener(ItemListener value0) { + // TODO + } // addItemListener() + + /** + * removeItemListener + * @param value0 TODO + */ + public void removeItemListener(ItemListener value0) { + // TODO + } // removeItemListener() + + /** + * addActionListener + * @param value0 TODO + */ + public void addActionListener(ActionListener value0) { + // TODO + } // addActionListener() + + /** + * removeActionListener + * @param value0 TODO + */ + public void removeActionListener(ActionListener value0) { + // TODO + } // removeActionListener() + + /** + * setActionCommand + * @param value0 TODO + */ + public void setActionCommand(String value0) { + // TODO + } // setActionCommand() + + /** + * getActionCommand + * @returns String + */ + public String getActionCommand() { + return null; // TODO + } // getActionCommand() + + /** + * setAction + * @param value0 TODO + */ + public void setAction(Action value0) { + // TODO + } // setAction() + + /** + * isListener + * @param value0 TODO + * @param value1 TODO + * @returns boolean + */ + private boolean isListener(Class value0, ActionListener value1) { + return false; // TODO + } // isListener() + + /** + * getAction + * @returns Action + */ + public Action getAction() { + return null; // TODO + } // getAction() + + /** + * configurePropertiesFromAction + * @param value0 TODO + */ + protected void configurePropertiesFromAction(Action value0) { + // TODO + } // configurePropertiesFromAction() + + /** + * createActionPropertyChangeListener + * @param value0 TODO + * @returns PropertyChangeListener + */ + protected PropertyChangeListener createActionPropertyChangeListener(Action value0) { + return null; // TODO + } // createActionPropertyChangeListener() + + /** + * fireItemStateChanged + * @param value0 TODO + */ + protected void fireItemStateChanged(ItemEvent value0) { + // TODO + } // fireItemStateChanged() + + /** + * fireActionEvent + */ + protected void fireActionEvent() { + // TODO + } // fireActionEvent() + + /** + * selectedItemChanged + */ + protected void selectedItemChanged() { + // TODO + } // selectedItemChanged() + + /** + * getSelectedObjects + * @returns Object[] + */ + public Object[] getSelectedObjects() { + return null; // TODO + } // getSelectedObjects() + + /** + * actionPerformed + * @param value0 TODO + */ + public void actionPerformed(ActionEvent value0) { + // TODO + } // actionPerformed() + + /** + * contentsChanged + * @param value0 TODO + */ + public void contentsChanged(ListDataEvent value0) { + // TODO + } // contentsChanged() + + /** + * selectWithKeyChar + * @param value0 TODO + * @returns boolean + */ + public boolean selectWithKeyChar(char value0) { + return false; // TODO + } // selectWithKeyChar() + + /** + * intervalAdded + * @param value0 TODO + */ + public void intervalAdded(ListDataEvent value0) { + // TODO + } // intervalAdded() + + /** + * intervalRemoved + * @param value0 TODO + */ + public void intervalRemoved(ListDataEvent value0) { + // TODO + } // intervalRemoved() + + /** + * setEnabled + * @param value0 TODO + */ + public void setEnabled(boolean value0) { + // TODO + } // setEnabled() + + /** + * configureEditor + * @param value0 TODO + * @param value1 TODO + */ + public void configureEditor(ComboBoxEditor value0, Object value1) { + // TODO + } // configureEditor() + + /** + * processKeyEvent + * @param value0 TODO + */ + public void processKeyEvent(KeyEvent value0) { + // TODO + } // processKeyEvent() + + /** + * isFocusTraversable + * @returns boolean + */ + public boolean isFocusTraversable() { + return false; // TODO + } // isFocusTraversable() + + /** + * setKeySelectionManager + * @param value0 TODO + */ + public void setKeySelectionManager(KeySelectionManager value0) { + // TODO + } // setKeySelectionManager() + + /** + * getKeySelectionManager + * @returns JComboBox.KeySelectionManager + */ + public JComboBox.KeySelectionManager getKeySelectionManager() { + return null; // TODO + } // getKeySelectionManager() + + /** + * getItemCount + * @returns int + */ + public int getItemCount() { + return 0; // TODO + } // getItemCount() + + /** + * getItemAt + * @param value0 TODO + * @returns Object + */ + public Object getItemAt(int value0) { + return null; // TODO + } // getItemAt() + + /** + * createDefaultKeySelectionManager + * @returns KeySelectionManager + */ + protected KeySelectionManager createDefaultKeySelectionManager() { + return null; // TODO + } // createDefaultKeySelectionManager() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJComboBox(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JComboBox diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java index 0590207d4..fad7b6cb2 100644 --- a/javax/swing/JComponent.java +++ b/javax/swing/JComponent.java @@ -49,10 +49,7 @@ import javax.swing.plaf.*; import java.util.*; import java.beans.*; -import javax.accessibility.AccessibleContext; -import javax.accessibility.AccessibleRole; -import javax.accessibility.AccessibleState; -import javax.accessibility.AccessibleStateSet; +import javax.accessibility.*; /** * Every component in swing inherits from this class (JLabel, JButton, etc). @@ -64,6 +61,11 @@ import javax.accessibility.AccessibleStateSet; */ public abstract class JComponent extends Container implements Serializable { + /** + * accessibleContext + */ + protected AccessibleContext accessibleContext; + Dimension pref,min,max; Border border; JToolTip tooltip; @@ -76,6 +78,220 @@ public abstract class JComponent extends Container implements Serializable Vector change_list; Hashtable prop_hash; + /** + * AccessibleJComponent + */ + public abstract class AccessibleJComponent + extends AccessibleAWTContainer { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleFocusHandler + */ + protected class AccessibleFocusHandler implements FocusListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleFocusHandler + * @param component TODO + */ + protected AccessibleFocusHandler(AccessibleJComponent component) { + // TODO + } // AccessibleFocusHandler() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * focusGained + * @param event TODO + */ + public void focusGained(FocusEvent event) { + // TODO + } // focusGained() + + /** + * focusLost + * @param event TODO + */ + public void focusLost(FocusEvent valevent) { + // TODO + } // focusLost() + + + } // AccessibleFocusHandler + + /** + * AccessibleContainerHandler + */ + protected class AccessibleContainerHandler implements ContainerListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleContainerHandler + * @param component TODO + */ + protected AccessibleContainerHandler(AccessibleJComponent component) { + // TODO + } // AccessibleContainerHandler() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * componentAdded + * @param event TODO + */ + public void componentAdded(ContainerEvent event) { + // TODO + } // componentAdded() + + /** + * componentRemoved + * @param event TODO + */ + public void componentRemoved(ContainerEvent valevent) { + // TODO + } // componentRemoved() + + + } // AccessibleContainerHandler + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * accessibleContainerHandler + */ + protected ContainerListener accessibleContainerHandler; + + /** + * accessibleFocusHandler + */ + protected FocusListener accessibleFocusHandler; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJComponent + * @param component TODO + */ + protected AccessibleJComponent(JComponent component) { +// super((Container)component); + // TODO + } // AccessibleJComponent() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * addPropertyChangeListener + * @param listener TODO + */ + public void addPropertyChangeListener(PropertyChangeListener listener) { + // TODO + } // addPropertyChangeListener() + + /** + * removePropertyChangeListener + * @param listener TODO + */ + public void removePropertyChangeListener(PropertyChangeListener listener) { + // TODO + } // removePropertyChangeListener() + + /** + * getAccessibleChildrenCount + * @returns int + */ + public int getAccessibleChildrenCount() { + return 0; // TODO + } // getAccessibleChildrenCount() + + /** + * getAccessibleChild + * @param value0 TODO + * @returns Accessible + */ + public Accessible getAccessibleChild(int value0) { + return null; // TODO + } // getAccessibleChild() + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleName + * @returns String + */ + public String getAccessibleName() { + return null; // TODO + } // getAccessibleName() + + /** + * getAccessibleDescription + * @returns String + */ + public String getAccessibleDescription() { + return null; // TODO + } // getAccessibleDescription() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return null; // TODO + } // getAccessibleRole() + + /** + * getBorderTitle + * @param value0 TODO + * @returns String + */ + protected String getBorderTitle(Border value0) { + return null; // TODO + } // getBorderTitle() + + + } // AccessibleJComponent + + public JComponent() { super(); diff --git a/javax/swing/JDesktopPane.java b/javax/swing/JDesktopPane.java new file mode 100644 index 000000000..af979f308 --- /dev/null +++ b/javax/swing/JDesktopPane.java @@ -0,0 +1,284 @@ +/* JDesktopPane.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import javax.accessibility.*; +import javax.swing.plaf.*; + +/** + * JDesktopPane + * @author Andrew Selkirk + * @version 1.0 + */ +public class JDesktopPane extends JLayeredPane implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJDesktopPane + */ + protected class AccessibleJDesktopPane extends AccessibleJComponent { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJDesktopPane + * @param component TODO + */ + protected AccessibleJDesktopPane(JDesktopPane component) { + super(component); + // TODO + } // AccessibleJDesktopPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.DESKTOP_PANE; + } // getAccessibleRole() + + + } // AccessibleJDesktopPane + + + //------------------------------------------------------------- + // Constants -------------------------------------------------- + //------------------------------------------------------------- + + /** + * LIVE_DRAG_MODE + */ + public static int LIVE_DRAG_MODE = 0; + + /** + * OUTLINE_DRAG_MODE + */ + public static int OUTLINE_DRAG_MODE = 1; + + /** + * uiClassID + */ + private static final String uiClassID = "DesktopPaneUI"; + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * selectedFrame + */ + private transient JInternalFrame selectedFrame; + + /** + * desktopManager + */ + private transient DesktopManager desktopManager; + + + /** + * dragMode + */ + private int dragMode; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JDesktopPane + */ + public JDesktopPane() { + // TODO + } // JDesktopPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getUI + * @returns DesktopPaneUI + */ + public DesktopPaneUI getUI() { + return (DesktopPaneUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(DesktopPaneUI ui) { + super.setUI(ui); + } // setUI() + + /** + * setDragMode + * @param mode TODO + */ + public void setDragMode(int mode) { + this.dragMode = mode; + // TODO + } // setDragMode() + + /** + * getDragMode + * @returns int + */ + public int getDragMode() { + return dragMode; + } // getDragMode() + + /** + * getDesktopManager + * @returns DesktopManager + */ + public DesktopManager getDesktopManager() { + return desktopManager; + } // getDesktopManager() + + /** + * setDesktopManager + * @param manager TODO + */ + public void setDesktopManager(DesktopManager manager) { + this.desktopManager = manager; + // TODO + } // setDesktopManager() + + /** + * updateUI + */ + public void updateUI() { + setUI((DesktopPaneUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getAllFrames + * @returns JInternalFrame[] + */ + public JInternalFrame[] getAllFrames() { + return null; // TODO + } // getAllFrames() + + /** + * getSelectedFrame + * @returns JInternalFrame + */ + public JInternalFrame getSelectedFrame() { + return null; // TODO + } // getSelectedFrame() + + /** + * setSelectedFrame + * @param frame TODO + */ + public void setSelectedFrame(JInternalFrame frame) { + // TODO + } // setSelectedFrame() + + /** + * getAllFramesInLayer + * @param layer TODO + * @returns JInternalFrame[] + */ + public JInternalFrame[] getAllFramesInLayer(int layer) { + return null; // TODO + } // getAllFramesInLayer() + + /** + * isOpaque + * @returns boolean + */ + public boolean isOpaque() { + return true; + } // isOpaque() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJDesktopPane(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JDesktopPane diff --git a/javax/swing/JFileChooser.java b/javax/swing/JFileChooser.java new file mode 100644 index 000000000..cfa435c6d --- /dev/null +++ b/javax/swing/JFileChooser.java @@ -0,0 +1,968 @@ +/* JFileChooser.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.io.*; +import java.util.*; +import javax.accessibility.*; +import javax.swing.filechooser.*; +import javax.swing.filechooser.FileFilter; +import javax.swing.plaf.*; + +/** + * JFileChooser + * @author Andrew Selkirk + * @version 1.0 + */ +public class JFileChooser extends JComponent implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJFileChooser + */ + protected class AccessibleJFileChooser extends AccessibleJComponent { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJFileChooser + * @param component TODO + */ + protected AccessibleJFileChooser(JFileChooser component) { + super(component); + // TODO + } // AccessibleJFileChooser() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.FILE_CHOOSER; + } // getAccessibleRole() + + + } // AccessibleJFileChooser + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "FileChooserUI"; + + /** + * OPEN_DIALOG + */ + public static final int OPEN_DIALOG = 0; + + /** + * SAVE_DIALOG + */ + public static final int SAVE_DIALOG = 1; + + /** + * CUSTOM_DIALOG + */ + public static final int CUSTOM_DIALOG = 2; + + /** + * CANCEL_OPTION + */ + public static final int CANCEL_OPTION = 1; + + /** + * APPROVE_OPTION + */ + public static final int APPROVE_OPTION = 0; + + /** + * ERROR_OPTION + */ + public static final int ERROR_OPTION = -1; + + /** + * FILES_ONLY + */ + public static final int FILES_ONLY = 0; + + /** + * DIRECTORIES_ONLY + */ + public static final int DIRECTORIES_ONLY = 1; + + /** + * FILES_AND_DIRECTORIES + */ + public static final int FILES_AND_DIRECTORIES = 2; + + /** + * CANCEL_SELECTION + */ + public static final String CANCEL_SELECTION = "CancelSelection"; + + /** + * APPROVE_SELECTION + */ + public static final String APPROVE_SELECTION = "ApproveSelection"; + + /** + * APPROVE_BUTTON_TEXT_CHANGED_PROPERTY + */ + public static final String APPROVE_BUTTON_TEXT_CHANGED_PROPERTY = "ApproveButtonTextChangedProperty"; + + /** + * APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY + */ + public static final String APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY = "ApproveButtonToolTipTextChangedProperty"; + + /** + * APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY + */ + public static final String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY = "ApproveButtonMnemonicChangedProperty"; + + /** + * CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY + */ + public static final String CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY = "ControlButtonsAreShownChangedProperty"; + + /** + * DIRECTORY_CHANGED_PROPERTY + */ + public static final String DIRECTORY_CHANGED_PROPERTY = "directoryChanged"; + + /** + * SELECTED_FILE_CHANGED_PROPERTY + */ + public static final String SELECTED_FILE_CHANGED_PROPERTY = "SelectedFileChangedProperty"; + + /** + * SELECTED_FILES_CHANGED_PROPERTY + */ + public static final String SELECTED_FILES_CHANGED_PROPERTY = "SelectedFilesChangedProperty"; + + /** + * MULTI_SELECTION_ENABLED_CHANGED_PROPERTY + */ + public static final String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY = "MultiSelectionEnabledChangedProperty"; + + /** + * FILE_SYSTEM_VIEW_CHANGED_PROPERTY + */ + public static final String FILE_SYSTEM_VIEW_CHANGED_PROPERTY = "FileSystemViewChanged"; + + /** + * FILE_VIEW_CHANGED_PROPERTY + */ + public static final String FILE_VIEW_CHANGED_PROPERTY = "fileViewChanged"; + + /** + * FILE_HIDING_CHANGED_PROPERTY + */ + public static final String FILE_HIDING_CHANGED_PROPERTY = "FileHidingChanged"; + + /** + * FILE_FILTER_CHANGED_PROPERTY + */ + public static final String FILE_FILTER_CHANGED_PROPERTY = "fileFilterChanged"; + + /** + * FILE_SELECTION_MODE_CHANGED_PROPERTY + */ + public static final String FILE_SELECTION_MODE_CHANGED_PROPERTY = "fileSelectionChanged"; + + /** + * ACCESSORY_CHANGED_PROPERTY + */ + public static final String ACCESSORY_CHANGED_PROPERTY = "AccessoryChangedProperty"; + + /** + * ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY + */ + public static final String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY = "acceptAllFileFilterUsedChanged"; + + /** + * DIALOG_TITLE_CHANGED_PROPERTY + */ + public static final String DIALOG_TITLE_CHANGED_PROPERTY = "DialogTitleChangedProperty"; + + /** + * DIALOG_TYPE_CHANGED_PROPERTY + */ + public static final String DIALOG_TYPE_CHANGED_PROPERTY = "DialogTypeChangedProperty"; + + /** + * CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY + */ + public static final String CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY = "ChoosableFileFilterChangedProperty"; + + /** + * dialogTitle + */ + private String dialogTitle; + + /** + * approveButtonText + */ + private String approveButtonText; + + /** + * approveButtonToolTipText + */ + private String approveButtonToolTipText; + + /** + * approveButtonMnemonic + */ + private int approveButtonMnemonic; + + /** + * actionListener + */ + private ActionListener actionListener; + + /** + * filters + */ + private Vector filters; + + /** + * dialog + */ + private JDialog dialog; + + /** + * dialogType + */ + private int dialogType; + + /** + * returnValue + */ + private int returnValue; + + /** + * accessory + */ + private JComponent accessory; + + /** + * fileView + */ + private FileView fileView; + + /** + * uiFileView + */ + private FileView uiFileView; + + /** + * controlsShown + */ + private boolean controlsShown; + + /** + * useFileHiding + */ + private boolean useFileHiding; + + /** + * fileSelectionMode + */ + private int fileSelectionMode; + + /** + * multiSelectionEnabled + */ + private boolean multiSelectionEnabled; + + /** + * useAcceptAllFileFilter + */ + private boolean useAcceptAllFileFilter; + + /** + * fileFilter + */ + private FileFilter fileFilter; + + /** + * fileSystemView + */ + private FileSystemView fileSystemView; + + /** + * currentDirectory + */ + private File currentDirectory; + + /** + * selectedFile + */ + private File selectedFile; + + /** + * selectedFiles + */ + private File[] selectedFiles; + + /** + * accessibleContext + */ + protected AccessibleContext accessibleContext; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JFileChooser + */ + public JFileChooser() { + // TODO + } // JFileChooser() + + /** + * Constructor JFileChooser + * @param currentDirectoryPath TODO + */ + public JFileChooser(String currentDirectoryPath) { + // TODO + } // JFileChooser() + + /** + * Constructor JFileChooser + * @param currentDirectory TODO + */ + public JFileChooser(File currentDirectory) { + // TODO + } // JFileChooser() + + /** + * Constructor JFileChooser + * @param value0 TODO + */ + public JFileChooser(FileSystemView fsv) { + // TODO + } // JFileChooser() + + /** + * Constructor JFileChooser + * @param currentDirectory TODO + * @param fsv TODO + */ + public JFileChooser(File currentDirectory, FileSystemView fsv) { + // TODO + } // JFileChooser() + + /** + * Constructor JFileChooser + * @param currentDirectoryPath TODO + * @param fsv TODO + */ + public JFileChooser(String currentDirectoryPath, FileSystemView fsv) { + // TODO + } // JFileChooser() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getName + * @param file TODO + * @returns String + */ + public String getName(File file) { + return null; // TODO + } // getName() + + /** + * setup + * @param view TODO + */ + protected void setup(FileSystemView view) { + // TODO + } // setup() + + /** + * accept + * @param file TODO + * @returns boolean + */ + public boolean accept(File file) { + return false; // TODO + } // accept() + + /** + * getSelectedFile + * @returns File + */ + public File getSelectedFile() { + return null; // TODO + } // getSelectedFile() + + /** + * setSelectedFile + * @param file TODO + */ + public void setSelectedFile(File file) { + // TODO + } // setSelectedFile() + + /** + * getSelectedFiles + * @returns File[] + */ + public File[] getSelectedFiles() { + return null; // TODO + } // getSelectedFiles() + + /** + * setSelectedFiles + * @param files TODO + */ + public void setSelectedFiles(File[] files) { + // TODO + } // setSelectedFiles() + + /** + * getCurrentDirectory + * @returns File + */ + public File getCurrentDirectory() { + return null; // TODO + } // getCurrentDirectory() + + /** + * setCurrentDirectory + * @param directory TODO + */ + public void setCurrentDirectory(File directory) { + // TODO + } // setCurrentDirectory() + + /** + * changeToParentDirectory + */ + public void changeToParentDirectory() { + // TODO + } // changeToParentDirectory() + + /** + * rescanCurrentDirectory + */ + public void rescanCurrentDirectory() { + // TODO + } // rescanCurrentDirectory() + + /** + * ensureFileIsVisible + * @param file TODO + */ + public void ensureFileIsVisible(File file) { + // TODO + } // ensureFileIsVisible() + + /** + * showOpenDialog + * @param parent TODO + * @returns int + */ + public int showOpenDialog(Component parent) { + return 0; // TODO + } // showOpenDialog() + + /** + * showSaveDialog + * @param parent TODO + * @returns int + */ + public int showSaveDialog(Component parent) { + return 0; // TODO + } // showSaveDialog() + + /** + * showDialog + * @param parent TODO + * @param approveButtonText TODO + * @returns int + */ + public int showDialog(Component parent, String approveButtonText) { + return 0; // TODO + } // showDialog() + + /** + * getControlButtonsAreShown + * @returns boolean + */ + public boolean getControlButtonsAreShown() { + return false; // TODO + } // getControlButtonsAreShown() + + /** + * setControlButtonsAreShown + * @param value TODO + */ + public void setControlButtonsAreShown(boolean value) { + // TODO + } // setControlButtonsAreShown() + + /** + * getDialogType + * @returns int + */ + public int getDialogType() { + return 0; // TODO + } // getDialogType() + + /** + * setDialogType + * @param type TODO + */ + public void setDialogType(int type) { + // TODO + } // setDialogType() + + /** + * setDialogTitle + * @param title TODO + */ + public void setDialogTitle(String title) { + // TODO + } // setDialogTitle() + + /** + * getDialogTitle + * @returns String + */ + public String getDialogTitle() { + return null; // TODO + } // getDialogTitle() + + /** + * setApproveButtonToolTipText + * @param text TODO + */ + public void setApproveButtonToolTipText(String text) { + // TODO + } // setApproveButtonToolTipText() + + /** + * getApproveButtonToolTipText + * @returns String + */ + public String getApproveButtonToolTipText() { + return null; // TODO + } // getApproveButtonToolTipText() + + /** + * getApproveButtonMnemonic + * @returns int + */ + public int getApproveButtonMnemonic() { + return 0; // TODO + } // getApproveButtonMnemonic() + + /** + * setApproveButtonMnemonic + * @param mnemonic TODO + */ + public void setApproveButtonMnemonic(int mnemonic) { + // TODO + } // setApproveButtonMnemonic() + + /** + * setApproveButtonMnemonic + * @param mnemonic TODO + */ + public void setApproveButtonMnemonic(char mnemonic) { + // TODO + } // setApproveButtonMnemonic() + + /** + * setApproveButtonText + * @param text TODO + */ + public void setApproveButtonText(String text) { + // TODO + } // setApproveButtonText() + + /** + * getApproveButtonText + * @returns String + */ + public String getApproveButtonText() { + return null; // TODO + } // getApproveButtonText() + + /** + * getChoosableFileFilters + * @returns FileFilter[] + */ + public FileFilter[] getChoosableFileFilters() { + return null; // TODO + } // getChoosableFileFilters() + + /** + * addChoosableFileFilter + * @param filter TODO + */ + public void addChoosableFileFilter(FileFilter filter) { + // TODO + } // addChoosableFileFilter() + + /** + * removeChoosableFileFilter + * @param filter TODO + * @returns boolean + */ + public boolean removeChoosableFileFilter(FileFilter filter) { + return false; // TODO + } // removeChoosableFileFilter() + + /** + * resetChoosableFileFilters + */ + public void resetChoosableFileFilters() { + // TODO + } // resetChoosableFileFilters() + + /** + * getAcceptAllFileFilter + * @returns FileFilter + */ + public FileFilter getAcceptAllFileFilter() { + return null; // TODO + } // getAcceptAllFileFilter() + + /** + * isAcceptAllFileFilterUsed + * @returns boolean + */ + public boolean isAcceptAllFileFilterUsed() { + return false; // TODO + } // isAcceptAllFileFilterUsed() + + /** + * setAcceptAllFileFilterUsed + * @param value TODO + */ + public void setAcceptAllFileFilterUsed(boolean value) { + // TODO + } // setAcceptAllFileFilterUsed() + + /** + * getAccessory + * @returns JComponent + */ + public JComponent getAccessory() { + return null; // TODO + } // getAccessory() + + /** + * setAccessory + * @param accessory TODO + */ + public void setAccessory(JComponent accessory) { + // TODO + } // setAccessory() + + /** + * setFileSelectionMode + * @param mode TODO + */ + public void setFileSelectionMode(int mode) { + // TODO + } // setFileSelectionMode() + + /** + * getFileSelectionMode + * @returns int + */ + public int getFileSelectionMode() { + return 0; // TODO + } // getFileSelectionMode() + + /** + * isFileSelectionEnabled + * @returns boolean + */ + public boolean isFileSelectionEnabled() { + return false; // TODO + } // isFileSelectionEnabled() + + /** + * isDirectorySelectionEnabled + * @returns boolean + */ + public boolean isDirectorySelectionEnabled() { + return false; // TODO + } // isDirectorySelectionEnabled() + + /** + * isMultiSelectionEnabled + * @returns boolean + */ + public boolean isMultiSelectionEnabled() { + return false; // TODO + } // isMultiSelectionEnabled() + + /** + * setMultiSelectionEnabled + * @param enabled TODO + */ + public void setMultiSelectionEnabled(boolean enabled) { + // TODO + } // setMultiSelectionEnabled() + + /** + * isFileHidingEnabled + * @returns boolean + */ + public boolean isFileHidingEnabled() { + return false; // TODO + } // isFileHidingEnabled() + + /** + * setFileHidingEnabled + * @param enabled TODO + */ + public void setFileHidingEnabled(boolean enabled) { + // TODO + } // setFileHidingEnabled() + + /** + * getFileFilter + * @returns FileFilter + */ + public FileFilter getFileFilter() { + return null; // TODO + } // getFileFilter() + + /** + * setFileFilter + * @param filter TODO + */ + public void setFileFilter(FileFilter filter) { + // TODO + } // setFileFilter() + + /** + * getFileView + * @returns FileView + */ + public FileView getFileView() { + return null; // TODO + } // getFileView() + + /** + * setFileView + * @param view TODO + */ + public void setFileView(FileView view) { + // TODO + } // setFileView() + + /** + * getDescription + * @param file TODO + * @returns String + */ + public String getDescription(File file) { + return null; // TODO + } // getDescription() + + /** + * getTypeDescription + * @param file TODO + * @returns String + */ + public String getTypeDescription(File file) { + return null; // TODO + } // getTypeDescription() + + /** + * getIcon + * @param file TODO + * @returns Icon + */ + public Icon getIcon(File file) { + return null; // TODO + } // getIcon() + + /** + * isTraversable + * @param file TODO + * @returns boolean + */ + public boolean isTraversable(File file) { + return false; // TODO + } // isTraversable() + + /** + * getFileSystemView + * @returns FileSystemView + */ + public FileSystemView getFileSystemView() { + return null; // TODO + } // getFileSystemView() + + /** + * setFileSystemView + * @param fsv TODO + */ + public void setFileSystemView(FileSystemView fsv) { + // TODO + } // setFileSystemView() + + /** + * approveSelection + */ + public void approveSelection() { + // TODO + } // approveSelection() + + /** + * cancelSelection + */ + public void cancelSelection() { + // TODO + } // cancelSelection() + + /** + * addActionListener + * @param listener TODO + */ + public void addActionListener(ActionListener listener) { + // TODO + } // addActionListener() + + /** + * removeActionListener + * @param listener TODO + */ + public void removeActionListener(ActionListener listener) { + // TODO + } // removeActionListener() + + /** + * fireActionPerformed + * @param command TODO + */ + protected void fireActionPerformed(String command) { + // TODO + } // fireActionPerformed() + + /** + * updateUI + */ + public void updateUI() { + setUI((FileChooserUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getUI + * @returns FileChooserUI + */ + public FileChooserUI getUI() { + return (FileChooserUI) ui; + } // getUI() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJFileChooser(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JFileChooser diff --git a/javax/swing/JMenu.java b/javax/swing/JMenu.java new file mode 100644 index 000000000..0d4d86863 --- /dev/null +++ b/javax/swing/JMenu.java @@ -0,0 +1,756 @@ +/* JMenu.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.beans.*; +import java.io.*; +import java.util.*; +import javax.accessibility.*; +import javax.swing.event.*; + +/** + * JMenu + * @author Andrew Selkirk + * @version 1.0 + */ +public class JMenu extends JMenuItem implements Accessible, MenuElement { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJMenu + */ + protected class AccessibleJMenu extends AccessibleJMenuItem + implements AccessibleSelection { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJMenu + * @param component TODO + */ + protected AccessibleJMenu(JMenu component) { + super(component); + // TODO + } // AccessibleJMenu() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleChildrenCount + * @returns int + */ + public int getAccessibleChildrenCount() { + return 0; // TODO + } // getAccessibleChildrenCount() + + /** + * getAccessibleChild + * @param value0 TODO + * @returns Accessible + */ + public Accessible getAccessibleChild(int value0) { + return null; // TODO + } // getAccessibleChild() + + /** + * getAccessibleSelection + * @returns AccessibleSelection + */ + public AccessibleSelection getAccessibleSelection() { + return null; // TODO + } // getAccessibleSelection() + + /** + * getAccessibleSelection + * @param value0 TODO + * @returns Accessible + */ + public Accessible getAccessibleSelection(int value0) { + return null; // TODO + } // getAccessibleSelection() + + /** + * isAccessibleChildSelected + * @param value0 TODO + * @returns boolean + */ + public boolean isAccessibleChildSelected(int value0) { + return false; // TODO + } // isAccessibleChildSelected() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.MENU; + } // getAccessibleRole() + + /** + * getAccessibleSelectionCount + * @returns int + */ + public int getAccessibleSelectionCount() { + return 0; // TODO + } // getAccessibleSelectionCount() + + /** + * addAccessibleSelection + * @param value0 TODO + */ + public void addAccessibleSelection(int value0) { + // TODO + } // addAccessibleSelection() + + /** + * removeAccessibleSelection + * @param value0 TODO + */ + public void removeAccessibleSelection(int value0) { + // TODO + } // removeAccessibleSelection() + + /** + * clearAccessibleSelection + */ + public void clearAccessibleSelection() { + // TODO + } // clearAccessibleSelection() + + /** + * selectAllAccessibleSelection + */ + public void selectAllAccessibleSelection() { + // TODO + } // selectAllAccessibleSelection() + + + } // AccessibleJMenu + + /** + * WinListener + */ + protected class WinListener extends WindowAdapter implements Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * popupMenu + */ + JPopupMenu popupMenu; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor WinListener + * @param value0 TODO + * @param value1 TODO + */ + public WinListener(JMenu value0, JPopupMenu value1) { + // TODO + } // WinListener() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * windowClosing + * @param value0 TODO + */ + public void windowClosing(WindowEvent value0) { + // TODO + } // windowClosing() + + + } // WinListener + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "MenuUI"; + + /** + * popupMenu + */ + private JPopupMenu popupMenu; + + /** + * menuChangeListener + */ + private ChangeListener menuChangeListener; + + /** + * menuEvent + */ + private MenuEvent menuEvent; + + /** + * listenerRegistry + */ + private static Hashtable listenerRegistry = null; // TODO + + /** + * delay + */ + private int delay; + + /** + * TRACE + */ + private static final boolean TRACE = false; // TODO + + /** + * VERBOSE + */ + private static final boolean VERBOSE = false; // TODO + + /** + * DEBUG + */ + private static final boolean DEBUG = false; // TODO + + /** + * popupListener + */ + protected JMenu.WinListener popupListener; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JMenu + */ + public JMenu() { + // TODO + } // JMenu() + + /** + * Constructor JMenu + * @param text TODO + */ + public JMenu(String text) { + // TODO + } // JMenu() + + /** + * Constructor JMenu + * @param action TODO + */ + public JMenu(Action action) { + // TODO + } // JMenu() + + /** + * Constructor JMenu + * @param text TODO + * @param tearoff TODO + */ + public JMenu(String text, boolean tearoff) { + // TODO + } // JMenu() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * add + * @param value0 TODO + * @returns JMenuItem + */ + public JMenuItem add(JMenuItem item) { + return null; // TODO + } // add() + + /** + * add + * @param component TODO + * @returns Component + */ + public Component add(Component component) { + return null; // TODO + } // add() + + /** + * add + * @param component TODO + * @param index TODO + * @returns Component + */ + public Component add(Component component, int index) { + return null; // TODO + } // add() + + /** + * add + * @param text TODO + * @returns JMenuItem + */ + public JMenuItem add(String text) { + return null; // TODO + } // add() + + /** + * add + * @param action TODO + * @returns JMenuItem + */ + public JMenuItem add(Action action) { + return null; // TODO + } // add() + + /** + * remove + * @param item TODO + */ + public void remove(JMenuItem item) { + // TODO + } // remove() + + /** + * remove + * @param index TODO + */ + public void remove(int index) { + // TODO + } // remove() + + /** + * remove + * @param component TODO + */ + public void remove(Component component) { + // TODO + } // remove() + + /** + * removeAll + */ + public void removeAll() { + // TODO + } // removeAll() + + /** + * insert + * @param text TODO + * @param index TODO + */ + public void insert(String text, int index) { + // TODO + } // insert() + + /** + * insert + * @param item TODO + * @param index TODO + * @returns JMenuItem + */ + public JMenuItem insert(JMenuItem item, int index) { + return null; // TODO + } // insert() + + /** + * insert + * @param action TODO + * @param index TODO + * @returns JMenuItem + */ + public JMenuItem insert(Action action, int index) { + return null; // TODO + } // insert() + + /** + * updateUI + */ + public void updateUI() { + //setUI((MenuUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * setModel + * @param model TODO + */ + public void setModel(ButtonModel model) { + // TODO + } // setModel() + + /** + * isSelected + * @returns boolean + */ + public boolean isSelected() { + return false; // TODO + } // isSelected() + + /** + * setSelected + * @param selected TODO + */ + public void setSelected(boolean selected) { + // TODO + } // setSelected() + + /** + * isPopupMenuVisible + * @returns boolean + */ + public boolean isPopupMenuVisible() { + return false; // TODO + } // isPopupMenuVisible() + + /** + * setPopupMenuVisible + * @param popup TODO + */ + public void setPopupMenuVisible(boolean popup) { + // TODO + } // setPopupMenuVisible() + + /** + * getPopupMenuOrigin + * @returns Point + */ + protected Point getPopupMenuOrigin() { + return null; // TODO + } // getPopupMenuOrigin() + + /** + * getDelay + * @returns int + */ + public int getDelay() { + return 0; // TODO + } // getDelay() + + /** + * setDelay + * @param value0 TODO + */ + public void setDelay(int delay) { + // TODO + } // setDelay() + + /** + * setMenuLocation + * @param x TODO + * @param y TODO + */ + public void setMenuLocation(int x, int y) { + // TODO + } // setMenuLocation() + + /** + * createActionComponent + * @param action TODO + * @returns JMenuItem + */ + protected JMenuItem createActionComponent(Action action) { + return null; // TODO + } // createActionComponent() + + /** + * createActionChangeListener + * @param item TODO + * @returns PropertyChangeListener + */ + protected PropertyChangeListener createActionChangeListener(JMenuItem item) { + return null; // TODO + } // createActionChangeListener() + + /** + * addSeparator + */ + public void addSeparator() { + // TODO + } // addSeparator() + + /** + * insertSeparator + * @param index TODO + */ + public void insertSeparator(int index) { + // TODO + } // insertSeparator() + + /** + * getItem + * @param index TODO + * @returns JMenuItem + */ + public JMenuItem getItem(int index) { + return null; // TODO + } // getItem() + + /** + * getItemCount + * @returns int + */ + public int getItemCount() { + return 0; // TODO + } // getItemCount() + + /** + * isTearOff + * @returns boolean + */ + public boolean isTearOff() { + return false; // TODO + } // isTearOff() + + /** + * getMenuComponentCount + * @returns int + */ + public int getMenuComponentCount() { + return 0; // TODO + } // getMenuComponentCount() + + /** + * getMenuComponent + * @param index TODO + * @returns Component + */ + public Component getMenuComponent(int index) { + return null; // TODO + } // getMenuComponent() + + /** + * getMenuComponents + * @returns Component[] + */ + public Component[] getMenuComponents() { + return null; // TODO + } // getMenuComponents() + + /** + * isTopLevelMenu + * @returns boolean + */ + public boolean isTopLevelMenu() { + return false; // TODO + } // isTopLevelMenu() + + /** + * isMenuComponent + * @param component TODO + * @returns boolean + */ + public boolean isMenuComponent(Component component) { + return false; // TODO + } // isMenuComponent() + + /** + * getPopupMenu + * @returns JPopupMenu + */ + public JPopupMenu getPopupMenu() { + return null; // TODO + } // getPopupMenu() + + /** + * addMenuListener + * @param listener TODO + */ + public void addMenuListener(MenuListener listener) { + // TODO + } // addMenuListener() + + /** + * removeMenuListener + * @param listener TODO + */ + public void removeMenuListener(MenuListener listener) { + // TODO + } // removeMenuListener() + + /** + * fireMenuSelected + */ + protected void fireMenuSelected() { + // TODO + } // fireMenuSelected() + + /** + * fireMenuDeselected + */ + protected void fireMenuDeselected() { + // TODO + } // fireMenuDeselected() + + /** + * fireMenuCanceled + */ + protected void fireMenuCanceled() { + // TODO + } // fireMenuCanceled() + + /** + * createMenuChangeListener + * @returns ChangeListener + */ + private ChangeListener createMenuChangeListener() { + return null; // TODO + } // createMenuChangeListener() + + /** + * createWinListener + * @param popup TODO + * @returns JMenu.WinListener + */ + protected JMenu.WinListener createWinListener(JPopupMenu popup) { + return null; // TODO + } // createWinListener() + + /** + * menuSelectionChanged + * @param value0 TODO + */ + public void menuSelectionChanged(boolean changed) { + // TODO + } // menuSelectionChanged() + + /** + * getSubElements + * @returns MenuElement[] + */ + public MenuElement[] getSubElements() { + return null; // TODO + } // getSubElements() + + /** + * getComponent + * @returns Component + */ + public Component getComponent() { + return null; // TODO + } // getComponent() + + /** + * setAccelerator + * @param keystroke TODO + */ + public void setAccelerator(KeyStroke keystroke) { + // TODO + } // setAccelerator() + + /** + * processKeyEvent + * @param event TODO + */ + protected void processKeyEvent(KeyEvent event) { + // TODO + } // processKeyEvent() + + /** + * doClick + * @param time TODO + */ + public void doClick(int time) { + // TODO + } // doClick() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJMenu(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JMenu diff --git a/javax/swing/JMenuItem.java b/javax/swing/JMenuItem.java new file mode 100644 index 000000000..7d3bfef9a --- /dev/null +++ b/javax/swing/JMenuItem.java @@ -0,0 +1,463 @@ +/* JMenuItem.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.beans.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.event.*; +import javax.swing.plaf.*; + +/** + * JMenuItem + * @author Andrew Selkirk + * @version 1.0 + */ +public class JMenuItem extends AbstractButton implements Accessible, MenuElement { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJMenuItem + */ + protected class AccessibleJMenuItem extends AccessibleAbstractButton + implements ChangeListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJMenuItem + * @param component TODO + */ + AccessibleJMenuItem(JMenuItem component) { + super(component); + // TODO + } // AccessibleJMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * stateChanged + * @param event TODO + */ + public void stateChanged(ChangeEvent event) { + // TODO + } // stateChanged() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.MENU_ITEM; + } // getAccessibleRole() + + + } // AccessibleJMenuItem + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "MenuItemUI"; + + /** + * accelerator + */ + private KeyStroke accelerator; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JMenuItem + */ + public JMenuItem() { + // TODO + } // JMenuItem() + + /** + * Constructor JMenuItem + * @param icon TODO + */ + public JMenuItem(Icon icon) { + // TODO + } // JMenuItem() + + /** + * Constructor JMenuItem + * @param text TODO + */ + public JMenuItem(String text) { + // TODO + } // JMenuItem() + + /** + * Constructor JMenuItem + * @param action TODO + */ + public JMenuItem(Action action) { + // TODO + } // JMenuItem() + + /** + * Constructor JMenuItem + * @param text TODO + * @param icon TODO + */ + public JMenuItem(String text, Icon icon) { + // TODO + } // JMenuItem() + + /** + * Constructor JMenuItem + * @param text TODO + * @param mnemonic TODO + */ + public JMenuItem(String text, int mnemonic) { + // TODO + } // JMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * readObject + * @param stream TODO + * @exception IOException TODO + * @exception ClassNotFoundException TODO + */ + private void readObject(ObjectInputStream stream) + throws IOException, ClassNotFoundException { + // TODO + } // readObject() + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * init + * @param text TODO + * @param icon TODO + */ + protected void init(String text, Icon icon) { + // TODO + } // init() + + /** + * setUI + * @param ui TODO + */ + public void setUI(MenuItemUI ui) { + super.setUI(ui); + // TODO + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((MenuItemUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * isArmed + * @returns boolean + */ + public boolean isArmed() { + return false; // TODO + } // isArmed() + + /** + * setArmed + * @param armed TODO + */ + public void setArmed(boolean armed) { + // TODO + } // setArmed() + + /** + * setEnabled + * @param enabled TODO + */ + public void setEnabled(boolean enabled) { + // TODO + } // setEnabled() + + /** + * getAccelerator + * @returns KeyStroke + */ + public KeyStroke getAccelerator() { + return null; // TODO + } // getAccelerator() + + /** + * setAccelerator + * @param keystroke TODO + */ + public void setAccelerator(KeyStroke keystroke) { + // TODO + } // setAccelerator() + + /** + * configurePropertiesFromAction + * @param action TODO + */ + protected void configurePropertiesFromAction(Action action) { + // TODO + } // configurePropertiesFromAction() + + /** + * createActionPropertyChangeListener + * @param action TODO + * @returns PropertyChangeListener + */ + protected PropertyChangeListener createActionPropertyChangeListener(Action action) { + return null; // TODO + } // createActionPropertyChangeListener() + + /** + * processMouseEvent + * @param event TODO + * @param path TODO + * @param manager TODO + */ + public void processMouseEvent(MouseEvent event, MenuElement[] path, + MenuSelectionManager manager) { + // TODO + } // processMouseEvent() + + /** + * processKeyEvent + * @param event TODO + * @param path TODO + * @param manager TODO + */ + public void processKeyEvent(KeyEvent event, MenuElement[] path, + MenuSelectionManager manager) { + // TODO + } // processKeyEvent() + + /** + * processMenuDragMouseEvent + * @param event TODO + */ + public void processMenuDragMouseEvent(MenuDragMouseEvent event) { + // TODO + } // processMenuDragMouseEvent() + + /** + * processMenuKeyEvent + * @param event TODO + */ + public void processMenuKeyEvent(MenuKeyEvent event) { + // TODO + } // processMenuKeyEvent() + + /** + * fireMenuDragMouseEntered + * @param event TODO + */ + protected void fireMenuDragMouseEntered(MenuDragMouseEvent event) { + // TODO + } // fireMenuDragMouseEntered() + + /** + * fireMenuDragMouseExited + * @param event TODO + */ + protected void fireMenuDragMouseExited(MenuDragMouseEvent event) { + // TODO + } // fireMenuDragMouseExited() + + /** + * fireMenuDragMouseDragged + * @param event TODO + */ + protected void fireMenuDragMouseDragged(MenuDragMouseEvent event) { + // TODO + } // fireMenuDragMouseDragged() + + /** + * fireMenuDragMouseReleased + * @param event TODO + */ + protected void fireMenuDragMouseReleased(MenuDragMouseEvent event) { + // TODO + } // fireMenuDragMouseReleased() + + /** + * fireMenuKeyPressed + * @param event TODO + */ + protected void fireMenuKeyPressed(MenuKeyEvent event) { + // TODO + } // fireMenuKeyPressed() + + /** + * fireMenuKeyReleased + * @param event TODO + */ + protected void fireMenuKeyReleased(MenuKeyEvent event) { + // TODO + } // fireMenuKeyReleased() + + /** + * fireMenuKeyTyped + * @param event TODO + */ + protected void fireMenuKeyTyped(MenuKeyEvent event) { + // TODO + } // fireMenuKeyTyped() + + /** + * menuSelectionChanged + * @param changed TODO + */ + public void menuSelectionChanged(boolean changed) { + // TODO + } // menuSelectionChanged() + + /** + * getSubElements + * @returns MenuElement[] + */ + public MenuElement[] getSubElements() { + return null; // TODO + } // getSubElements() + + /** + * getComponent + * @returns Component + */ + public Component getComponent() { + return null; // TODO + } // getComponent() + + /** + * addMenuDragMouseListener + * @param listener TODO + */ + public void addMenuDragMouseListener(MenuDragMouseListener listener) { + // TODO + } // addMenuDragMouseListener() + + /** + * removeMenuDragMouseListener + * @param listener TODO + */ + public void removeMenuDragMouseListener(MenuDragMouseListener listener) { + // TODO + } // removeMenuDragMouseListener() + + /** + * addMenuKeyListener + * @param listener TODO + */ + public void addMenuKeyListener(MenuKeyListener listener) { + // TODO + } // addMenuKeyListener() + + /** + * removeMenuKeyListener + * @param listener TODO + */ + public void removeMenuKeyListener(MenuKeyListener listener) { + // TODO + } // removeMenuKeyListener() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJMenuItem(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JMenuItem diff --git a/javax/swing/JPasswordField.java b/javax/swing/JPasswordField.java new file mode 100644 index 000000000..3e28a8fc1 --- /dev/null +++ b/javax/swing/JPasswordField.java @@ -0,0 +1,265 @@ +/* JPasswordField.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import javax.accessibility.*; +import javax.swing.text.*; + +/** + * JPasswordField + * @author Andrew Selkirk + * @version 1.0 + */ +public class JPasswordField extends JTextField { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJPasswordField + */ + protected class AccessibleJPasswordField extends AccessibleJTextField { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJPasswordField + * @param component TODO + */ + protected AccessibleJPasswordField(JPasswordField component) { + super(component); + // TODO + } // AccessibleJPasswordField() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.PASSWORD_TEXT; + } // getAccessibleRole() + + + } // AccessibleJPasswordField + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "PasswordFIeldUI"; + + /** + * echoChar. Default is 0 + */ + private char echoChar = 0; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JPasswordField + */ + public JPasswordField() { + // TODO + } // JPasswordField() + + /** + * Constructor JPasswordField + * @param text TODO + */ + public JPasswordField(String text) { + // TODO + } // JPasswordField() + + /** + * Constructor JPasswordField + * @param columns TODO + */ + public JPasswordField(int columns) { + // TODO + } // JPasswordField() + + /** + * Constructor JPasswordField + * @param text TODO + * @param columns TODO + */ + public JPasswordField(String text, int columns) { + // TODO + } // JPasswordField() + + /** + * Constructor JPasswordField + * @param document TODO + * @param text TODO + * @param columns TODO + */ + public JPasswordField(Document document, String text, int columns) { + // TODO + } // JPasswordField() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * copy + */ + public void copy() { + // TODO + } // copy() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getEchoChar + * @returns char + */ + public char getEchoChar() { + return echoChar; + } // getEchoChar() + + /** + * setEchoChar + * @param echo TODO + */ + public void setEchoChar(char echo) { + this.echoChar = echo; + // TODO + } // setEchoChar() + + /** + * echoCharIsSet + * @returns boolean + */ + public boolean echoCharIsSet() { + return (echoChar == 0); + } // echoCharIsSet() + + /** + * cut + */ + public void cut() { + // TODO + } // cut() + + /** + * getText + * @returns String + */ + public String getText() { + return null; // TODO + } // getText() + + /** + * getText + * @param offset TODO + * @param length TODO + * @exception BadLocationException TODO + * @returns String + */ + public String getText(int offset, int length) throws BadLocationException { + return null; // TODO + } // getText() + + /** + * getPassword + * @returns char[] + */ + public char[] getPassword() { + return null; // TODO + } // getPassword() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJPasswordField(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JPasswordField diff --git a/javax/swing/JPopupMenu.java b/javax/swing/JPopupMenu.java new file mode 100644 index 000000000..a787332f1 --- /dev/null +++ b/javax/swing/JPopupMenu.java @@ -0,0 +1,667 @@ +/* JPopupMenu.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; +import java.beans.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.event.*; +import javax.swing.plaf.*; + +/** + * JPopupMenu + * @author Andrew Selkirk + * @version 1.0 + */ +public class JPopupMenu extends JComponent implements Accessible, MenuElement { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * Separator + */ + public static class Separator extends JSeparator { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor Separator + */ + public Separator() { + // TODO + } // Separator() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return null; // TODO + } // getUIClassID() + + + } // Separator + + /** + * AccessibleJPopupMenu + */ + protected class AccessibleJPopupMenu extends AccessibleJComponent { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJPopupMenu + * @param component TODO + */ + protected AccessibleJPopupMenu(JPopupMenu component) { + super(component); + // TODO + } // AccessibleJPopupMenu() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.POPUP_MENU; + } // getAccessibleRole() + + + } // AccessibleJPopupMenu + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "PopupMenuUI"; + + /** + * invoker + */ + transient Component invoker; + + /** + * desiredLocationX + */ + private int desiredLocationX; + + /** + * desiredLocationY + */ + private int desiredLocationY; + + /** + * label + */ + private String label; + + /** + * paintBorder + */ + private boolean paintBorder; + + /** + * margin + */ + private Insets margin; + + /** + * defaultLWPopupEnabledKey + */ + private static final Object defaultLWPopupEnabledKey = null; // TODO + + /** + * lightWeightPopupEnabled + */ + private boolean lightWeightPopupEnabled; + + /** + * selectionModel + */ + private SingleSelectionModel selectionModel; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JPopupMenu + */ + public JPopupMenu() { + // TODO + } // JPopupMenu() + + /** + * Constructor JPopupMenu + * @param label TODO + */ + public JPopupMenu(String label) { + // TODO + } // JPopupMenu() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * readObject + * @param stream TODO + * @exception IOException TODO + * @exception ClassNotFoundException TODO + */ + private void readObject(ObjectInputStream stream) + throws IOException, ClassNotFoundException { + // TODO + } // readObject() + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * add + * @param item TODO + * @returns JMenuItem + */ + public JMenuItem add(JMenuItem item) { + return null; // TODO + } // add() + + /** + * add + * @param text TODO + * @returns JMenuItem + */ + public JMenuItem add(String text) { + return null; // TODO + } // add() + + /** + * add + * @param action TODO + * @returns JMenuItem + */ + public JMenuItem add(Action action) { + return null; // TODO + } // add() + + /** + * remove + * @param index TODO + */ + public void remove(int index) { + // TODO + } // remove() + + /** + * insert + * @param action TODO + * @param index TODO + */ + public void insert(Action action, int index) { + // TODO + } // insert() + + /** + * insert + * @param component TODO + * @param index TODO + */ + public void insert(Component component, int index) { + // TODO + } // insert() + + /** + * paintBorder + * @param graphics TODO + */ + protected void paintBorder(Graphics graphics) { + // TODO + } // paintBorder() + + /** + * getDefaultLightWeightPopupEnabled + * @returns boolean + */ + public static boolean getDefaultLightWeightPopupEnabled() { + return false; // TODO + } // getDefaultLightWeightPopupEnabled() + + /** + * setDefaultLightWeightPopupEnabled + * @param enabled TODO + */ + public static void setDefaultLightWeightPopupEnabled(boolean enabled) { + // TODO + } // setDefaultLightWeightPopupEnabled() + + /** + * getUI + * @returns PopupMenuUI + */ + public PopupMenuUI getUI() { + return (PopupMenuUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(PopupMenuUI ui) { + super.setUI(ui); + // TODO + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((PopupMenuUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getSelectionModel + * @returns SingleSelectionModel + */ + public SingleSelectionModel getSelectionModel() { + return null; // TODO + } // getSelectionModel() + + /** + * setSelectionModel + * @param model TODO + */ + public void setSelectionModel(SingleSelectionModel model) { + // TODO + } // setSelectionModel() + + /** + * createActionComponent + * @param action TODO + * @returns JMenuItem + */ + protected JMenuItem createActionComponent(Action action) { + return null; // TODO + } // createActionComponent() + + /** + * createActionChangeListener + * @param item TODO + * @returns PropertyChangeListener + */ + protected PropertyChangeListener createActionChangeListener(JMenuItem item) { + return null; // TODO + } // createActionChangeListener() + + /** + * isLightWeightPopupEnabled + * @returns boolean + */ + public boolean isLightWeightPopupEnabled() { + return false; // TODO + } // isLightWeightPopupEnabled() + + /** + * setLightWeightPopupEnabled + * @param enabled TODO + */ + public void setLightWeightPopupEnabled(boolean enabled) { + // TODO + } // setLightWeightPopupEnabled() + + /** + * getLabel + * @returns String + */ + public String getLabel() { + return null; // TODO + } // getLabel() + + /** + * setLabel + * @param label TODO + */ + public void setLabel(String label) { + // TODO + } // setLabel() + + /** + * addSeparator + */ + public void addSeparator() { + // TODO + } // addSeparator() + + /** + * addPopupMenuListener + * @param listener TODO + */ + public void addPopupMenuListener(PopupMenuListener listener) { + // TODO + } // addPopupMenuListener() + + /** + * removePopupMenuListener + * @param listener TODO + */ + public void removePopupMenuListener(PopupMenuListener listener) { + // TODO + } // removePopupMenuListener() + + /** + * firePopupMenuWillBecomeVisible + */ + protected void firePopupMenuWillBecomeVisible() { + // TODO + } // firePopupMenuWillBecomeVisible() + + /** + * firePopupMenuWillBecomeInvisible + */ + protected void firePopupMenuWillBecomeInvisible() { + // TODO + } // firePopupMenuWillBecomeInvisible() + + /** + * firePopupMenuCanceled + */ + protected void firePopupMenuCanceled() { + // TODO + } // firePopupMenuCanceled() + + /** + * pack + */ + public void pack() { + // TODO + } // pack() + + /** + * isVisible + * @returns boolean + */ + public boolean isVisible() { + return false; // TODO + } // isVisible() + + /** + * setVisible + * @param visible TODO + */ + public void setVisible(boolean visible) { + // TODO + } // setVisible() + + /** + * setLocation + * @param x TODO + * @param y TODO + */ + public void setLocation(int x, int y) { + // TODO + } // setLocation() + + /** + * isPopupMenu + * @returns boolean + */ + private boolean isPopupMenu() { + return false; // TODO + } // isPopupMenu() + + /** + * getInvoker + * @returns Component + */ + public Component getInvoker() { + return null; // TODO + } // getInvoker() + + /** + * setInvoker + * @param component TODO + */ + public void setInvoker(Component component) { + // TODO + } // setInvoker() + + /** + * show + * @param component TODO + * @param x TODO + * @param y TODO + */ + public void show(Component component, int x, int y) { + // TODO + } // show() + + /** + * getRootPopupMenu + * @returns JPopupMenu + */ + JPopupMenu getRootPopupMenu() { + return null; // TODO + } // getRootPopupMenu() + + /** + * getComponentAtIndex + * @param index TODO + * @returns Component + */ + public Component getComponentAtIndex(int index) { + return null; // TODO + } // getComponentAtIndex() + + /** + * getComponentIndex + * @param component TODO + * @returns int + */ + public int getComponentIndex(Component component) { + return 0; // TODO + } // getComponentIndex() + + /** + * setPopupSize + * @param size TODO + */ + public void setPopupSize(Dimension size) { + // TODO + } // setPopupSize() + + /** + * setPopupSize + * @param x TODO + * @param y TODO + */ + public void setPopupSize(int x, int y) { + // TODO + } // setPopupSize() + + /** + * setSelected + * @param selected TODO + */ + public void setSelected(Component selected) { + // TODO + } // setSelected() + + /** + * isBorderPainted + * @returns boolean + */ + public boolean isBorderPainted() { + return false; // TODO + } // isBorderPainted() + + /** + * setBorderPainted + * @param painted TODO + */ + public void setBorderPainted(boolean painted) { + // TODO + } // setBorderPainted() + + /** + * getMargin + * @returns Insets + */ + public Insets getMargin() { + return null; // TODO + } // getMargin() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * processMouseEvent + * @param event TODO + * @param path TODO + * @param manager TODO + */ + public void processMouseEvent(MouseEvent event, MenuElement[] path, + MenuSelectionManager manager) { + // TODO + } // processMouseEvent() + + /** + * processKeyEvent + * @param event TODO + * @param path TODO + * @param manager TODO + */ + public void processKeyEvent(KeyEvent event, MenuElement[] path, + MenuSelectionManager manager) { + // TODO + } // processKeyEvent() + + /** + * menuSelectionChanged + * @param changed TODO + */ + public void menuSelectionChanged(boolean changed) { + // TODO + } // menuSelectionChanged() + + /** + * getSubElements + * @returns MenuElement[] + */ + public MenuElement[] getSubElements() { + return null; // TODO + } // getSubElements() + + /** + * getComponent + * @returns Component + */ + public Component getComponent() { + return null; // TODO + } // getComponent() + + /** + * isPopupTrigger + * @param event TODO + * @returns boolean + */ + public boolean isPopupTrigger(MouseEvent event) { + return false; // TODO + } // isPopupTrigger() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJPopupMenu(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JPopupMenu diff --git a/javax/swing/JProgressBar.java b/javax/swing/JProgressBar.java new file mode 100644 index 000000000..6558bf83a --- /dev/null +++ b/javax/swing/JProgressBar.java @@ -0,0 +1,482 @@ +/* JProgressBar.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.event.*; +import javax.swing.plaf.*; + +/** + * JProgressBar + * @author Andrew Selkirk + * @version 1.0 + */ +public class JProgressBar extends JComponent implements SwingConstants, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + + /** + * AccessibleJProgressBar + */ + protected class AccessibleJProgressBar extends AccessibleJComponent + implements AccessibleValue { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJProgressBar + * @param component TODO + */ + protected AccessibleJProgressBar(JProgressBar component) { + super(component); + // TODO + } // AccessibleJProgressBar() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.PROGRESS_BAR; + } // getAccessibleRole() + + /** + * getAccessibleValue + * @returns AccessibleValue + */ + public AccessibleValue getAccessibleValue() { + return null; // TODO + } // getAccessibleValue() + + /** + * getCurrentAccessibleValue + * @returns Number + */ + public Number getCurrentAccessibleValue() { + return null; // TODO + } // getCurrentAccessibleValue() + + /** + * setCurrentAccessibleValue + * @param value0 TODO + * @returns boolean + */ + public boolean setCurrentAccessibleValue(Number value0) { + return false; // TODO + } // setCurrentAccessibleValue() + + /** + * getMinimumAccessibleValue + * @returns Number + */ + public Number getMinimumAccessibleValue() { + return null; // TODO + } // getMinimumAccessibleValue() + + /** + * getMaximumAccessibleValue + * @returns Number + */ + public Number getMaximumAccessibleValue() { + return null; // TODO + } // getMaximumAccessibleValue() + + + } // AccessibleJProgressBar + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "ProgressBarUI"; + + /** + * orientation + */ + protected int orientation; + + /** + * paintBorder + */ + protected boolean paintBorder; + + /** + * model + */ + protected BoundedRangeModel model; + + /** + * progressString + */ + protected String progressString; + + /** + * paintString + */ + protected boolean paintString; + + /** + * changeEvent + */ + protected transient ChangeEvent changeEvent; + + /** + * changeListener + */ + protected ChangeListener changeListener; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JProgressBar + */ + public JProgressBar() { + // TODO + } // JProgressBar() + + /** + * Constructor JProgressBar + * @param orientation TODO + */ + public JProgressBar(int orientation) { + // TODO + } // JProgressBar() + + /** + * Constructor JProgressBar + * @param minimum TODO + * @param maximum TODO + */ + public JProgressBar(int minimum, int maximum) { + // TODO + } // JProgressBar() + + /** + * Constructor JProgressBar + * @param minimum TODO + * @param maximum TODO + * @param orientation TODO + */ + public JProgressBar(int minimum, int maximum, int orientation) { + // TODO + } // JProgressBar() + + /** + * Constructor JProgressBar + * @param model TODO + */ + public JProgressBar(BoundedRangeModel model) { + // TODO + } // JProgressBar() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getValue + * @returns int + */ + public int getValue() { + return 0; // TODO + } // getValue() + + /** + * setValue + * @param value TODO + */ + public void setValue(int value) { + // TODO + } // setValue() + + /** + * paintBorder + * @param graphics TODO + */ + protected void paintBorder(Graphics graphics) { + // TODO + } // paintBorder() + + /** + * getOrientation + * @returns int + */ + public int getOrientation() { + return 0; // TODO + } // getOrientation() + + /** + * setOrientation + * @param orientation TODO + */ + public void setOrientation(int orientation) { + // TODO + } // setOrientation() + + /** + * isStringPainted + * @returns boolean + */ + public boolean isStringPainted() { + return false; // TODO + } // isStringPainted() + + /** + * setStringPainted + * @param painted TODO + */ + public void setStringPainted(boolean painted) { + // TODO + } // setStringPainted() + + /** + * getString + * @returns String + */ + public String getString() { + return null; // TODO + } // getString() + + /** + * setString + * @param string TODO + */ + public void setString(String string) { + // TODO + } // setString() + + /** + * getPercentComplete + * @returns double + */ + public double getPercentComplete() { + return 0.0; // TODO + } // getPercentComplete() + + /** + * isBorderPainted + * @returns boolean + */ + public boolean isBorderPainted() { + return false; // TODO + } // isBorderPainted() + + /** + * setBorderPainted + * @param painted TODO + */ + public void setBorderPainted(boolean painted) { + // TODO + } // setBorderPainted() + + /** + * getUI + * @returns ProgressBarUI + */ + public ProgressBarUI getUI() { + return (ProgressBarUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(ProgressBarUI ui) { + super.setUI(ui); + // TODO + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((ProgressBarUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * createChangeListener + * @returns ChangeListener + */ + protected ChangeListener createChangeListener() { + return null; // TODO + } // createChangeListener() + + /** + * addChangeListener + * @param listener TODO + */ + public void addChangeListener(ChangeListener listener) { + // TODO + } // addChangeListener() + + /** + * removeChangeListener + * @param listener TODO + */ + public void removeChangeListener(ChangeListener valulistener) { + // TODO + } // removeChangeListener() + + /** + * fireStateChanged + */ + protected void fireStateChanged() { + // TODO + } // fireStateChanged() + + /** + * getModel + * @returns BoundedRangeModel + */ + public BoundedRangeModel getModel() { + return null; // TODO + } // getModel() + + /** + * setModel + * @param model TODO + */ + public void setModel(BoundedRangeModel model) { + // TODO + } // setModel() + + /** + * getMinimum + * @returns int + */ + public int getMinimum() { + return 0; // TODO + } // getMinimum() + + /** + * setMinimum + * @param minimum TODO + */ + public void setMinimum(int minimum) { + // TODO + } // setMinimum() + + /** + * getMaximum + * @returns int + */ + public int getMaximum() { + return 0; // TODO + } // getMaximum() + + /** + * setMaximum + * @param maximum TODO + */ + public void setMaximum(int maximum) { + // TODO + } // setMaximum() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJProgressBar(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JProgressBar diff --git a/javax/swing/JRadioButtonMenuItem.java b/javax/swing/JRadioButtonMenuItem.java new file mode 100644 index 000000000..208b678ee --- /dev/null +++ b/javax/swing/JRadioButtonMenuItem.java @@ -0,0 +1,221 @@ +/* JRadioButtonMenuItem.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import javax.accessibility.*; + +/** + * JRadioButtonMenuItem + * @author Andrew Selkirk + * @version 1.0 + */ +public class JRadioButtonMenuItem extends JMenuItem implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJRadioButtonMenuItem + */ + protected class AccessibleJRadioButtonMenuItem extends AccessibleJMenuItem { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJRadioButtonMenuItem + * @param component TODO + */ + protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { + super(component); + // TODO + } // AccessibleJRadioButtonMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.RADIO_BUTTON; + } // getAccessibleRole() + + + } // AccessibleJRadioButtonMenuItem + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "RadioButtonMenuItemUI"; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JRadioButtonMenuItem + */ + public JRadioButtonMenuItem() { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param icon TODO + */ + public JRadioButtonMenuItem(Icon icon) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param text TODO + */ + public JRadioButtonMenuItem(String text) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param action TODO + */ + public JRadioButtonMenuItem(Action action) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param text TODO + * @param icon TODO + */ + public JRadioButtonMenuItem(String text, Icon icon) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param text TODO + * @param selected TODO + */ + public JRadioButtonMenuItem(String text, boolean selected) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param icon TODO + * @param selected TODO + */ + public JRadioButtonMenuItem(Icon icon, boolean selected) { + // TODO + } // JRadioButtonMenuItem() + + /** + * Constructor JRadioButtonMenuItem + * @param text TODO + * @param icon TODO + * @param selected TODO + */ + public JRadioButtonMenuItem(String text, Icon icon, boolean selected) { + // TODO + } // JRadioButtonMenuItem() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * requestFocus + */ + public void requestFocus() { + // TODO + } // requestFocus() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJRadioButtonMenuItem(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JRadioButtonMenuItem diff --git a/javax/swing/JSeparator.java b/javax/swing/JSeparator.java new file mode 100644 index 000000000..a49a77faa --- /dev/null +++ b/javax/swing/JSeparator.java @@ -0,0 +1,223 @@ +/* JSeparator.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import javax.accessibility.*; +import javax.swing.plaf.*; + +/** + * JSeparator + * @author Andrew Selkirk + * @version 1.0 + */ +public class JSeparator extends JComponent + implements SwingConstants, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJSeparator + */ + protected class AccessibleJSeparator extends AccessibleJComponent { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJSeparator + * @param component TODO + */ + protected AccessibleJSeparator(JSeparator component) { + super(component); + // TODO + } // AccessibleJSeparator() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.SEPARATOR; + } // getAccessibleRole() + + + } // AccessibleJSeparator + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "SeparatorUI"; + + /** + * orientation + */ + private int orientation; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JSeparator + */ + public JSeparator() { + this(HORIZONTAL); + } // JSeparator() + + /** + * Constructor JSeparator + * @param value0 TODO + */ + public JSeparator(int orientation) { + this.orientation = orientation; + // TODO + } // JSeparator() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getUI + * @returns SeparatorUI + */ + public SeparatorUI getUI() { + return (SeparatorUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(SeparatorUI ui) { + super.setUI(ui); + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((SeparatorUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getOrientation + * @returns int + */ + public int getOrientation() { + return orientation; + } // getOrientation() + + /** + * setOrientation + * @param orientation TODO + */ + public void setOrientation(int orientation) { + this.orientation = orientation; + // TODO + } // setOrientation() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * isFocusTraversable + * @returns boolean + */ + public boolean isFocusTraversable() { + return false; + } // isFocusTraversable() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJSeparator(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JSeparator diff --git a/javax/swing/JSlider.java b/javax/swing/JSlider.java new file mode 100644 index 000000000..e0588288d --- /dev/null +++ b/javax/swing/JSlider.java @@ -0,0 +1,689 @@ +/* JSlider.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.io.*; +import java.util.*; +import javax.accessibility.*; +import javax.swing.event.*; +import javax.swing.plaf.*; + +/** + * JSlider + * @author Andrew Selkirk + * @version 1.0 + */ +public class JSlider extends JComponent implements SwingConstants, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + + /** + * AccessibleJSlider + */ + protected class AccessibleJSlider extends JComponent.AccessibleJComponent implements AccessibleValue { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJSlider + * @param value0 TODO + */ + protected AccessibleJSlider(JSlider value0) { + super(value0); + // TODO + } // AccessibleJSlider() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return null; // TODO + } // getAccessibleRole() + + /** + * getAccessibleValue + * @returns AccessibleValue + */ + public AccessibleValue getAccessibleValue() { + return null; // TODO + } // getAccessibleValue() + + /** + * getCurrentAccessibleValue + * @returns Number + */ + public Number getCurrentAccessibleValue() { + return null; // TODO + } // getCurrentAccessibleValue() + + /** + * setCurrentAccessibleValue + * @param value0 TODO + * @returns boolean + */ + public boolean setCurrentAccessibleValue(Number value0) { + return false; // TODO + } // setCurrentAccessibleValue() + + /** + * getMinimumAccessibleValue + * @returns Number + */ + public Number getMinimumAccessibleValue() { + return null; // TODO + } // getMinimumAccessibleValue() + + /** + * getMaximumAccessibleValue + * @returns Number + */ + public Number getMaximumAccessibleValue() { + return null; // TODO + } // getMaximumAccessibleValue() + + + } // AccessibleJSlider + + /** + * ModelListener + */ + private class ModelListener implements ChangeListener, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ModelListener + * @param value0 TODO + */ + private ModelListener(JSlider value0) { + // TODO + } // ModelListener() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * stateChanged + * @param value0 TODO + */ + public void stateChanged(ChangeEvent value0) { + // TODO + } // stateChanged() + + + } // ModelListener + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "SliderUI"; + + /** + * paintTicks + */ + private boolean paintTicks; + + /** + * paintTrack + */ + private boolean paintTrack; + + /** + * paintLabels + */ + private boolean paintLabels; + + /** + * isInverted + */ + private boolean isInverted; + + /** + * sliderModel + */ + protected BoundedRangeModel sliderModel; + + /** + * majorTickSpacing + */ + protected int majorTickSpacing; + + /** + * minorTickSpacing + */ + protected int minorTickSpacing; + + /** + * snapToTicks + */ + protected boolean snapToTicks; + + /** + * snapToValue + */ + boolean snapToValue; + + /** + * orientation + */ + protected int orientation; + + /** + * labelTable + */ + private Dictionary labelTable; + + /** + * changeListener + */ + protected ChangeListener changeListener; + + /** + * changeEvent + */ + protected transient ChangeEvent changeEvent; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JSlider + */ + public JSlider() { + // TODO + } // JSlider() + + /** + * Constructor JSlider + * @param value0 TODO + */ + public JSlider(int orientation) { + // TODO + } // JSlider() + + /** + * Constructor JSlider + * @param minimum TODO + * @param maximum TODO + */ + public JSlider(int minimum, int maximum) { + // TODO + } // JSlider() + + /** + * Constructor JSlider + * @param minimum TODO + * @param maximum TODO + * @param value TODO + */ + public JSlider(int minimum, int maximum, int value) { + // TODO + } // JSlider() + + /** + * Constructor JSlider + * @param orientation TODO + * @param minimum TODO + * @param maximum TODO + * @param value TODO + */ + public JSlider(int orientation, int minimum, int maximum, int value) { + // TODO + } // JSlider() + + /** + * Constructor JSlider + * @param value0 TODO + */ + public JSlider(BoundedRangeModel model) { + // TODO + } // JSlider() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getValue + * @returns int + */ + public int getValue() { + return 0; // TODO + } // getValue() + + /** + * setValue + * @param value0 TODO + */ + public void setValue(int value) { + // TODO + } // setValue() + + /** + * getUI + * @returns SliderUI + */ + public SliderUI getUI() { + return (SliderUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(SliderUI ui) { + super.setUI(ui); + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((SliderUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * createChangeListener + * @returns ChangeListener + */ + protected ChangeListener createChangeListener() { + return null; // TODO + } // createChangeListener() + + /** + * addChangeListener + * @param listener TODO + */ + public void addChangeListener(ChangeListener listener) { + // TODO + } // addChangeListener() + + /** + * removeChangeListener + * @param listener TODO + */ + public void removeChangeListener(ChangeListener listener) { + // TODO + } // removeChangeListener() + + /** + * fireStateChanged + */ + protected void fireStateChanged() { + // TODO + } // fireStateChanged() + + /** + * getModel + * @returns BoundedRangeModel + */ + public BoundedRangeModel getModel() { + return null; // TODO + } // getModel() + + /** + * setModel + * @param model TODO + */ + public void setModel(BoundedRangeModel model) { + // TODO + } // setModel() + + /** + * getMinimum + * @returns int + */ + public int getMinimum() { + return 0; // TODO + } // getMinimum() + + /** + * setMinimum + * @param minimum TODO + */ + public void setMinimum(int minimum) { + // TODO + } // setMinimum() + + /** + * getMaximum + * @returns int + */ + public int getMaximum() { + return 0; // TODO + } // getMaximum() + + /** + * setMaximum + * @param maximum TODO + */ + public void setMaximum(int maximum) { + // TODO + } // setMaximum() + + /** + * getValueIsAdjusting + * @returns boolean + */ + public boolean getValueIsAdjusting() { + return false; // TODO + } // getValueIsAdjusting() + + /** + * setValueIsAdjusting + * @param adjusting TODO + */ + public void setValueIsAdjusting(boolean adjusting) { + // TODO + } // setValueIsAdjusting() + + /** + * getExtent + * @returns int + */ + public int getExtent() { + return 0; // TODO + } // getExtent() + + /** + * setExtent + * @param vextent TODO + */ + public void setExtent(int extent) { + // TODO + } // setExtent() + + /** + * getOrientation + * @returns int + */ + public int getOrientation() { + return 0; // TODO + } // getOrientation() + + /** + * setOrientation + * @param orientation TODO + */ + public void setOrientation(int orientation) { + // TODO + } // setOrientation() + + /** + * getLabelTable + * @returns Dictionary + */ + public Dictionary getLabelTable() { + return null; // TODO + } // getLabelTable() + + /** + * setLabelTable + * @param table TODO + */ + public void setLabelTable(Dictionary table) { + // TODO + } // setLabelTable() + + /** + * updateLabelUIs + */ + protected void updateLabelUIs() { + // TODO + } // updateLabelUIs() + + /** + * createStandardLabels + * @param increment TODO + * @returns Hashtable + */ + public Hashtable createStandardLabels(int increment) { + return null; // TODO + } // createStandardLabels() + + /** + * createStandardLabels + * @param increment TODO + * @param start TODO + * @returns Hashtable + */ + public Hashtable createStandardLabels(int increment, int start) { + return null; // TODO + } // createStandardLabels() + + /** + * getInverted + * @returns boolean + */ + public boolean getInverted() { + return false; // TODO + } // getInverted() + + /** + * setInverted + * @param inverted TODO + */ + public void setInverted(boolean inverted) { + // TODO + } // setInverted() + + /** + * getMajorTickSpacing + * @returns int + */ + public int getMajorTickSpacing() { + return 0; // TODO + } // getMajorTickSpacing() + + /** + * setMajorTickSpacing + * @param spacing TODO + */ + public void setMajorTickSpacing(int spacing) { + // TODO + } // setMajorTickSpacing() + + /** + * getMinorTickSpacing + * @returns int + */ + public int getMinorTickSpacing() { + return 0; // TODO + } // getMinorTickSpacing() + + /** + * setMinorTickSpacing + * @param spacing TODO + */ + public void setMinorTickSpacing(int spacing) { + // TODO + } // setMinorTickSpacing() + + /** + * getSnapToTicks + * @returns boolean + */ + public boolean getSnapToTicks() { + return false; // TODO + } // getSnapToTicks() + + /** + * getSnapToValue + * @returns boolean + */ + boolean getSnapToValue() { + return false; // TODO + } // getSnapToValue() + + /** + * setSnapToTicks + * @param snap TODO + */ + public void setSnapToTicks(boolean snap) { + // TODO + } // setSnapToTicks() + + /** + * getPaintTicks + * @returns boolean + */ + public boolean getPaintTicks() { + return false; // TODO + } // getPaintTicks() + + /** + * setPaintTicks + * @param paint TODO + */ + public void setPaintTicks(boolean paint) { + // TODO + } // setPaintTicks() + + /** + * getPaintTrack + * @returns boolean + */ + public boolean getPaintTrack() { + return false; // TODO + } // getPaintTrack() + + /** + * setPaintTrack + * @param paint TODO + */ + public void setPaintTrack(boolean paint) { + // TODO + } // setPaintTrack() + + /** + * getPaintLabels + * @returns boolean + */ + public boolean getPaintLabels() { + return false; // TODO + } // getPaintLabels() + + /** + * setPaintLabels + * @param paint TODO + */ + public void setPaintLabels(boolean paint) { + // TODO + } // setPaintLabels() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJSlider(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JSlider diff --git a/javax/swing/JSplitPane.java b/javax/swing/JSplitPane.java new file mode 100644 index 000000000..f47ef7595 --- /dev/null +++ b/javax/swing/JSplitPane.java @@ -0,0 +1,643 @@ +/* JSplitPane.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.plaf.*; + +/** + * JSplitPane + * @author Andrew Selkirk + * @version 1.0 + */ +public class JSplitPane extends JComponent implements Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJSplitPane + */ + protected class AccessibleJSplitPane extends AccessibleJComponent + implements AccessibleValue { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJSplitPane + * @param component TODO + */ + protected AccessibleJSplitPane(JSplitPane component) { + super(component); + // TODO + } // AccessibleJSplitPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.SPLIT_PANE; + } // getAccessibleRole() + + /** + * getAccessibleValue + * @returns AccessibleValue + */ + public AccessibleValue getAccessibleValue() { + return null; // TODO + } // getAccessibleValue() + + /** + * getCurrentAccessibleValue + * @returns Number + */ + public Number getCurrentAccessibleValue() { + return null; // TODO + } // getCurrentAccessibleValue() + + /** + * setCurrentAccessibleValue + * @param value0 TODO + * @returns boolean + */ + public boolean setCurrentAccessibleValue(Number value0) { + return false; // TODO + } // setCurrentAccessibleValue() + + /** + * getMinimumAccessibleValue + * @returns Number + */ + public Number getMinimumAccessibleValue() { + return null; // TODO + } // getMinimumAccessibleValue() + + /** + * getMaximumAccessibleValue + * @returns Number + */ + public Number getMaximumAccessibleValue() { + return null; // TODO + } // getMaximumAccessibleValue() + + + } // AccessibleJSplitPane + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "SplitPaneUI"; + + /** + * VERTICAL_SPLIT + */ + public static final int VERTICAL_SPLIT = 0; + + /** + * HORIZONTAL_SPLIT + */ + public static final int HORIZONTAL_SPLIT = 1; + + /** + * LEFT + */ + public static final String LEFT = "left"; + + /** + * RIGHT + */ + public static final String RIGHT = "right"; + + /** + * TOP + */ + public static final String TOP = "top"; + + /** + * BOTTOM + */ + public static final String BOTTOM = "bottom"; + + /** + * DIVIDER + */ + public static final String DIVIDER = "divider"; + + /** + * ORIENTATION_PROPERTY + */ + public static final String ORIENTATION_PROPERTY = "orientation"; + + /** + * CONTINUOUS_LAYOUT_PROPERTY + */ + public static final String CONTINUOUS_LAYOUT_PROPERTY = "continuousLayout"; + + /** + * DIVIDER_SIZE_PROPERTY + */ + public static final String DIVIDER_SIZE_PROPERTY = "dividerSize"; + + /** + * ONE_TOUCH_EXPANDABLE_PROPERTY + */ + public static final String ONE_TOUCH_EXPANDABLE_PROPERTY = "oneTouchExpandable"; + + /** + * LAST_DIVIDER_LOCATION_PROPERTY + */ + public static final String LAST_DIVIDER_LOCATION_PROPERTY = "lastDividerLocation"; + + /** + * DIVIDER_LOCATION_PROPERTY + */ + public static final String DIVIDER_LOCATION_PROPERTY = "dividerLocation"; + + /** + * RESIZE_WEIGHT_PROPERTY + */ + public static final String RESIZE_WEIGHT_PROPERTY = "resizeWeight"; + + /** + * orientation + */ + protected int orientation; + + /** + * continuousLayout + */ + protected boolean continuousLayout; + + /** + * leftComponent + */ + protected Component leftComponent; + + /** + * rightComponent + */ + protected Component rightComponent; + + /** + * dividerSize + */ + protected int dividerSize; + + /** + * oneTouchExpandable + */ + protected boolean oneTouchExpandable; + + /** + * lastDividerLocation + */ + protected int lastDividerLocation; + + /** + * resizeWeight + */ + private double resizeWeight; + + /** + * dividerLocation + */ + private int dividerLocation; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JSplitPane + */ + public JSplitPane() { + // TODO + } // JSplitPane() + + /** + * Constructor JSplitPane + * @param value0 TODO + */ + public JSplitPane(int value0) { + // TODO + } // JSplitPane() + + /** + * Constructor JSplitPane + * @param value0 TODO + * @param value1 TODO + */ + public JSplitPane(int value0, boolean value1) { + // TODO + } // JSplitPane() + + /** + * Constructor JSplitPane + * @param value0 TODO + * @param value1 TODO + * @param value2 TODO + */ + public JSplitPane(int value0, Component value1, Component value2) { + // TODO + } // JSplitPane() + + /** + * Constructor JSplitPane + * @param value0 TODO + * @param value1 TODO + * @param value2 TODO + * @param value3 TODO + */ + public JSplitPane(int value0, boolean value1, Component value2, Component value3) { + // TODO + } // JSplitPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * remove + * @param value0 TODO + */ + public void remove(Component value0) { + // TODO + } // remove() + + /** + * remove + * @param value0 TODO + */ + public void remove(int value0) { + // TODO + } // remove() + + /** + * removeAll + */ + public void removeAll() { + // TODO + } // removeAll() + + /** + * setUI + * @param ui TODO + */ + public void setUI(SplitPaneUI ui) { + super.setUI(ui); + } // setUI() + + /** + * getUI + * @returns SplitPaneUI + */ + public SplitPaneUI getUI() { + return (SplitPaneUI) ui; + } // getUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((SplitPaneUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * setDividerSize + * @param value0 TODO + */ + public void setDividerSize(int value0) { + // TODO + } // setDividerSize() + + /** + * getDividerSize + * @returns int + */ + public int getDividerSize() { + return 0; // TODO + } // getDividerSize() + + /** + * setLeftComponent + * @param value0 TODO + */ + public void setLeftComponent(Component value0) { + // TODO + } // setLeftComponent() + + /** + * getLeftComponent + * @returns Component + */ + public Component getLeftComponent() { + return null; // TODO + } // getLeftComponent() + + /** + * setTopComponent + * @param value0 TODO + */ + public void setTopComponent(Component value0) { + // TODO + } // setTopComponent() + + /** + * getTopComponent + * @returns Component + */ + public Component getTopComponent() { + return null; // TODO + } // getTopComponent() + + /** + * setRightComponent + * @param value0 TODO + */ + public void setRightComponent(Component value0) { + // TODO + } // setRightComponent() + + /** + * getRightComponent + * @returns Component + */ + public Component getRightComponent() { + return null; // TODO + } // getRightComponent() + + /** + * setBottomComponent + * @param value0 TODO + */ + public void setBottomComponent(Component value0) { + // TODO + } // setBottomComponent() + + /** + * getBottomComponent + * @returns Component + */ + public Component getBottomComponent() { + return null; // TODO + } // getBottomComponent() + + /** + * setOneTouchExpandable + * @param value0 TODO + */ + public void setOneTouchExpandable(boolean value0) { + // TODO + } // setOneTouchExpandable() + + /** + * isOneTouchExpandable + * @returns boolean + */ + public boolean isOneTouchExpandable() { + return false; // TODO + } // isOneTouchExpandable() + + /** + * setLastDividerLocation + * @param value0 TODO + */ + public void setLastDividerLocation(int value0) { + // TODO + } // setLastDividerLocation() + + /** + * getLastDividerLocation + * @returns int + */ + public int getLastDividerLocation() { + return 0; // TODO + } // getLastDividerLocation() + + /** + * setOrientation + * @param value0 TODO + */ + public void setOrientation(int value0) { + // TODO + } // setOrientation() + + /** + * getOrientation + * @returns int + */ + public int getOrientation() { + return 0; // TODO + } // getOrientation() + + /** + * setContinuousLayout + * @param value0 TODO + */ + public void setContinuousLayout(boolean value0) { + // TODO + } // setContinuousLayout() + + /** + * isContinuousLayout + * @returns boolean + */ + public boolean isContinuousLayout() { + return false; // TODO + } // isContinuousLayout() + + /** + * setResizeWeight + * @param value0 TODO + */ + public void setResizeWeight(double value0) { + // TODO + } // setResizeWeight() + + /** + * getResizeWeight + * @returns double + */ + public double getResizeWeight() { + return 0.0; // TODO + } // getResizeWeight() + + /** + * resetToPreferredSizes + */ + public void resetToPreferredSizes() { + // TODO + } // resetToPreferredSizes() + + /** + * setDividerLocation + * @param value0 TODO + */ + public void setDividerLocation(double value0) { + // TODO + } // setDividerLocation() + + /** + * setDividerLocation + * @param value0 TODO + */ + public void setDividerLocation(int value0) { + // TODO + } // setDividerLocation() + + /** + * getDividerLocation + * @returns int + */ + public int getDividerLocation() { + return 0; // TODO + } // getDividerLocation() + + /** + * getMinimumDividerLocation + * @returns int + */ + public int getMinimumDividerLocation() { + return 0; // TODO + } // getMinimumDividerLocation() + + /** + * getMaximumDividerLocation + * @returns int + */ + public int getMaximumDividerLocation() { + return 0; // TODO + } // getMaximumDividerLocation() + + /** + * isValidateRoot + * @returns boolean + */ + public boolean isValidateRoot() { + return false; // TODO + } // isValidateRoot() + + /** + * addImpl + * @param value0 TODO + * @param value1 TODO + * @param value2 TODO + */ + protected void addImpl(Component value0, Object value1, int value2) { + // TODO + } // addImpl() + + /** + * paintChildren + * @param value0 TODO + */ + protected void paintChildren(Graphics value0) { + // TODO + } // paintChildren() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJSplitPane(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JSplitPane diff --git a/javax/swing/JTextField.java b/javax/swing/JTextField.java index bd79c6037..806aa27df 100644 --- a/javax/swing/JTextField.java +++ b/javax/swing/JTextField.java @@ -40,13 +40,46 @@ package javax.swing; import java.awt.event.*; import java.util.*; -import javax.accessibility.AccessibleContext; -import javax.accessibility.AccessibleRole; -import javax.accessibility.AccessibleState; -import javax.accessibility.AccessibleStateSet; +import javax.accessibility.*; public class JTextField extends JEditorPane { + + /** + * AccessibleJTextField + */ + protected class AccessibleJTextField extends AccessibleJTextComponent { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJTextField + * @param component TODO + */ + protected AccessibleJTextField(JTextField component) { + super(component); + // TODO + } // AccessibleJTextField() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + + } // AccessibleJTextField + + Vector actions = new Vector(); public JTextField() diff --git a/javax/swing/JTextPane.java b/javax/swing/JTextPane.java new file mode 100644 index 000000000..80e5a0e91 --- /dev/null +++ b/javax/swing/JTextPane.java @@ -0,0 +1,271 @@ +/* JTextPane.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.swing.text.*; + +/** + * JTextPane + * @author Andrew Selkirk + * @version 1.0 + */ +public class JTextPane extends JEditorPane { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "TextPaneUI"; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JTextPane + */ + public JTextPane() { + // TODO + } // JTextPane() + + /** + * Constructor JTextPane + * @param document TODO + */ + public JTextPane(StyledDocument document) { + // TODO + } // JTextPane() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * setDocument + * @param document TODO + */ + public void setDocument(Document document) { + // TODO + } // setDocument() + + /** + * getStyledDocument + * @returns StyledDocument + */ + public StyledDocument getStyledDocument() { + return null; // TODO + } // getStyledDocument() + + /** + * setStyledDocument + * @param document TODO + */ + public void setStyledDocument(StyledDocument document) { + // TODO + } // setStyledDocument() + + /** + * replaceSelection + * @param content TODO + */ + public void replaceSelection(String content) { + // TODO + } // replaceSelection() + + /** + * insertComponent + * @param component TODO + */ + public void insertComponent(Component component) { + // TODO + } // insertComponent() + + /** + * insertIcon + * @param icon TODO + */ + public void insertIcon(Icon icon) { + // TODO + } // insertIcon() + + /** + * addStyle + * @param nm TODO + * @param parent TODO + * @returns Style + */ + public Style addStyle(String nm, Style parent) { + return null; // TODO + } // addStyle() + + /** + * removeStyle + * @param nm TODO + */ + public void removeStyle(String nm) { + // TODO + } // removeStyle() + + /** + * getStyle + * @param nm TODO + * @returns Style + */ + public Style getStyle(String nm) { + return null; // TODO + } // getStyle() + + /** + * getLogicalStyle + * @returns Style + */ + public Style getLogicalStyle() { + return null; // TODO + } // getLogicalStyle() + + /** + * setLogicalStyle + * @param style TODO + */ + public void setLogicalStyle(Style style) { + // TODO + } // setLogicalStyle() + + /** + * getCharacterAttributes + * @returns AttributeSet + */ + public AttributeSet getCharacterAttributes() { + return null; // TODO + } // getCharacterAttributes() + + /** + * setCharacterAttributes + * @param attribute TODO + * @param replace TODO + */ + public void setCharacterAttributes(AttributeSet attribute, + boolean replace) { + // TODO + } // setCharacterAttributes() + + /** + * getParagraphAttributes + * @returns AttributeSet + */ + public AttributeSet getParagraphAttributes() { + return null; // TODO + } // getParagraphAttributes() + + /** + * setParagraphAttributes + * @param attribute TODO + * @param replace TODO + */ + public void setParagraphAttributes(AttributeSet attribute, + boolean replace) { + // TODO + } // setParagraphAttributes() + + /** + * getInputAttributes + * @returns MutableAttributeSet + */ + public MutableAttributeSet getInputAttributes() { + return null; // TODO + } // getInputAttributes() + + /** + * getStyledEditorKit + * @returns StyledEditorKit + */ + protected final StyledEditorKit getStyledEditorKit() { + return null; // TODO + } // getStyledEditorKit() + + /** + * createDefaultEditorKit + * @returns EditorKit + */ + protected EditorKit createDefaultEditorKit() { + return null; // TODO + } // createDefaultEditorKit() + + /** + * setEditorKit + * @param editor TODO + */ + public final void setEditorKit(EditorKit editor) { + // TODO + } // setEditorKit() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + +} // JTextPane diff --git a/javax/swing/JToolBar.java b/javax/swing/JToolBar.java new file mode 100644 index 000000000..f5b18d900 --- /dev/null +++ b/javax/swing/JToolBar.java @@ -0,0 +1,466 @@ +/* JToolBar.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.beans.*; +import java.io.*; +import javax.accessibility.*; +import javax.swing.plaf.*; + +/** + * JToolBar + * @author Andrew Selkirk + * @version 1.0 + */ +public class JToolBar extends JComponent + implements SwingConstants, Accessible { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * AccessibleJToolBar + */ + protected class AccessibleJToolBar extends AccessibleJComponent { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor AccessibleJToolBar + * @param component TODO + */ + protected AccessibleJToolBar(JToolBar component) { + super(component); + // TODO + } // AccessibleJToolBar() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getAccessibleStateSet + * @returns AccessibleStateSet + */ + public AccessibleStateSet getAccessibleStateSet() { + return null; // TODO + } // getAccessibleStateSet() + + /** + * getAccessibleRole + * @returns AccessibleRole + */ + public AccessibleRole getAccessibleRole() { + return AccessibleRole.TOOL_BAR; + } // getAccessibleRole() + + + } // AccessibleJToolBar + + /** + * Separator + */ + public static class Separator extends JSeparator { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * separatorSize + */ + private Dimension size; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor Separator + */ + public Separator() { + // TODO + } // Separator() + + /** + * Constructor Separator + * @param size TODO + */ + public Separator(Dimension size) { + // TODO + } // Separator() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return null; // TODO + } // getUIClassID() + + /** + * getPreferredSize + * @returns Dimension + */ + public Dimension getPreferredSize() { + return null; // TODO + } // getPreferredSize() + + /** + * getMaximumSize + * @returns Dimension + */ + public Dimension getMaximumSize() { + return null; // TODO + } // getMaximumSize() + + /** + * getMinimumSize + * @returns Dimension + */ + public Dimension getMinimumSize() { + return null; // TODO + } // getMinimumSize() + + /** + * getSeparatorSize + * @returns Dimension + */ + public Dimension getSeparatorSize() { + return null; // TODO + } // getSeparatorSize() + + /** + * setSeparatorSize + * @param size TODO + */ + public void setSeparatorSize(Dimension size) { + // TODO + } // setSeparatorSize() + + + } // Separator + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * uiClassID + */ + private static final String uiClassID = "ToolBarUI"; + + /** + * paintBorder + */ + private boolean paintBorder; + + /** + * margin + */ + private Insets margin; + + /** + * floatable + */ + private boolean floatable; + + /** + * orientation + */ + private int orientation; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor JToolBar + */ + public JToolBar() { + // TODO + } // JToolBar() + + /** + * Constructor JToolBar + * @param orientation TODO + */ + public JToolBar(int orientation) { + // TODO + } // JToolBar() + + /** + * Constructor JToolBar + * @param name TODO + */ + public JToolBar(String name) { + // TODO + } // JToolBar() + + /** + * Constructor JToolBar + * @param name TODO + * @param orientation TODO + */ + public JToolBar(String name, int orientation) { + // TODO + } // JToolBar() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * writeObject + * @param stream TODO + * @exception IOException TODO + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + // TODO + } // writeObject() + + /** + * add + * @param action TODO + * @returns JButton + */ + public JButton add(Action action) { + return null; // TODO + } // add() + + /** + * paintBorder + * @param graphics TODO + */ + protected void paintBorder(Graphics graphics) { + // TODO + } // paintBorder() + + /** + * getUI + * @returns ToolBarUI + */ + public ToolBarUI getUI() { + return (ToolBarUI) ui; + } // getUI() + + /** + * setUI + * @param ui TODO + */ + public void setUI(ToolBarUI ui) { + super.setUI(ui); + } // setUI() + + /** + * updateUI + */ + public void updateUI() { + setUI((ToolBarUI) UIManager.get(this)); + invalidate(); + } // updateUI() + + /** + * getUIClassID + * @returns String + */ + public String getUIClassID() { + return uiClassID; + } // getUIClassID() + + /** + * getComponentIndex + * @param component TODO + * @returns int + */ + public int getComponentIndex(Component component) { + return 0; // TODO + } // getComponentIndex() + + /** + * getComponentAtIndex + * @param index TODO + * @returns Component + */ + public Component getComponentAtIndex(int index) { + return null; // TODO + } // getComponentAtIndex() + + /** + * getMargin + * @returns Insets + */ + public Insets getMargin() { + return null; // TODO + } // getMargin() + + /** + * setMargin + * @param margin TODO + */ + public void setMargin(Insets margin) { + // TODO + } // setMargin() + + /** + * isBorderPainted + * @returns boolean + */ + public boolean isBorderPainted() { + return false; // TODO + } // isBorderPainted() + + /** + * setBorderPainted + * @param painted TODO + */ + public void setBorderPainted(boolean painted) { + // TODO + } // setBorderPainted() + + /** + * isFloatable + * @returns boolean + */ + public boolean isFloatable() { + return false; // TODO + } // isFloatable() + + /** + * setFloatable + * @param floatable TODO + */ + public void setFloatable(boolean floatable) { + // TODO + } // setFloatable() + + /** + * getOrientation + * @returns int + */ + public int getOrientation() { + return 0; // TODO + } // getOrientation() + + /** + * setOrientation + * @param orientation TODO + */ + public void setOrientation(int orientation) { + // TODO + } // setOrientation() + + /** + * addSeparator + */ + public void addSeparator() { + // TODO + } // addSeparator() + + /** + * addSeparator + * @param size TODO + */ + public void addSeparator(Dimension size) { + // TODO + } // addSeparator() + + /** + * createActionComponent + * @param action TODO + * @returns JButton + */ + protected JButton createActionComponent(Action action) { + return null; // TODO + } // createActionComponent() + + /** + * createActionChangeListener + * @param button TODO + * @returns PropertyChangeListener + */ + protected PropertyChangeListener createActionChangeListener(JButton button) { + return null; // TODO + } // createActionChangeListener() + + /** + * addImpl + * @param component TODO + * @param constraints TODO + * @param index TODO + */ + protected void addImpl(Component component, Object constraints, int index) { + // TODO + } // addImpl() + + /** + * paramString + * @returns String + */ + protected String paramString() { + return null; // TODO + } // paramString() + + /** + * getAccessibleContext + * @returns AccessibleContext + */ + public AccessibleContext getAccessibleContext() { + if (accessibleContext == null) { + accessibleContext = new AccessibleJToolBar(this); + } // if + return accessibleContext; + } // getAccessibleContext() + + +} // JToolBar diff --git a/javax/swing/Makefile.am b/javax/swing/Makefile.am index 953d95882..37ea974e1 100644 --- a/javax/swing/Makefile.am +++ b/javax/swing/Makefile.am @@ -1,10 +1,11 @@ ## Input file for automake to generate the Makefile.in used by configure -SUBDIRS = border event plaf table text tree undo +SUBDIRS = border colorchooser event filechooser plaf table text tree undo EXTRA_DIST = \ AbstractAction.java \ AbstractButton.java \ +AbstractCellEditor.java \ AbstractListModel.java \ AbstractSet.java \ Action.java \ @@ -16,15 +17,24 @@ BoxLayout.java \ ButtonGroup.java \ ButtonModel.java \ CellEditor.java \ +CellRendererPane.java \ ComboBoxEditor.java \ ComboBoxModel.java \ ComponentInputMap.java \ +DebugGraphics.java \ DefaultBoundedRangeModel.java \ DefaultButtonModel.java \ +DefaultCellEditor.java \ DefaultCellRenderer.java \ +DefaultComboBoxModel.java \ +DefaultDesktopManager.java \ +DefaultFocusManager.java \ +DefaultListCellRenderer.java \ DefaultListModel.java \ DefaultListSelectionModel.java \ -DesktopManager \ +DefaultSingleSelectionModel.java \ +DesktopManager.java \ +FocusManager.java \ GrayFilter.java \ Icon.java \ ImageIcon.java \ @@ -33,25 +43,41 @@ InputVerifier.java \ JApplet.java \ JButton.java \ JCheckBox.java \ +JCheckBoxMenuItem.java \ +JColorChooser.java \ +JComboBox.java \ JComponent.java \ +JDesktopPane.java \ JDialog.java \ JEditorPane.java \ +JFileChooser.java \ JFrame.java \ JInternalFrame.java \ JLabel.java \ JLayeredPane.java \ JList.java \ +JMenu.java \ JMenuBar.java \ +JMenuItem.java \ JOptionPane.java \ JPanel.java \ +JPasswordField.java \ +JPopupMenu.java \ +JProgressBar.java \ JRadioButton.java \ +JRadioButtonMenuItem.java \ JRootPane.java \ JScrollBar.java \ JScrollPane.java \ +JSeparator.java \ +JSlider.java \ +JSplitPane.java \ JTabbedPane.java \ JTable.java \ JTextField.java \ +JTextPane.java \ JToggleButton.java \ +JToolBar.java \ JToolTip.java \ JTree.java \ JViewport.java \ @@ -64,10 +90,15 @@ LookAndFeel.java \ MenuElement.java \ MenuSelectionManager.java \ MutableComboBoxModel.java \ +OverlayLayout.java \ +ProgressMonitor.java \ +ProgressMonitorInputStream.java \ Renderer.java \ +RepaintManager.java \ RootPaneContainer.java \ Scrollable.java \ ScrollPaneConstants.java \ +ScrollPaneLayout.java \ SizeRequirements.java \ SizeSequence.java \ SingleSelectionModel.java \ @@ -75,8 +106,10 @@ SwingConstants.java \ SwingUtilities.java \ Timer.java \ ToggleButtonModel.java \ +ToolTipManager.java \ UIDefaults.java \ UIManager.java \ UnsupportedLookAndFeelException.java \ +ViewportLayout.java \ package.html diff --git a/javax/swing/OverlayLayout.java b/javax/swing/OverlayLayout.java new file mode 100644 index 000000000..a238a436a --- /dev/null +++ b/javax/swing/OverlayLayout.java @@ -0,0 +1,186 @@ +/* OverlayLayout.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; + +/** + * OverlayLayout + * @author Andrew Selkirk + * @version 1.0 + */ +public class OverlayLayout implements LayoutManager2, Serializable { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * target + */ + private Container target; + + /** + * xChildren + */ + private SizeRequirements[] xChildren; + + /** + * yChildren + */ + private SizeRequirements[] yChildren; + + /** + * xTotal + */ + private SizeRequirements xTotal; + + /** + * yTotal + */ + private SizeRequirements yTotal; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor OverlayLayout + * @param target TODO + */ + public OverlayLayout(Container target) { + // TODO + } // OverlayLayout() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * invalidateLayout + * @param target TODO + */ + public void invalidateLayout(Container target) { + // TODO + } // invalidateLayout() + + /** + * addLayoutComponent + * @param string TODO + * @param component TODO + */ + public void addLayoutComponent(String string, Component component) { + // TODO + } // addLayoutComponent() + + /** + * addLayoutComponent + * @param component TODO + * @param constraints TODO + */ + public void addLayoutComponent(Component component, Object constraints) { + // TODO + } // addLayoutComponent() + + /** + * removeLayoutComponent + * @param component TODO + */ + public void removeLayoutComponent(Component component) { + // TODO + } // removeLayoutComponent() + + /** + * preferredLayoutSize + * @param target TODO + * @returns Dimension + */ + public Dimension preferredLayoutSize(Container target) { + return null; // TODO + } // preferredLayoutSize() + + /** + * minimumLayoutSize + * @param target TODO + * @returns Dimension + */ + public Dimension minimumLayoutSize(Container target) { + return null; // TODO + } // minimumLayoutSize() + + /** + * maximumLayoutSize + * @param target TODO + * @returns Dimension + */ + public Dimension maximumLayoutSize(Container target) { + return null; // TODO + } // maximumLayoutSize() + + /** + * getLayoutAlignmentX + * @param target TODO + * @returns float + */ + public float getLayoutAlignmentX(Container target) { + return (float) 0.0; // TODO + } // getLayoutAlignmentX() + + /** + * getLayoutAlignmentY + * @param target TODO + * @returns float + */ + public float getLayoutAlignmentY(Container target) { + return (float) 0.0; // TODO + } // getLayoutAlignmentY() + + /** + * layoutContainer + * @param target TODO + */ + public void layoutContainer(Container target) { + // TODO + } // layoutContainer() + + +} // OverlayLayout diff --git a/javax/swing/ProgressMonitor.java b/javax/swing/ProgressMonitor.java new file mode 100644 index 000000000..c3e01b5c0 --- /dev/null +++ b/javax/swing/ProgressMonitor.java @@ -0,0 +1,229 @@ +/* ProgressMonitor.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; + +/** + * ProgressMonitor + * @author Andrew Selkirk + * @version 1.0 + */ +public class ProgressMonitor { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * parentComponent + */ + private Component component; + + /** + * note + */ + private String note; + + /** + * message + */ + private Object message; + + /** + * millisToDecideToPopup + */ + private int millisToDecideToPopup; + + /** + * millisToPopup + */ + private int millisToPopup; + + /** + * min + */ + private int minimum; + + /** + * max + */ + private int maximum; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ProgressMonitor + * @param component TODO + * @param message TODO + * @param note TODO + * @param minimum TODO + * @param maximum TODO + */ + public ProgressMonitor(Component component, Object message, + String note, int minimum, int maximum) { + + // Set Data + this.component = component; + this.message = message; + this.note = note; + this.minimum = minimum; + this.maximum = maximum; + + // TODO + } // ProgressMonitor() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * close + */ + public void close() { + // TODO + } // close() + + /** + * setProgress + * @param progress TODO + */ + public void setProgress(int progress) { + // TODO + } // setProgress() + + /** + * getMinimum + * @returns int + */ + public int getMinimum() { + return minimum; // TODO + } // getMinimum() + + /** + * setMinimum + * @param minimum TODO + */ + public void setMinimum(int minimum) { + this.minimum = minimum; + // TODO + } // setMinimum() + + /** + * getMaximum + * @returns int + */ + public int getMaximum() { + return maximum; // TODO + } // getMaximum() + + /** + * setMaximum + * @param maximum TODO + */ + public void setMaximum(int maximum) { + this.maximum = maximum; + // TODO + } // setMaximum() + + /** + * isCanceled + * @returns boolean + */ + public boolean isCanceled() { + return false; // TODO + } // isCanceled() + + /** + * getMillisToDecideToPopup + * @returns int + */ + public int getMillisToDecideToPopup() { + return millisToDecideToPopup; // TODO + } // getMillisToDecideToPopup() + + /** + * setMillisToDecideToPopup + * @param time TODO + */ + public void setMillisToDecideToPopup(int time) { + millisToDecideToPopup = time; + // TODO + } // setMillisToDecideToPopup() + + /** + * getMillisToPopup + * @returns int + */ + public int getMillisToPopup() { + return millisToPopup; // TODO + } // getMillisToPopup() + + /** + * setMillisToPopup + * @param time TODO + */ + public void setMillisToPopup(int time) { + millisToPopup = time; + // TODO + } // setMillisToPopup() + + /** + * getNote + * @returns String + */ + public String getNote() { + return note; // TODO + } // getNote() + + /** + * setNote + * @param note TODO + */ + public void setNote(String note) { + this.note = note; + // TODO + } // setNote() + + +} // ProgressMonitor diff --git a/javax/swing/ProgressMonitorInputStream.java b/javax/swing/ProgressMonitorInputStream.java new file mode 100644 index 000000000..46a36f5bb --- /dev/null +++ b/javax/swing/ProgressMonitorInputStream.java @@ -0,0 +1,158 @@ +/* ProgressMonitorInputStream.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; + +/** + * ProgressMonitorInputStream + * @author Andrew Selkirk + * @version 1.0 + */ +public class ProgressMonitorInputStream extends FilterInputStream { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * monitor + */ + private ProgressMonitor monitor; + + /** + * nread + */ + private int nread; + + /** + * size + */ + private int size; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ProgressMonitorInputStream + * @param component TODO + * @param message TODO + * @param stream TODO + */ + public ProgressMonitorInputStream(Component component, Object message, + InputStream stream) { + super(stream); + // TODO + } // ProgressMonitorInputStream() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * reset + * @exception IOException TODO + */ + public synchronized void reset() throws IOException { + // TODO + } // reset() + + /** + * read + * @exception IOException TODO + * @returns int + */ + public int read() throws IOException { + return 0; // TODO + } // read() + + /** + * read + * @param data TODO + * @exception IOException TODO + * @returns int + */ + public int read(byte[] data) throws IOException { + return 0; // TODO + } // read() + + /** + * read + * @param data TODO + * @param offset TODO + * @param length TODO + * @exception IOException TODO + * @returns int + */ + public int read(byte[] data, int offset, int length) throws IOException { + return 0; // TODO + } // read() + + /** + * skip + * @param length TODO + * @exception IOException TODO + * @returns long + */ + public long skip(long length) throws IOException { + return 0; // TODO + } // skip() + + /** + * close + * @exception IOException TODO + */ + public void close() throws IOException { + // TODO + } // close() + + /** + * getProgressMonitor + * @returns ProgressMonitor + */ + public ProgressMonitor getProgressMonitor() { + return null; // TODO + } // getProgressMonitor() + + +} // ProgressMonitorInputStream diff --git a/javax/swing/RepaintManager.java b/javax/swing/RepaintManager.java new file mode 100644 index 000000000..cce32b5a0 --- /dev/null +++ b/javax/swing/RepaintManager.java @@ -0,0 +1,278 @@ +/* RepaintManager.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.util.*; + +/** + * RepaintManager + * @author Andrew Selkirk + * @version 1.0 + */ +public class RepaintManager { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * dirtyComponents + */ + Hashtable dirtyComponents; + + /** + * tmpDirtyComponents + */ + Hashtable tmpDirtyComponents; + + /** + * invalidComponents + */ + Vector invalidComponents; + + /** + * doubleBufferingEnabled + */ + boolean doubleBufferingEnabled; + + /** + * doubleBuffer + */ + Image doubleBuffer; + + /** + * doubleBufferSize + */ + Dimension doubleBufferSize; + + /** + * doubleBufferMaxSize + */ + private Dimension doubleBufferMaxSize; + + /** + * resetDoubleBuffer + */ + private boolean resetDoubleBuffer; + + /** + * repaintManagerKey + */ + private static final Object repaintManagerKey = null; // TODO + + /** + * tmp + */ + Rectangle tmp; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor RepaintManager + */ + public RepaintManager() { + // TODO + } // RepaintManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * toString + * @returns String + */ + public synchronized String toString() { + return null; // TODO + } // toString() + + /** + * currentManager + * @param component TODO + * @returns RepaintManager + */ + public static RepaintManager currentManager(Component component) { + return null; // TODO + } // currentManager() + + /** + * currentManager + * @param component TODO + * @returns RepaintManager + */ + public static RepaintManager currentManager(JComponent component) { + return null; // TODO + } // currentManager() + + /** + * setCurrentManager + * @param manager TODO + */ + public static void setCurrentManager(RepaintManager manager) { + // TODO + } // setCurrentManager() + + /** + * addInvalidComponent + * @param component TODO + */ + public synchronized void addInvalidComponent(JComponent component) { + // TODO + } // addInvalidComponent() + + /** + * removeInvalidComponent + * @param component TODO + */ + public synchronized void removeInvalidComponent(JComponent component) { + // TODO + } // removeInvalidComponent() + + /** + * addDirtyRegion + * @param component TODO + * @param x TODO + * @param y TODO + * @param w TODO + * @param h TODO + */ + public synchronized void addDirtyRegion(JComponent component, int x, + int y, int w, int h) { + // TODO + } // addDirtyRegion() + + /** + * getDirtyRegion + * @param component TODO + * @returns Rectangle + */ + public Rectangle getDirtyRegion(JComponent component) { + return null; // TODO + } // getDirtyRegion() + + /** + * markCompletelyDirty + * @param component TODO + */ + public void markCompletelyDirty(JComponent component) { + // TODO + } // markCompletelyDirty() + + /** + * markCompletelyClean + * @param component TODO + */ + public void markCompletelyClean(JComponent component) { + // TODO + } // markCompletelyClean() + + /** + * isCompletelyDirty + * @param component TODO + * @returns boolean + */ + public boolean isCompletelyDirty(JComponent component) { + return false; // TODO + } // isCompletelyDirty() + + /** + * validateInvalidComponents + */ + public void validateInvalidComponents() { + // TODO + } // validateInvalidComponents() + + /** + * paintDirtyRegions + */ + public void paintDirtyRegions() { + // TODO + } // paintDirtyRegions() + + /** + * getOffscreenBuffer + * @param component TODO + * @param proposedWidth TODO + * @param proposedHeight TODO + * @returns Image + */ + public Image getOffscreenBuffer(Component component, + int proposedWidth, int proposedHeight) { + return null; // TODO + } // getOffscreenBuffer() + + /** + * getDoubleBufferMaximumSize + * @returns Dimension + */ + public Dimension getDoubleBufferMaximumSize() { + return null; // TODO + } // getDoubleBufferMaximumSize() + + /** + * setDoubleBufferMaximumSize + * @param size TODO + */ + public void setDoubleBufferMaximumSize(Dimension size) { + // TODO + } // setDoubleBufferMaximumSize() + + /** + * setDoubleBufferingEnabled + * @param buffer TODO + */ + public void setDoubleBufferingEnabled(boolean buffer) { + // TODO + } // setDoubleBufferingEnabled() + + /** + * isDoubleBufferingEnabled + * @returns boolean + */ + public boolean isDoubleBufferingEnabled() { + return false; // TODO + } // isDoubleBufferingEnabled() + + +} // RepaintManager diff --git a/javax/swing/ScrollPaneLayout.java b/javax/swing/ScrollPaneLayout.java new file mode 100644 index 000000000..503113e45 --- /dev/null +++ b/javax/swing/ScrollPaneLayout.java @@ -0,0 +1,306 @@ +/* ScrollPaneLayout.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; +import javax.swing.plaf.*; + +/** + * ScrollPaneLayout + * @author Andrew Selkirk + * @version 1.0 + */ +public class ScrollPaneLayout implements LayoutManager, ScrollPaneConstants, Serializable { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * UIResource + */ + public static class UIResource extends ScrollPaneLayout + implements javax.swing.plaf.UIResource { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor UIResource + */ + public UIResource() { + // TODO + } // UIResource() + + + } // UIResource + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * viewport + */ + protected JViewport viewport; + + /** + * vsb + */ + protected JScrollBar vsb; + + /** + * hsb + */ + protected JScrollBar hsb; + + /** + * rowHead + */ + protected JViewport rowHead; + + /** + * colHead + */ + protected JViewport colHead; + + /** + * lowerLeft + */ + protected Component lowerLeft; + + /** + * lowerRight + */ + protected Component lowerRight; + + /** + * upperLeft + */ + protected Component upperLeft; + + /** + * upperRight + */ + protected Component upperRight; + + /** + * vsbPolicy + */ + protected int vsbPolicy; + + /** + * hsbPolicy + */ + protected int hsbPolicy; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ScrollPaneLayout + */ + public ScrollPaneLayout() { + // TODO + } // ScrollPaneLayout() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * syncWithScrollPane + * @param scrollPane TODO + */ + public void syncWithScrollPane(JScrollPane scrollPane) { + // TODO + } // syncWithScrollPane() + + /** + * addSingletonComponent + * @param oldComponent TODO + * @param newComponent TODO + * @returns Component + */ + protected Component addSingletonComponent(Component oldComponent, + Component newComponent) { + return null; // TODO + } // addSingletonComponent() + + /** + * addLayoutComponent + * @param string TODO + * @param component TODO + */ + public void addLayoutComponent(String string, Component component) { + // TODO + } // addLayoutComponent() + + /** + * removeLayoutComponent + * @param component TODO + */ + public void removeLayoutComponent(Component component) { + // TODO + } // removeLayoutComponent() + + /** + * getVerticalScrollBarPolicy + * @returns int + */ + public int getVerticalScrollBarPolicy() { + return 0; // TODO + } // getVerticalScrollBarPolicy() + + /** + * setVerticalScrollBarPolicy + * @param policy TODO + */ + public void setVerticalScrollBarPolicy(int policy) { + // TODO + } // setVerticalScrollBarPolicy() + + /** + * getHorizontalScrollBarPolicy + * @returns int + */ + public int getHorizontalScrollBarPolicy() { + return 0; // TODO + } // getHorizontalScrollBarPolicy() + + /** + * setHorizontalScrollBarPolicy + * @param policy TODO + */ + public void setHorizontalScrollBarPolicy(int policy) { + // TODO + } // setHorizontalScrollBarPolicy() + + /** + * getViewport + * @returns JViewport + */ + public JViewport getViewport() { + return null; // TODO + } // getViewport() + + /** + * getHorizontalScrollBar + * @returns JScrollBar + */ + public JScrollBar getHorizontalScrollBar() { + return null; // TODO + } // getHorizontalScrollBar() + + /** + * getVerticalScrollBar + * @returns JScrollBar + */ + public JScrollBar getVerticalScrollBar() { + return null; // TODO + } // getVerticalScrollBar() + + /** + * getRowHeader + * @returns JViewport + */ + public JViewport getRowHeader() { + return null; // TODO + } // getRowHeader() + + /** + * getColumnHeader + * @returns JViewport + */ + public JViewport getColumnHeader() { + return null; // TODO + } // getColumnHeader() + + /** + * getCorner + * @param key TODO + * @returns Component + */ + public Component getCorner(String key) { + return null; // TODO + } // getCorner() + + /** + * preferredLayoutSize + * @param parent TODO + * @returns Dimension + */ + public Dimension preferredLayoutSize(Container parent) { + return null; // TODO + } // preferredLayoutSize() + + /** + * minimumLayoutSize + * @param parent TODO + * @returns Dimension + */ + public Dimension minimumLayoutSize(Container parent) { + return null; // TODO + } // minimumLayoutSize() + + /** + * layoutContainer + * @param parent TODO + */ + public void layoutContainer(Container parent) { + // TODO + } // layoutContainer() + + /** + * getViewportBorderBounds + * @param value0 TODO + * @returns Rectangle + */ + public Rectangle getViewportBorderBounds(JScrollPane scrollPane) { + return null; // TODO + } // getViewportBorderBounds() + + +} // ScrollPaneLayout diff --git a/javax/swing/ToolTipManager.java b/javax/swing/ToolTipManager.java new file mode 100644 index 000000000..ffd5e4f1f --- /dev/null +++ b/javax/swing/ToolTipManager.java @@ -0,0 +1,391 @@ +/* ToolTipManager.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.awt.event.*; + +/** + * ToolTipManager + * @author Andrew Selkirk + * @version 1.0 + */ +public class ToolTipManager extends MouseAdapter implements MouseMotionListener { + + //------------------------------------------------------------- + // Classes ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * stillInsideTimerAction + */ + protected class stillInsideTimerAction implements ActionListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor stillInsideTimerAction + * @param manager TODO + */ + protected stillInsideTimerAction(ToolTipManager manager) { + // TODO + } // stillInsideTimerAction() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * actionPerformed + * @param event TODO + */ + public void actionPerformed(ActionEvent event) { + // TODO + } // actionPerformed() + + + } // stillInsideTimerAction + + /** + * outsideTimerAction + */ + protected class outsideTimerAction implements ActionListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor outsideTimerAction + * @param manager TODO + */ + protected outsideTimerAction(ToolTipManager manager) { + // TODO + } // outsideTimerAction() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * actionPerformed + * @param value0 TODO + */ + public void actionPerformed(ActionEvent event) { + // TODO + } // actionPerformed() + + + } // outsideTimerAction + + /** + * insideTimerAction + */ + protected class insideTimerAction implements ActionListener { + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor insideTimerAction + * @param manager TODO + */ + protected insideTimerAction(ToolTipManager manager) { + // TODO + } // insideTimerAction() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * actionPerformed + * @param event TODO + */ + public void actionPerformed(ActionEvent event) { + // TODO + } // actionPerformed() + + + } // insideTimerAction + + + //------------------------------------------------------------- + // Variables -------------------------------------------------- + //------------------------------------------------------------- + + /** + * enterTimer + */ + Timer enterTimer; + + /** + * exitTimer + */ + Timer exitTimer; + + /** + * insideTimer + */ + Timer insideTimer; + + /** + * toolTipText + */ + String toolTipText; + + /** + * mouseEvent + */ + MouseEvent mouseEvent; + + /** + * showImmediately + */ + boolean showImmediately; + + /** + * tip + */ + JToolTip tip; + + /** + * enabled + */ + boolean enabled; + + /** + * timerEnter + */ + private long timerEnter; + + /** + * lightWeightPopupEnabled + */ + protected boolean lightWeightPopupEnabled; + + /** + * heavyWeightPopupEnabled + */ + protected boolean heavyWeightPopupEnabled; + + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ToolTipManager + */ + ToolTipManager() { + // TODO + } // ToolTipManager() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * sharedInstance + * @returns ToolTipManager + */ + public static ToolTipManager sharedInstance() { + return null; // TODO + } // sharedInstance() + + /** + * setEnabled + * @param enabled TODO + */ + public void setEnabled(boolean enabled) { + // TODO + } // setEnabled() + + /** + * isEnabled + * @returns boolean + */ + public boolean isEnabled() { + return false; // TODO + } // isEnabled() + + /** + * isLightWeightPopupEnabled + * @returns boolean + */ + public boolean isLightWeightPopupEnabled() { + return false; // TODO + } // isLightWeightPopupEnabled() + + /** + * setLightWeightPopupEnabled + * @param enabled TODO + */ + public void setLightWeightPopupEnabled(boolean enabled) { + // TODO + } // setLightWeightPopupEnabled() + + /** + * getInitialDelay + * @returns int + */ + public int getInitialDelay() { + return 0; // TODO + } // getInitialDelay() + + /** + * setInitialDelay + * @param delay TODO + */ + public void setInitialDelay(int delay) { + // TODO + } // setInitialDelay() + + /** + * getDismissDelay + * @returns int + */ + public int getDismissDelay() { + return 0; // TODO + } // getDismissDelay() + + /** + * setDismissDelay + * @param delay TODO + */ + public void setDismissDelay(int delay) { + // TODO + } // setDismissDelay() + + /** + * getReshowDelay + * @returns int + */ + public int getReshowDelay() { + return 0; // TODO + } // getReshowDelay() + + /** + * setReshowDelay + * @param delay TODO + */ + public void setReshowDelay(int delay) { + // TODO + } // setReshowDelay() + + /** + * registerComponent + * @param component TODO + */ + public void registerComponent(JComponent component) { + // TODO + } // registerComponent() + + /** + * unregisterComponent + * @param component TODO + */ + public void unregisterComponent(JComponent component) { + // TODO + } // unregisterComponent() + + /** + * mouseEntered + * @param event TODO + */ + public void mouseEntered(MouseEvent event) { + // TODO + } // mouseEntered() + + /** + * mouseExited + * @param event TODO + */ + public void mouseExited(MouseEvent event) { + // TODO + } // mouseExited() + + /** + * mousePressed + * @param event TODO + */ + public void mousePressed(MouseEvent event) { + // TODO + } // mousePressed() + + /** + * mouseDragged + * @param event TODO + */ + public void mouseDragged(MouseEvent event) { + // TODO + } // mouseDragged() + + /** + * mouseMoved + * @param event TODO + */ + public void mouseMoved(MouseEvent event) { + // TODO + } // mouseMoved() + + +} // ToolTipManager diff --git a/javax/swing/ViewportLayout.java b/javax/swing/ViewportLayout.java new file mode 100644 index 000000000..f5beb76db --- /dev/null +++ b/javax/swing/ViewportLayout.java @@ -0,0 +1,111 @@ +/* ViewportLayout.java -- + Copyright (C) 2002 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package javax.swing; + +// Imports +import java.awt.*; +import java.io.*; + +/** + * ViewportLayout + * @author Andrew Selkirk + * @version 1.0 + */ +public class ViewportLayout implements LayoutManager, Serializable { + + //------------------------------------------------------------- + // Initialization --------------------------------------------- + //------------------------------------------------------------- + + /** + * Constructor ViewportLayout + */ + public ViewportLayout() { + // TODO + } // ViewportLayout() + + + //------------------------------------------------------------- + // Methods ---------------------------------------------------- + //------------------------------------------------------------- + + /** + * addLayoutComponent + * @param name TODO + * @param c TODO + */ + public void addLayoutComponent(String name, Component c) { + // TODO + } // addLayoutComponent() + + /** + * removeLayoutComponent + * @param c TODO + */ + public void removeLayoutComponent(Component c) { + // TODO + } // removeLayoutComponent() + + /** + * preferredLayoutSize + * @param parent TODO + * @returns Dimension + */ + public Dimension preferredLayoutSize(Container parent) { + return null; // TODO + } // preferredLayoutSize() + + /** + * minimumLayoutSize + * @param parent TODO + * @returns Dimension + */ + public Dimension minimumLayoutSize(Container parent) { + return null; // TODO + } // minimumLayoutSize() + + /** + * layoutContainer + * @param parent TODO + */ + public void layoutContainer(Container parent) { + // TODO + } // layoutContainer() + + +} // ViewportLayout |