4eaf5996ad
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new files. * java/awt/IllegalComponentStateException.java: New file. * java/awt/ItemSelectable.java: New file. * java/awt/event/WindowEvent.java: Finished. * java/awt/event/TextEvent.java: Finished. * java/awt/event/ContainerEvent.java: New file. * java/awt/Component.java (getX, getY): New methods. * java/awt/event/PaintEvent.java: New file. * java/awt/event/MouseEvent.java: New file. * java/awt/ActiveEvent.java: New file. * java/awt/event/KeyEvent.java: Finished. * java/awt/event/ItemEvent.java: New file. * java/awt/Adjustable.java: New file. * java/awt/event/InputMethodEvent.java: New file. * java/awt/event/InputEvent.java: Finished. * java/awt/event/FocusEvent.java: New file. * java/awt/event/MouseMotionAdapter.java: New file. * java/awt/event/MouseAdapter.java: New file. * java/awt/event/KeyAdapter.java: New file. * java/awt/event/FocusAdapter.java: New file. * java/awt/event/ContainerAdapter.java: New file. * java/awt/event/ComponentEvent.java: Finished. * java/awt/event/AdjustmentEvent.java: New file. * java/awt/event/ComponentAdapter.java: New file. * java/awt/event/ActionEvent.java: Finished. * java/awt/event/MouseMotionListener.java: New file. * java/awt/event/MouseListener.java: New file. * java/awt/event/ItemListener.java: New file. * java/awt/event/InputMethodListener.java: New file. * java/awt/event/ContainerListener.java: New file. * java/awt/event/FocusListener.java: New file. * java/awt/event/ComponentListener.java: New file. * java/awt/event/AWTEventListener.java: New file. * java/awt/event/AdjustmentListener.java: New file. From-SVN: r33034
55 lines
1.5 KiB
Java
55 lines
1.5 KiB
Java
/* Copyright (C) 1999, 2000 Free Software Foundation
|
|
|
|
This file is part of libjava.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
details. */
|
|
|
|
package java.awt.event;
|
|
import java.awt.*;
|
|
|
|
/* A very incomplete placeholder. */
|
|
|
|
public class InputMethodEvent extends AWTEvent
|
|
{
|
|
public static final int CARET_POSITION_CHANGED = 1101;
|
|
public static final int INPUT_METHOD_FIRST = 1100;
|
|
public static final int INPUT_METHOD_LAST = 1101;
|
|
public static final int INPUT_METHOD_TEXT_CHANGED = 1100;
|
|
|
|
/*
|
|
public InputMethodEvent (Component source, int id,
|
|
AttributedCharacterIterator text,
|
|
int committedCharacterCount, TextHitInfo caret,
|
|
TextHitInfo visiblePosition)
|
|
{
|
|
if (id < INPUT_METHOD_FIRST
|
|
|| id > INPUT_METHOD_LAST
|
|
|| (id == CARET_POSITION_CHANGED && text != null)
|
|
|| committedCharacterCount < 0
|
|
|| (committedCharacterCount
|
|
> text.getEndIndex () - text.getBeginIndex ()))
|
|
throw new IllegalArgumentException ();
|
|
}
|
|
|
|
public InputMethodEvent (Component source, int id, TextHitInfo caret,
|
|
TextHitInfo visiblePosition);
|
|
|
|
public void consume ();
|
|
public TextHitInfo getCaret ();
|
|
public int getCommittedCharacterCount ();
|
|
public AttributedCharacterIterator getText ();
|
|
public TextHitInfo getVisiblePosition ();
|
|
public boolean isConsumed ();
|
|
|
|
public String paramString ();
|
|
*/
|
|
|
|
// FIXME: this is just to let it compile.
|
|
private InputMethodEvent ()
|
|
{
|
|
super (null, -1);
|
|
}
|
|
}
|