Commit 30b3f142 by Michael Koch Committed by Michael Koch

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
parent 15596d40
2003-03-21 Michael Koch <konqueror@gmx.de> 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 * java/rmi/activation/Activatable.java
(serialVersionUID): New member variable. (serialVersionUID): New member variable.
* java/rmi/activation/ActivationGroup.java * java/rmi/activation/ActivationGroup.java
......
...@@ -78,6 +78,21 @@ public interface Action extends ActionListener { ...@@ -78,6 +78,21 @@ public interface Action extends ActionListener {
*/ */
public static final String SMALL_ICON = "SmallIcon"; 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 ------------------------------------------ // Interface: Action ------------------------------------------
......
...@@ -40,7 +40,7 @@ package javax.swing; ...@@ -40,7 +40,7 @@ package javax.swing;
public class UnsupportedLookAndFeelException extends Exception public class UnsupportedLookAndFeelException extends Exception
{ {
UnsupportedLookAndFeelException(String a) public UnsupportedLookAndFeelException(String a)
{ {
super(a); super(a);
} }
......
...@@ -63,5 +63,10 @@ public interface WindowConstants { ...@@ -63,5 +63,10 @@ public interface WindowConstants {
*/ */
public static final int DISPOSE_ON_CLOSE = 2; public static final int DISPOSE_ON_CLOSE = 2;
/**
* EXIT_ON_CLOSE
*/
public static final int EXIT_ON_CLOSE =3;
} // WindowConstants } // WindowConstants
...@@ -40,7 +40,25 @@ package javax.swing.text; ...@@ -40,7 +40,25 @@ package javax.swing.text;
public class BadLocationException extends Exception 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 &gt;= 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;
} }
} }
...@@ -43,20 +43,36 @@ import javax.swing.event.*; ...@@ -43,20 +43,36 @@ import javax.swing.event.*;
public interface Caret public interface Caret
{ {
void addChangeListener(ChangeListener l); void addChangeListener(ChangeListener l);
void deinstall(JTextComponent c); void deinstall(JTextComponent c);
int getBlinkRate(); int getBlinkRate();
int getDot(); int getDot();
Point getMagicCaretPosition(); Point getMagicCaretPosition();
int getMark(); int getMark();
void install(JTextComponent c); void install(JTextComponent c);
boolean isSelectionVisible(); boolean isSelectionVisible();
boolean isVisible(); boolean isVisible();
void moveDot(int dot); void moveDot(int dot);
void paint(Graphics g); void paint(Graphics g);
void removeChangeListener(ChangeListener l); void removeChangeListener(ChangeListener l);
void setBlinkRate(int rate); void setBlinkRate(int rate);
void setDot(int dot); void setDot(int dot);
void setMagicCaretPosition(Point p); void setMagicCaretPosition(Point p);
void setSelectionVisible(boolean v); void setSelectionVisible(boolean v);
void setVisible(boolean v); void setVisible(boolean v);
} }
...@@ -42,6 +42,10 @@ import javax.swing.event.*; ...@@ -42,6 +42,10 @@ import javax.swing.event.*;
public interface Document public interface Document
{ {
public static final String StreamDescriptionProperty = "stream";
public static final String TitleProperty = "text";
void addDocumentListener(DocumentListener listener); void addDocumentListener(DocumentListener listener);
void addUndoableEditListener(UndoableEditListener listener); void addUndoableEditListener(UndoableEditListener listener);
Position createPosition(int offs); Position createPosition(int offs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment