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;
}
} }
...@@ -42,21 +42,37 @@ import javax.swing.event.*; ...@@ -42,21 +42,37 @@ import javax.swing.event.*;
public interface Caret public interface Caret
{ {
void addChangeListener(ChangeListener l); void addChangeListener(ChangeListener l);
void deinstall(JTextComponent c);
int getBlinkRate(); void deinstall(JTextComponent c);
int getDot();
Point getMagicCaretPosition(); int getBlinkRate();
int getMark();
void install(JTextComponent c); int getDot();
boolean isSelectionVisible();
boolean isVisible(); Point getMagicCaretPosition();
void moveDot(int dot);
void paint(Graphics g); int getMark();
void removeChangeListener(ChangeListener l);
void setBlinkRate(int rate); void install(JTextComponent c);
void setDot(int dot);
void setMagicCaretPosition(Point p); boolean isSelectionVisible();
void setSelectionVisible(boolean v);
void setVisible(boolean v); 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.*; ...@@ -42,21 +42,25 @@ import javax.swing.event.*;
public interface Document public interface Document
{ {
void addDocumentListener(DocumentListener listener); public static final String StreamDescriptionProperty = "stream";
void addUndoableEditListener(UndoableEditListener listener);
Position createPosition(int offs); public static final String TitleProperty = "text";
Element getDefaultRootElement();
Position getEndPosition(); void addDocumentListener(DocumentListener listener);
int getLength(); void addUndoableEditListener(UndoableEditListener listener);
Object getProperty(Object key); Position createPosition(int offs);
Element[] getRootElements(); Element getDefaultRootElement();
Position getStartPosition(); Position getEndPosition();
String getText(int offset, int length); int getLength();
void getText(int offset, int length, Segment txt); Object getProperty(Object key);
void insertString(int offset, String str, AttributeSet a); Element[] getRootElements();
void putProperty(Object key, Object value); Position getStartPosition();
void remove(int offs, int len); String getText(int offset, int length);
void removeDocumentListener(DocumentListener listener); void getText(int offset, int length, Segment txt);
void removeUndoableEditListener(UndoableEditListener listener); void insertString(int offset, String str, AttributeSet a);
void render(Runnable r); void putProperty(Object key, Object value);
void remove(int offs, int len);
void removeDocumentListener(DocumentListener listener);
void removeUndoableEditListener(UndoableEditListener listener);
void render(Runnable r);
} }
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