| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<DropMode>
javax.swing.DropMode
public enum DropMode
放置模式,用于确定组件在拖放过程中跟踪和指示放置位置 (drop location) 的方法。
JTable.setDropMode(javax.swing.DropMode), 
JList.setDropMode(javax.swing.DropMode), 
JTree.setDropMode(javax.swing.DropMode), 
JTextComponent.setDropMode(javax.swing.DropMode)| 枚举常量摘要 | |
|---|---|
| INSERT应该根据要插入新数据的位置跟踪放置位置。 | |
| INSERT_COLS应该根据要插入新列(以容纳要放置的数据)处的列索引来跟踪放置位置。 | |
| INSERT_ROWS应该根据要插入新行(以容纳要放置的数据)处的行索引来跟踪放置位置。 | |
| ON应该根据现有项的索引跟踪放置位置。 | |
| ON_OR_INSERT此模式是 ON和INSERT的组合,指定数据可以放置在现有项上或INSERT指定的插入位置中。 | |
| ON_OR_INSERT_COLS此模式是 ON和INSERT_COLS的组合,指定数据可以放置在现有项上或INSERT_COLS指定的插入列中。 | |
| ON_OR_INSERT_ROWS此模式是 ON和INSERT_ROWS的组合,指定数据可以放置在现有项上或INSERT_ROWS指定的插入行中。 | |
| USE_SELECTION组件本身的内部选择机制(或插入符,对于文本组件而言)应该用于跟踪放置位置。 | |
| 方法摘要 | |
|---|---|
| static DropMode | valueOf(String name)返回带有指定名称的该类型的枚举常量。 | 
| static DropMode[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| 从类 java.lang.Enum 继承的方法 | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| 枚举常量详细信息 | 
|---|
public static final DropMode USE_SELECTION
public static final DropMode ON
public static final DropMode INSERT
public static final DropMode INSERT_ROWS
public static final DropMode INSERT_COLS
public static final DropMode ON_OR_INSERT
ON 和 INSERT 的组合,指定数据可以放置在现有项上或 INSERT 指定的插入位置中。
public static final DropMode ON_OR_INSERT_ROWS
ON 和 INSERT_ROWS 的组合,指定数据可以放置在现有项上或 INSERT_ROWS 指定的插入行中。
public static final DropMode ON_OR_INSERT_COLS
ON 和 INSERT_COLS 的组合,指定数据可以放置在现有项上或 INSERT_COLS 指定的插入列中。
| 方法详细信息 | 
|---|
public static final DropMode[] values()
for(DropMode c : DropMode.values())
        System.out.println(c);
public static DropMode valueOf(String name)
指定要返回的枚举常量的名称。 - 
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。