This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing
enum DropMode
- All Implemented Interfaces:
- Serializable, Comparable
public final enum DropMode
extends Enum
Drop modes, used to determine the method by which a component
tracks and indicates a drop location during drag and drop.
Field Summary |
static DropMode |
INSERT
The drop location should be tracked in terms of the position
where new data should be inserted. |
static DropMode |
INSERT_COLS
The drop location should be tracked in terms of the column index
where new columns should be inserted to accommodate the dropped
data. |
static DropMode |
INSERT_ROWS
The drop location should be tracked in terms of the row index
where new rows should be inserted to accommodate the dropped
data. |
static DropMode |
ON
The drop location should be tracked in terms of the index of
existing items. |
static DropMode |
ON_OR_INSERT
This mode is a combination of ON
and INSERT , specifying that data can be
dropped on existing items, or in insert locations
as specified by INSERT . |
static DropMode |
ON_OR_INSERT_COLS
This mode is a combination of ON
and INSERT_COLS , specifying that data can be
dropped on existing items, or as insert columns
as specified by INSERT_COLS . |
static DropMode |
ON_OR_INSERT_ROWS
This mode is a combination of ON
and INSERT_ROWS , specifying that data can be
dropped on existing items, or as insert rows
as specified by INSERT_ROWS . |
static DropMode |
USE_SELECTION
A component's own internal selection mechanism (or caret for text
components) should be used to track the drop location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSERT
public static final DropMode INSERT
-
The drop location should be tracked in terms of the position
where new data should be inserted. For components that manage
a list of items (list and tree for example), the drop location
should indicate the index where new data should be inserted.
For text components the location should represent a position
between characters. For components that manage tabular data
(table for example), the drop location should indicate
where to insert new rows, columns, or both, to accommodate
the dropped data.
INSERT_COLS
public static final DropMode INSERT_COLS
-
The drop location should be tracked in terms of the column index
where new columns should be inserted to accommodate the dropped
data. This is useful for components that manage tabular data.
INSERT_ROWS
public static final DropMode INSERT_ROWS
-
The drop location should be tracked in terms of the row index
where new rows should be inserted to accommodate the dropped
data. This is useful for components that manage tabular data.
ON
public static final DropMode ON
-
The drop location should be tracked in terms of the index of
existing items. Useful for dropping on items in tables, lists,
and trees.
ON_OR_INSERT
public static final DropMode ON_OR_INSERT
-
This mode is a combination of
ON
and INSERT
, specifying that data can be
dropped on existing items, or in insert locations
as specified by INSERT
.
ON_OR_INSERT_COLS
public static final DropMode ON_OR_INSERT_COLS
-
This mode is a combination of
ON
and INSERT_COLS
, specifying that data can be
dropped on existing items, or as insert columns
as specified by INSERT_COLS
.
ON_OR_INSERT_ROWS
public static final DropMode ON_OR_INSERT_ROWS
-
This mode is a combination of
ON
and INSERT_ROWS
, specifying that data can be
dropped on existing items, or as insert rows
as specified by INSERT_ROWS
.
USE_SELECTION
public static final DropMode USE_SELECTION
-
A component's own internal selection mechanism (or caret for text
components) should be used to track the drop location.
valueOf
public static DropMode valueOf(String name)
-
- Parameters:
name
values
public static DropMode[] values()
-
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.