summaryrefslogtreecommitdiff
path: root/java/awt/List.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-12-23 12:45:45 +0000
committerMichael Koch <konqueror@gmx.de>2002-12-23 12:45:45 +0000
commit8d19a41fa23111a250eff26550db17fd3aceab9b (patch)
tree5cf5719762c9a09e24e80784d3c0ed2b26194c5f /java/awt/List.java
parent9bb53ea6882e2e21055afcfda7d1185e6973014b (diff)
downloadclasspath-8d19a41fa23111a250eff26550db17fd3aceab9b.tar.gz
2002-12-23 Michael Koch <konqueror@gmx.de>
* java/awt/Adjustable.java (HORIZONTAL): Made static final. (VERTICAL): Made static final. (NO_ORITENTATION): Made static final. * java/awt/AlphaComposite.java (getInstance): Documentation added. * java/awt/BasicStroke.java (BasicStroke): Documentation added, reformated code. * java/awt/CheckboxMenuItem.java (CheckboxMenuItem): Throw HeadlessException, added exception documentation. * java/awt/Choice.java (Choice): Throw exception, added documentation. (add): Throw NullPointerException instead of IllegalArgumentException, added some documentation. (addItem): Added some documentation. (insert): Throw exception, added documentation. * java/awt/Container.java: Made some documentation looking better. (getListeners): Added documentation. (setFocusTraversalKeys): Throw exception. (getFocusTraversalKeys): Throw exception. (areFocusTraversalKeys): Throw exception. * java/awt/Cursor.java (Cursor): Added documentation. (getSystemCustomCursor): Throw exception, added documentation. * java/awt/EventQueue.java (postEvent): Added documentation. (invodeAndWait): Added documentation. (push): Added documentation. (pop): Added documentation. (dispatchEvent): Added documentation. * java/awt/FileDialog.java (FileDialog): Call setMode() instead of code duplication, added documentation. (setMode): Added documentation. * java/awt/Label.java (Label): Throw exception, added documentation. * java/awt/List.java (List): Throw exception, added documentation. * java/awt/Menu.java (Menu): Throw exception, added documentation. * java/awt/MenuBar.java (MenuBar): Throw exception, added documentation. * java/awt/MenuComponent.java (MenuComponent): Throw exception, added documentation. * java/awt/PopupMenu.java (PopupMenu): Throw exception, added documentation. * java/awt/ScrollPane.java (ScrollPane): Throw exception, added documentation. * java/awt/Scrollbar.java (Scrollbar): Throw exception, added documentation. * java/awt/TextArea.java (TextArea): Throw exception, added documentation. * java/awt/TextField.java (TextField): Throw exception, added documentation. * java/awt/Transparency.java (OPAQUE): Made static final. (BITMASK): Made static final. (TRANSLUCENT): Made static final. * java/awt/color/CMMException.java: (CMMException): Extends RuntimeException not Exception. * java/awt/color/ColorSpace.java (ColorSpace): Implements Serializable. * java/awt/color/ICC_Profile.java (write): Throws IOException. * java/awt/color/ProfileDataException.java (ProfileDataException): Extends RuntimeException not Exception. * java/awt/datatransfer/Clipboard.java (getContents): Added documentation. (setContents): Added documentation. * java/awt/datatransfer/DataFlavor.java (DataFlavor): Added documentation. (isMimeTypeEqual): Added documentation. (clone): Added documentation. (readExternal): Added documentation. (writeExternal): Added documentation. * java/awt/datatransfer/SystemDataFlavor.java: Reintented, Reformated. (SystemDataFlavor): Added implements FlavorTable. (getFalvorsForNative): New stubbed method. (getNativesForFlavor): New stubbed method. * java/awt/dnd/DragGestureEvent.java (startDrag): Added documentation. * java/awt/dnd/DragGestureRecognizer.java (addDragGestureListener): Added documentation. * java/awt/dnd/DragSource.java (DragSource): Throw exception, documentation added. (getDefaultDragSource): Added documentation. (startDrag): Added documentation. (createDragSourceContext): Added documentation. * java/awt/dnd/DropTarget.java (DropTarget): Implements DropTargetListener, EventListener, Serializable. (isActive): New member variable to save state. (setActive): Implemented. (isActive): Implemented. * java/awt/geom/PathIterator.java: Fixed two documentations to be HTML conform.
Diffstat (limited to 'java/awt/List.java')
-rw-r--r--java/awt/List.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/awt/List.java b/java/awt/List.java
index f2c6d0788..07fea67b0 100644
--- a/java/awt/List.java
+++ b/java/awt/List.java
@@ -113,6 +113,8 @@ private ActionListener action_listeners;
/**
* Initializes a new instance of <code>List</code> with no visible lines
* and multi-select disabled.
+ *
+ * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/
public
List()
@@ -127,6 +129,8 @@ List()
* number of visible lines and multi-select disabled.
*
* @param lines The number of visible lines in the list.
+ *
+ * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/
public
List(int rows)
@@ -143,12 +147,17 @@ List(int rows)
* @param lines The number of visible lines in the list.
* @param multipleMode <code>true</code> if multiple lines can be selected
* simultaneously, <code>false</code> otherwise.
+ *
+ * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/
public
List(int rows, boolean multipleMode)
{
this.rows = rows;
this.multipleMode = multipleMode;
+
+ if (GraphicsEnvironment.isHeadless())
+ throw new HeadlessException ();
}
/*************************************************************************/