mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 18:20:51 +08:00
2003-03-21 Michael Koch <konqueror@gmx.de>
* javax/swing/Action.java (ACCELERATOR_KEY): New constant. (ACTION_COMMAND_KEY): Likewise. (MNEMONIC_KEY): Likewise. * javax/swing/UnsupportedLookAndFeelException.java (UnsupportedLookAndFeelException): Must be public. * javax/swing/WindowConstants.java (EXIT_ON_CLOSE): New constant. * javax/swing/text/BadLocationException.java (offset): New member variable. (BadLocationException): New implementation, documentation added. (offsetRequested): New method. * javax/swing/text/Caret.java: Reformated. * javax/swing/text/Document.java: Reformated. From-SVN: r64656
This commit is contained in:
parent
15596d409e
commit
30b3f14228
@ -1,3 +1,22 @@
|
||||
2003-03-21 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* javax/swing/Action.java
|
||||
(ACCELERATOR_KEY): New constant.
|
||||
(ACTION_COMMAND_KEY): Likewise.
|
||||
(MNEMONIC_KEY): Likewise.
|
||||
* javax/swing/UnsupportedLookAndFeelException.java
|
||||
(UnsupportedLookAndFeelException): Must be public.
|
||||
* javax/swing/WindowConstants.java
|
||||
(EXIT_ON_CLOSE): New constant.
|
||||
* javax/swing/text/BadLocationException.java
|
||||
(offset): New member variable.
|
||||
(BadLocationException): New implementation, documentation added.
|
||||
(offsetRequested): New method.
|
||||
* javax/swing/text/Caret.java:
|
||||
Reformated.
|
||||
* javax/swing/text/Document.java:
|
||||
Reformated.
|
||||
|
||||
2003-03-21 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/rmi/activation/Activatable.java
|
||||
|
@ -78,6 +78,21 @@ public interface Action extends ActionListener {
|
||||
*/
|
||||
public static final String SMALL_ICON = "SmallIcon";
|
||||
|
||||
/**
|
||||
* ACCELERATOR_KEY
|
||||
*/
|
||||
public static final String ACCELERATOR_KEY = "AcceleratorKey";
|
||||
|
||||
/**
|
||||
* ACTION_COMMAND_KEY
|
||||
*/
|
||||
public static final String ACTION_COMMAND_KEY = "ActionCommandKey";
|
||||
|
||||
/**
|
||||
* MNEMONIC_KEY
|
||||
*/
|
||||
public static final String MNEMONIC_KEY = "MnemonicKey";
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Interface: Action ------------------------------------------
|
||||
|
@ -40,7 +40,7 @@ package javax.swing;
|
||||
|
||||
public class UnsupportedLookAndFeelException extends Exception
|
||||
{
|
||||
UnsupportedLookAndFeelException(String a)
|
||||
public UnsupportedLookAndFeelException(String a)
|
||||
{
|
||||
super(a);
|
||||
}
|
||||
|
@ -63,5 +63,10 @@ public interface WindowConstants {
|
||||
*/
|
||||
public static final int DISPOSE_ON_CLOSE = 2;
|
||||
|
||||
/**
|
||||
* EXIT_ON_CLOSE
|
||||
*/
|
||||
public static final int EXIT_ON_CLOSE =3;
|
||||
|
||||
|
||||
} // WindowConstants
|
||||
|
@ -40,7 +40,25 @@ package javax.swing.text;
|
||||
|
||||
public class BadLocationException extends Exception
|
||||
{
|
||||
BadLocationException()
|
||||
{
|
||||
}
|
||||
int offset;
|
||||
|
||||
/**
|
||||
* Constructs a <code>BadLocationException</code>
|
||||
*
|
||||
* @param str A string indicating what was wrong with the arguments
|
||||
* @param offset Offset within the document that was requested >= 0
|
||||
*/
|
||||
public BadLocationException (String str, int offset)
|
||||
{
|
||||
super (str);
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the offset into the document that was not legal
|
||||
*/
|
||||
public int offsetRequested ()
|
||||
{
|
||||
return offset;
|
||||
}
|
||||
}
|
||||
|
@ -42,21 +42,37 @@ import javax.swing.event.*;
|
||||
|
||||
public interface Caret
|
||||
{
|
||||
void addChangeListener(ChangeListener l);
|
||||
void deinstall(JTextComponent c);
|
||||
int getBlinkRate();
|
||||
int getDot();
|
||||
Point getMagicCaretPosition();
|
||||
int getMark();
|
||||
void install(JTextComponent c);
|
||||
boolean isSelectionVisible();
|
||||
boolean isVisible();
|
||||
void moveDot(int dot);
|
||||
void paint(Graphics g);
|
||||
void removeChangeListener(ChangeListener l);
|
||||
void setBlinkRate(int rate);
|
||||
void setDot(int dot);
|
||||
void setMagicCaretPosition(Point p);
|
||||
void setSelectionVisible(boolean v);
|
||||
void setVisible(boolean v);
|
||||
void addChangeListener(ChangeListener l);
|
||||
|
||||
void deinstall(JTextComponent c);
|
||||
|
||||
int getBlinkRate();
|
||||
|
||||
int getDot();
|
||||
|
||||
Point getMagicCaretPosition();
|
||||
|
||||
int getMark();
|
||||
|
||||
void install(JTextComponent c);
|
||||
|
||||
boolean isSelectionVisible();
|
||||
|
||||
boolean isVisible();
|
||||
|
||||
void moveDot(int dot);
|
||||
|
||||
void paint(Graphics g);
|
||||
|
||||
void removeChangeListener(ChangeListener l);
|
||||
|
||||
void setBlinkRate(int rate);
|
||||
|
||||
void setDot(int dot);
|
||||
|
||||
void setMagicCaretPosition(Point p);
|
||||
|
||||
void setSelectionVisible(boolean v);
|
||||
|
||||
void setVisible(boolean v);
|
||||
}
|
||||
|
@ -42,21 +42,25 @@ import javax.swing.event.*;
|
||||
|
||||
public interface Document
|
||||
{
|
||||
void addDocumentListener(DocumentListener listener);
|
||||
void addUndoableEditListener(UndoableEditListener listener);
|
||||
Position createPosition(int offs);
|
||||
Element getDefaultRootElement();
|
||||
Position getEndPosition();
|
||||
int getLength();
|
||||
Object getProperty(Object key);
|
||||
Element[] getRootElements();
|
||||
Position getStartPosition();
|
||||
String getText(int offset, int length);
|
||||
void getText(int offset, int length, Segment txt);
|
||||
void insertString(int offset, String str, AttributeSet a);
|
||||
void putProperty(Object key, Object value);
|
||||
void remove(int offs, int len);
|
||||
void removeDocumentListener(DocumentListener listener);
|
||||
void removeUndoableEditListener(UndoableEditListener listener);
|
||||
void render(Runnable r);
|
||||
public static final String StreamDescriptionProperty = "stream";
|
||||
|
||||
public static final String TitleProperty = "text";
|
||||
|
||||
void addDocumentListener(DocumentListener listener);
|
||||
void addUndoableEditListener(UndoableEditListener listener);
|
||||
Position createPosition(int offs);
|
||||
Element getDefaultRootElement();
|
||||
Position getEndPosition();
|
||||
int getLength();
|
||||
Object getProperty(Object key);
|
||||
Element[] getRootElements();
|
||||
Position getStartPosition();
|
||||
String getText(int offset, int length);
|
||||
void getText(int offset, int length, Segment txt);
|
||||
void insertString(int offset, String str, AttributeSet a);
|
||||
void putProperty(Object key, Object value);
|
||||
void remove(int offs, int len);
|
||||
void removeDocumentListener(DocumentListener listener);
|
||||
void removeUndoableEditListener(UndoableEditListener listener);
|
||||
void render(Runnable r);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user