API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. DropMode View Source
Author(s)
Shannon Hickey
Since
1.6
Version
1.2 11/17/05
Serial
Hierarchy
 Object
      Enum
          DropMode
Implements
Subclasses
Description
publicfinal enum DropMode
  Drop modes, used to determine the method by which a component tracks and indicates a drop location during drag and drop.
Enum Constants
USE_SELECTION
A component's own internal selection mechanism (or caret for text components) should be used to track the drop location.
ON
  The drop location should be tracked in terms of the index of existing items.
INSERT
  The drop location should be tracked in terms of the position where new data should be inserted.
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.
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.
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_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.
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.
Methods
Hide/Show inherited methods
protectedfinal Object clone () throws CloneNotSupportedException [Inherited From Enum]
  Throws CloneNotSupportedException.
publicfinal int compareTo ( E o) [Inherited From Enum]
  Compares this enum with the specified object for order.
publicfinal boolean equals (Object other) [Inherited From Enum]
  Returns true if the specified object is equal to this enum constant.
protectedfinal void finalize () [Inherited From Enum]
enum classes cannot have finalize methods.
publicfinal Class< E> getDeclaringClass () [Inherited From Enum]
  Returns the Class object corresponding to this enum constant's enum type.
publicfinal int hashCode () [Inherited From Enum]
  Returns a hash code for this enum constant.
publicfinal String name () [Inherited From Enum]
  Returns the name of this enum constant, exactly as declared in its enum declaration.
publicfinal int ordinal () [Inherited From Enum]
  Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
public String toString () [Inherited From Enum]
  Returns the name of this enum constant, as contained in the declaration.
publicstatic T valueOf (Class< T> enumType, String name) [Inherited From Enum]
  Returns the enum constant of the specified enum type with the specified name.
publicstatic DropMode valueOf (String name)
publicfinalstatic DropMode values ()
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar