+2003-03-01 Tom Tromey <tromey@redhat.com>
+
+ * gnu/awt/xlib/XPanelPeer.java (beginLayout, endLayout,
+ isPaintPending): New methods.
+ * gnu/awt/xlib/XFramePeer.java (getState, setState,
+ setMaximizedBounds): New methods.
+ (beginLayout, endLayout, isPaintPending): Likewise.
+ * gnu/awt/xlib/XCanvasPeer.java (isFocusable): New method.
+ (requestFocus): Likewise.
+ (isObscured): Likewise.
+ (canDetermineObscurity): Likewise.
+ (coalescePaintEvent): Likewise.
+ (updateCursorImmediately): Likewise.
+ (createVolatileImage): Likewise.
+ (handlesWheelScrolling): Likewise.
+ (createBuffers): Likewise.
+ (getBackBuffer): Likewise.
+ (flip): Likewise.
+ (destroyBuffers): Likewise.
+
+ * Makefile.in: Rebuilt.
+ * Makefile.am (awt_java_source_files): Added DropTargetPeer.java,
+ RobotPeer.java.
+ * gnu/java/awt/GLightweightPeer.java,
+ gnu/java/awt/peer/gtk/GtkChoicePeer.java,
+ gnu/java/awt/peer/gtk/GtkComponentPeer.java,
+ gnu/java/awt/peer/gtk/GtkContainerPeer.java,
+ gnu/java/awt/peer/gtk/GtkFramePeer.java,
+ gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java,
+ gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
+ java/awt/dnd/peer/DragSourceContextPeer.java,
+ java/awt/dnd/peer/DropTargetContextPeer.java,
+ java/awt/peer/ButtonPeer.java,
+ java/awt/peer/CheckboxMenuItemPeer.java,
+ java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
+ java/awt/peer/ComponentPeer.java,
+ java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
+ java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
+ java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
+ java/awt/peer/MenuBarPeer.java,
+ java/awt/peer/MenuComponentPeer.java,
+ java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
+ java/awt/peer/PopupMenuPeer.java,
+ java/awt/peer/ScrollPanePeer.java,
+ java/awt/peer/ScrollbarPeer.java, java/awt/peer/TextAreaPeer.java,
+ java/awt/peer/TextComponentPeer.java,
+ java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java:
+ New versions from Classpath.
+ * java/awt/dnd/peer/DropTargetPeer.java: New file from Classpath.
+ * java/awt/peer/RobotPeer.java: Likewise.
+
2003-03-01 Mark Wielaard <mark@klomp.org>
* java/io/ObjectInputStream.java: Reindent.
java/awt/peer/MenuPeer.java \
java/awt/peer/PanelPeer.java \
java/awt/peer/PopupMenuPeer.java \
+java/awt/peer/RobotPeer.java \
java/awt/peer/ScrollPanePeer.java \
java/awt/peer/ScrollbarPeer.java \
java/awt/peer/TextAreaPeer.java \
java/awt/TexturePaint.java \
java/awt/dnd/peer/DragSourceContextPeer.java \
java/awt/dnd/peer/DropTargetContextPeer.java \
+java/awt/dnd/peer/DropTargetPeer.java \
java/awt/dnd/DnDConstants.java \
java/awt/dnd/DragGestureEvent.java \
java/awt/dnd/DragGestureListener.java \
java/awt/TexturePaint.java \
java/awt/dnd/peer/DragSourceContextPeer.java \
java/awt/dnd/peer/DropTargetContextPeer.java \
+java/awt/dnd/peer/DropTargetPeer.java \
java/awt/dnd/DnDConstants.java \
java/awt/dnd/DragGestureEvent.java \
java/awt/dnd/DragGestureListener.java \
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-TAR = tar
+TAR = gtar
GZIP_ENV = --best
DIST_SUBDIRS = @DIRLTDL@ testsuite gcj include @DIRLTDL@ gcj include
DEP_FILES = .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
.deps/java/awt/dnd/MouseDragGestureRecognizer.P \
.deps/java/awt/dnd/peer/DragSourceContextPeer.P \
.deps/java/awt/dnd/peer/DropTargetContextPeer.P \
+.deps/java/awt/dnd/peer/DropTargetPeer.P \
.deps/java/awt/event/AWTEventListener.P \
.deps/java/awt/event/AWTEventListenerProxy.P \
.deps/java/awt/event/ActionEvent.P \
-/* Copyright (C) 2000, 2002 Free Software Foundation
+/* Copyright (C) 2000, 2002, 2003 Free Software Foundation
This file is part of libgcj.
package gnu.awt.xlib;
import java.awt.Dimension;
+import java.awt.BufferCapabilities;
import java.awt.Component;
import java.awt.EventQueue;
import java.awt.Rectangle;
setVisible (false);
}
+ public boolean isFocusable ()
+ {
+ return false;
+ }
+
+ public boolean requestFocus (Component source, boolean b1,
+ boolean b2, long x)
+ {
+ return false;
+ }
+
+ public boolean isObscured ()
+ {
+ return false;
+ }
+
+ public boolean canDetermineObscurity ()
+ {
+ return false;
+ }
+
+ public void coalescePaintEvent (PaintEvent e)
+ {
+ }
+
+ public void updateCursorImmediately ()
+ {
+ }
+
+ public VolatileImage createVolatileImage (int width, int height)
+ {
+ return null;
+ }
+
+ public boolean handlesWheelScrolling ()
+ {
+ return false;
+ }
+
+ public void createBuffers (int x, BufferCapabilities capabilities)
+ throws java.awt.AWTException
+
+ {
+ }
+
+ public Image getBackBuffer ()
+ {
+ return null;
+ }
+
+ public void flip (BufferCapabilities.FlipContents contents)
+ {
+ }
+
+ public void destroyBuffers ()
+ {
+ }
+
static class DoMap implements Runnable
{
Window window;
-/* Copyright (C) 2000, 2002 Free Software Foundation
+/* Copyright (C) 2000, 2002, 2003 Free Software Foundation
This file is part of libgcj.
}
sizeHints.applyNormalHints(window);
}
+
+ public int getState ()
+ {
+ return 0;
+ }
+
+ public void setState (int state)
+ {
+ }
+
+ public void setMaximizedBounds (Rectangle r)
+ {
+ }
+
+ public void beginLayout () { }
+ public void endLayout () { }
+ public boolean isPaintPending () { return false; }
}
-/* Copyright (C) 2000, 2002 Free Software Foundation
+/* Copyright (C) 2000, 2002, 2003 Free Software Foundation
This file is part of libgcj.
{
// NOP
}
+
+ public void beginLayout () { }
+ public void endLayout () { }
+ public boolean isPaintPending () { return false; }
}
package gnu.java.awt;
import java.awt.*;
+import java.awt.event.PaintEvent;
import java.awt.peer.*;
import java.awt.image.*;
public void hide() {}
+ public boolean isFocusable()
+ {
+ return false;
+ }
+
public boolean isFocusTraversable()
{
return false;
public void requestFocus() {}
+ public boolean requestFocus(java.awt.Component source, boolean bool1, boolean bool2, long x) { return false; }
+
public void reshape(int x, int y, int width, int height) {}
public void setBackground(Color color) {}
{
return null;
}
+
+ public boolean isObscured() { return false; }
+
+ public boolean canDetermineObscurity() { return false; }
+
+ public void coalescePaintEvent(PaintEvent e) { }
+
+ public void updateCursorImmediately() { }
+
+ public VolatileImage createVolatileImage(int width, int height)
+ {
+ return null;
+ }
+
+ public boolean handlesWheelScrolling() { return false; }
+
+ public void createBuffers(int x, java.awt.BufferCapabilities capabilities)
+ throws java.awt.AWTException { }
+
+ public java.awt.Image getBackBuffer() { return null; }
+
+ public void flip(java.awt.BufferCapabilities.FlipContents contents) { }
+
+ public void destroyBuffers() { }
}
native public void add (String item, int index);
native public void remove (int index);
native public void select (int position);
+
+ public void removeAll () { }
public void addItem (String item, int position)
{
{
// FIXME: just a stub for now.
}
+
+ public boolean isFocusable ()
+ {
+ return false;
+ }
+
+ public boolean requestFocus (Component source, boolean b1,
+ boolean b2, long x)
+ {
+ return false;
+ }
+
+ public boolean isObscured ()
+ {
+ return false;
+ }
+
+ public boolean canDetermineObscurity ()
+ {
+ return false;
+ }
+
+ public void coalescePaintEvent (PaintEvent e)
+ {
+
+ }
+
+ public void updateCursorImmediately ()
+ {
+
+ }
+
+ public VolatileImage createVolatileImage (int width, int height)
+ {
+ return null;
+ }
+
+ public boolean handlesWheelScrolling ()
+ {
+ return false;
+ }
+
+ public void createBuffers (int x, BufferCapabilities capabilities)
+ throws java.awt.AWTException
+
+ {
+
+ }
+
+ public Image getBackBuffer ()
+ {
+ return null;
+ }
+
+ public void flip (BufferCapabilities.FlipContents contents)
+ {
+
+ }
+
+ public void destroyBuffers ()
+ {
+
+ }
}
break;
}
}
+
+ public void beginLayout () { }
+ public void endLayout () { }
+ public boolean isPaintPending () { return false; }
}
y + insets.top,
width, height)));
}
+
+ public int getState ()
+ {
+ return 0;
+ }
+
+ public void setState (int state)
+ {
+
+ }
+
+ public void setMaximizedBounds (Rectangle r)
+ {
+
+ }
}
Point abs = origin.getLocationOnScreen ();
show (abs.x + x, abs.y + y, 0);
}
+
+ public void show (Event e)
+ {
+
+ }
}
args.add ("text_position", tc.getCaretPosition ());
args.add ("editable", tc.isEditable ());
}
+
+ public int getIndexAtPoint(int x, int y)
+ {
+ return 0; // FIXME
+ }
+
+ public Rectangle getCharacterBounds (int pos)
+ {
+ return null;
+ }
+
+ public long filterEvents (long filter)
+ {
+ return filter; // FIXME
+ }
}
import java.awt.Image;
import java.awt.Point;
import java.awt.dnd.DragSourceContext;
+import java.awt.dnd.InvalidDnDOperationException;
/**
* STUBBED
*/
public interface DragSourceContextPeer
{
- void startDrag(DragSourceContext context, Cursor c, Image i, Point p);
- Cursor getCursor();
- void setCursor(Cursor c);
- void transferablesFlavorsChanged();
+ public void startDrag(DragSourceContext context, Cursor c, Image i, Point p)
+ throws InvalidDnDOperationException;
+ public Cursor getCursor();
+ public void setCursor(Cursor c) throws InvalidDnDOperationException;
+ public void transferablesFlavorsChanged();
} // interface DragSourceContextPeer
package java.awt.dnd.peer;
+import java.awt.dnd.DropTarget;
+import java.awt.datatransfer.DataFlavor;
+import java.awt.datatransfer.Transferable;
+import java.awt.dnd.InvalidDnDOperationException;
+
+
/**
+ * Used to control state of recipient protocol from the
+ * <code>DropTargetListener</code>. Occurs when a <code>Component</code>
+ * with an associated <code>DropTarget</code> and visible geometry is first
+ * intersected by a logical cursor.
+ *
* @author Michael Koch <konqueror@gmx.de>
*/
public interface DropTargetContextPeer
{
-} // interface DropTargetContextPeer
+ public void setTargetActions(int actions);
+ public int getTargetActions();
+ public DropTarget getDropTarget();
+ public DataFlavor[] getTransferDataFlavors();
+ public Transferable getTransferable() throws InvalidDnDOperationException;
+ public boolean isTransferableJVMLocal();
+ public void acceptDrag(int dragAction);
+ public void rejectDrag();
+ public void acceptDrop(int dropAction);
+ public void rejectDrop();
+ public void dropComplete(boolean success);
+}
--- /dev/null
+/* DropTargetPeer.java -- interface for drag-and-drop peers
+ 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 java.awt.dnd.peer;
+
+import java.awt.dnd.DropTarget;
+
+/**
+ */
+public interface DropTargetPeer
+{
+ public void addDropTarget (DropTarget target);
+ public void removeDropTarget (DropTarget target);
+} // interface DropTargetContextPeer
public interface ButtonPeer extends ComponentPeer
{
-
-public abstract void setLabel(String label);
-
+ public void setLabel(String label);
} // interface ButtonPeer
public interface CheckboxMenuItemPeer extends MenuItemPeer
{
-
-public abstract void setState(boolean state);
-
+ public void setState(boolean state);
} // interface CheckboxMenuItemPeer
public interface CheckboxPeer extends ComponentPeer
{
-
-public abstract void setCheckboxGroup(java.awt.CheckboxGroup group);
-public abstract void setLabel(String label);
-public abstract void setState(boolean state);
-
+ public void setCheckboxGroup(java.awt.CheckboxGroup group);
+ public void setLabel(String label);
+ public void setState(boolean state);
} // interface CheckboxPeer
public interface ChoicePeer extends ComponentPeer
{
-
-public abstract void add(String item, int index);
-public abstract void addItem(String item, int index);
-public abstract void remove(int index);
-public abstract void select(int index);
-
+ public void add(String item, int index);
+ public void addItem(String item, int index);
+ public void remove(int index);
+ public void removeAll();
+ public void select(int index);
} // interface ChoicePeer
package java.awt.peer;
import java.awt.*;
+import java.awt.event.PaintEvent;
import java.awt.image.*;
public interface ComponentPeer
public Dimension getMinimumSize();
public Dimension getPreferredSize();
public Toolkit getToolkit();
- // The JCL says that handleEvent returns boolean. However, we've
- // experimentally determined that it in fact actually returns void.
public void handleEvent(AWTEvent e);
public void hide();
+
+ /**
+ * Part of the earlier 1.1 API, replaced by isFocusable().
+ */
public boolean isFocusTraversable();
+ public boolean isFocusable();
public Dimension minimumSize();
public Dimension preferredSize();
public void paint(Graphics graphics);
public boolean prepareImage(Image img, int width, int height,
- ImageObserver ob);
+ ImageObserver ob);
public void print(Graphics graphics);
public void repaint(long tm, int x, int y, int width, int height);
+
+ /**
+ * Part of the earlier 1.1 API, apparently replaced by argument
+ * form of the same method.
+ */
public void requestFocus();
+ public boolean requestFocus(java.awt.Component source, boolean bool1, boolean bool2, long x);
+
public void reshape(int x, int y, int width, int height);
public void setBackground(Color color);
public void setBounds(int x, int y, int width, int height);
+
+ /**
+ * Part of the earlier 1.1 API, apparently no longer needed.
+ */
public void setCursor(Cursor cursor);
+
public void setEnabled(boolean enabled);
public void setFont(Font font);
public void setForeground(Color color);
* Get the graphics configuration of the component. The color model
* of the component can be derived from the configuration.
*/
- GraphicsConfiguration getGraphicsConfiguration();
+ public GraphicsConfiguration getGraphicsConfiguration();
+ /**
+ * Part of an older API, no longer needed.
+ */
public void setEventMask (long mask);
+
+ // Methods below are introduced since 1.1
+ public boolean isObscured();
+ public boolean canDetermineObscurity();
+ public void coalescePaintEvent(PaintEvent e);
+ public void updateCursorImmediately();
+ public VolatileImage createVolatileImage(int width, int height);
+ public boolean handlesWheelScrolling();
+ public void createBuffers(int x, java.awt.BufferCapabilities capabilities) throws java.awt.AWTException;
+ public java.awt.Image getBackBuffer();
+ public void flip(java.awt.BufferCapabilities.FlipContents contents);
+ public void destroyBuffers();
+
}
public interface ContainerPeer extends ComponentPeer
{
- public abstract Insets insets();
- public abstract Insets getInsets();
- public abstract void beginValidate();
- public abstract void endValidate();
+ public Insets insets();
+ public Insets getInsets();
+ public void beginValidate();
+ public void endValidate();
+ public void beginLayout();
+ public void endLayout();
+ public boolean isPaintPending();
} // interface ContainerPeer
public interface DialogPeer extends WindowPeer
{
-
-public abstract void setResizable(boolean resizeable);
-public abstract void setTitle(String title);
-
+ public void setResizable(boolean resizeable);
+ public void setTitle(String title);
} // interface DialogPeer
public interface FileDialogPeer extends DialogPeer
{
-
-public abstract void setFile(String file);
-public abstract void setDirectory(String dir);
-public abstract void setFilenameFilter(FilenameFilter ff);
-
+ public void setFile(String file);
+ public void setDirectory(String dir);
+ public void setFilenameFilter(FilenameFilter ff);
} // interface FileDialogPeer
import java.awt.Image;
import java.awt.MenuBar;
+import java.awt.Rectangle;
public interface FramePeer extends WindowPeer
{
-
-public abstract void setIconImage(Image image);
-public abstract void setMenuBar(MenuBar mb);
-public abstract void setResizable(boolean resizable);
-public abstract void setTitle(String title);
-
+ public void setIconImage(Image image);
+ public void setMenuBar(MenuBar mb);
+ public void setResizable(boolean resizable);
+ public void setTitle(String title);
+ public int getState();
+ public void setState(int state);
+ public void setMaximizedBounds(Rectangle r);
} // interface FramePeer
public interface LabelPeer extends ComponentPeer
{
-
-public abstract void setAlignment(int alignment);
-public abstract void setText(String text);
-
+ public void setAlignment(int alignment);
+ public void setText(String text);
} // interface LabelPeer
public interface ListPeer extends ComponentPeer
{
-
-public abstract void add(String item, int index);
-public abstract void addItem(String item, int index);
-public abstract void clear();
-public abstract void delItems(int start_index, int end_index);
-public abstract void deselect(int index);
-public abstract int[] getSelectedIndexes();
-public abstract void makeVisible(int index);
-public abstract Dimension minimumSize(int s);
-public abstract Dimension preferredSize(int s);
-public abstract void removeAll();
-public abstract void select(int index);
-public abstract void setMultipleMode(boolean multi);
-public abstract void setMultipleSelections(boolean multi);
-
+
+ public void add(String item, int index);
+ public void addItem(String item, int index);
+ public void clear();
+ public void delItems(int start_index, int end_index);
+ public void deselect(int index);
+ public int[] getSelectedIndexes();
+ public void makeVisible(int index);
+ public Dimension minimumSize(int s);
+ public Dimension preferredSize(int s);
+ public void removeAll();
+ public void select(int index);
+ public void setMultipleMode(boolean multi);
+ public void setMultipleSelections(boolean multi);
+ public Dimension getPreferredSize(int s);
+ public Dimension getMinimumSize(int s);
} // interface ListPeer
public interface MenuBarPeer extends MenuComponentPeer
{
-
-public abstract void addHelpMenu(Menu menu);
-public abstract void addMenu(Menu menu);
-public abstract void delMenu(int index);
-
+ public void addHelpMenu(Menu menu);
+ public void addMenu(Menu menu);
+ public void delMenu(int index);
} // interface MenuBarPeer
public interface MenuComponentPeer
{
-
-public abstract void dispose();
-
+ public void dispose();
} // interface MenuComponentPeer
public interface MenuItemPeer extends MenuComponentPeer
{
-
-public abstract void disable();
-public abstract void enable();
-public abstract void setEnabled(boolean enabled);
-public abstract void setLabel(String text);
-
+ public void disable();
+ public void enable();
+ public void setEnabled(boolean enabled);
+ public void setLabel(String text);
} // interface MenuItemPeer
public interface MenuPeer extends MenuItemPeer
{
- public abstract void addItem (MenuItem item);
- public abstract void addSeparator ();
- public abstract void delItem (int index);
+ public void addItem (MenuItem item);
+ public void addSeparator ();
+ public void delItem (int index);
}
package java.awt.peer;
import java.awt.Component;
+import java.awt.Event;
+
public interface PopupMenuPeer extends MenuPeer
{
-
-public abstract void show (Component origin, int x, int y);
-
+
+ /**
+ * Part of the older API, replaced by event version instead.
+ */
+ public void show (Component origin, int x, int y);
+ public void show (Event e);
} // interface PopupMenuPeer
--- /dev/null
+/* RobotPeer.java -- Interface for programatically driving GUI
+ Copyright (C) 2003 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 java.awt.peer;
+
+import java.awt.Rectangle;
+
+public interface RobotPeer
+{
+ public void mouseMove (int x, int y);
+ public void mousePress (int x);
+ public void mouseRelease (int x);
+ public void mouseWheel (int x);
+ public void keyPress (int x);
+ public void keyRelease (int x);
+ public int getRGBPixel (int x, int y);
+ public int[] getRGBPixels (Rectangle r);
+} // interface RobotPeer
+
public interface ScrollPanePeer extends ContainerPeer
{
-
-public abstract int getHScrollbarHeight();
-public abstract int getVScrollbarWidth();
-public abstract void setScrollPosition(int h, int v);
-public abstract void childResized(int width, int height);
-public abstract void setUnitIncrement(Adjustable item, int inc);
-public abstract void setValue(Adjustable item, int value);
-
+ public int getHScrollbarHeight();
+ public int getVScrollbarWidth();
+ public void setScrollPosition(int h, int v);
+ public void childResized(int width, int height);
+ public void setUnitIncrement(Adjustable item, int inc);
+ public void setValue(Adjustable item, int value);
} // interface ScollPanePeer
public interface ScrollbarPeer extends ComponentPeer
{
-
-public abstract void setLineIncrement(int inc);
-public abstract void setPageIncrement(int inc);
-public abstract void setValues(int value, int visible, int min, int max);
-
+ public void setLineIncrement(int inc);
+ public void setPageIncrement(int inc);
+ public void setValues(int value, int visible, int min, int max);
} // interface ScrollbarPeer
public interface TextAreaPeer extends TextComponentPeer
{
-
-public abstract void insert(String text, int pos);
-public abstract void insertText(String text, int pos);
-public abstract Dimension minimumSize(int rows, int cols);
-public abstract Dimension getMinimumSize(int rows, int cols);
-public abstract Dimension preferredSize(int rows, int cols);
-public abstract Dimension getPreferredSize(int rows, int cols);
-public abstract void replaceRange(String text, int start_pos, int end_pos);
-public abstract void replaceText(String text, int start_pos, int end_pos);
-
+ public void insert(String text, int pos);
+ public void insertText(String text, int pos);
+ public Dimension minimumSize(int rows, int cols);
+ public Dimension getMinimumSize(int rows, int cols);
+ public Dimension preferredSize(int rows, int cols);
+ public Dimension getPreferredSize(int rows, int cols);
+ public void replaceRange(String text, int start_pos, int end_pos);
+ public void replaceText(String text, int start_pos, int end_pos);
} // interface TextAreaPeer
package java.awt.peer;
+import java.awt.Rectangle;
+
public interface TextComponentPeer extends ComponentPeer
{
-
-public abstract int getSelectionEnd();
-public abstract int getSelectionStart();
-public abstract String getText();
-public abstract void setText(String text);
-public abstract void select(int start_pos, int end_pos);
-public abstract void setEditable(boolean editable);
-public abstract int getCaretPosition();
-public abstract void setCaretPosition(int pos);
-
+ public int getSelectionEnd();
+ public int getSelectionStart();
+ public String getText();
+ public void setText(String text);
+ public void select(int start_pos, int end_pos);
+ public void setEditable(boolean editable);
+ public int getCaretPosition();
+ public void setCaretPosition(int pos);
+ public int getIndexAtPoint(int x, int y);
+ public Rectangle getCharacterBounds(int pos);
+ public long filterEvents(long filter);
} // interface TextComponentPeer
public interface TextFieldPeer extends TextComponentPeer
{
-
-public abstract Dimension minimumSize(int len);
-public abstract Dimension preferredSize(int len);
-public abstract Dimension getMinimumSize(int len);
-public abstract Dimension getPreferredSize(int len);
-public abstract void setEchoChar(char echo_char);
-public abstract void setEchoCharacter(char echo_char);
-
+ public Dimension minimumSize(int len);
+ public Dimension preferredSize(int len);
+ public Dimension getMinimumSize(int len);
+ public Dimension getPreferredSize(int len);
+ public void setEchoChar(char echo_char);
+ public void setEchoCharacter(char echo_char);
} // interface TextFieldPeer
public interface WindowPeer extends ContainerPeer
{
-
-public abstract void toBack();
-public abstract void toFront();
-
+ public void toBack();
+ public void toFront();
} // interface WindowPeer