Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.javatools.ui.table
Enum TableToolbar.ToolAction

java.lang.Object
  extended by java.lang.Enum<TableToolbar.ToolAction>
      extended by oracle.javatools.ui.table.TableToolbar.ToolAction

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TableToolbar.ToolAction>
Enclosing class:
TableToolbar

public static enum TableToolbar.ToolAction
extends java.lang.Enum<TableToolbar.ToolAction>

Action Keys to get some of the default action for the table


Enum Constant Summary
ADD_COLUMN
          This action is supported only for DefaultTableModel and EditableTableModel.
ADD_ROW
          This action is supported only for DefaultTableModel and EditableTableModel.
ADD_ROW_AFTER
          This action is supported only for DefaultTableModel and EditableTableModel.
ADD_ROW_BEFORE
          This action is supported only for DefaultTableModel and EditableTableModel.
CLEAR
          This action is supported for all TableModels provided the selected cell(s) are editable.
COPY
          If the table's TransferHandler supports copy action, this will invoke the transferhandler's copy action.
DELETE_COLUMN
          This action is supported only for EditableTableModel.
DELETE_ROW
          This action is supported only for DefaultTableModel and EditableTableModel.
DUPLICATE_ROW
          This action duplicates a row.
PASTE
          If the table's TransferHandler supports paste action, this will invoke the transferhandler's paste action.

 

Method Summary
static TableToolbar.ToolAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TableToolbar.ToolAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

ADD_ROW

public static final TableToolbar.ToolAction ADD_ROW
This action is supported only for DefaultTableModel and EditableTableModel. A new row will be created and added to the end of the table.

ADD_ROW_BEFORE

public static final TableToolbar.ToolAction ADD_ROW_BEFORE
This action is supported only for DefaultTableModel and EditableTableModel. A new row will be created and added before the selected row.

ADD_ROW_AFTER

public static final TableToolbar.ToolAction ADD_ROW_AFTER
This action is supported only for DefaultTableModel and EditableTableModel. A new row will be created and added after the selected row.

ADD_COLUMN

public static final TableToolbar.ToolAction ADD_COLUMN
This action is supported only for DefaultTableModel and EditableTableModel. A new column will be created and added as the last column.

DELETE_ROW

public static final TableToolbar.ToolAction DELETE_ROW
This action is supported only for DefaultTableModel and EditableTableModel. This deletes the selected row(s), shift up and select the next row. If there is no next row, the last row in the table will be selected.

DELETE_COLUMN

public static final TableToolbar.ToolAction DELETE_COLUMN
This action is supported only for EditableTableModel. The selected column will be removed from the table and column header, shift the next column to the left and select that column.

CLEAR

public static final TableToolbar.ToolAction CLEAR
This action is supported for all TableModels provided the selected cell(s) are editable. If there are any selected row(s), it will clear the row. If column(s) is selected, it will clear the selected column. Otherwise the selected cell will be cleared.

COPY

public static final TableToolbar.ToolAction COPY
If the table's TransferHandler supports copy action, this will invoke the transferhandler's copy action.

PASTE

public static final TableToolbar.ToolAction PASTE
If the table's TransferHandler supports paste action, this will invoke the transferhandler's paste action.

DUPLICATE_ROW

public static final TableToolbar.ToolAction DUPLICATE_ROW
This action duplicates a row. If the table model is EditableTableModel and supports duplication of row, the selected row is duplicated and the new row is selected. If the table model is DefaultTableModel, this action will just make an exact copy of the selected row.

Method Detail

values

public static TableToolbar.ToolAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TableToolbar.ToolAction c : TableToolbar.ToolAction.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TableToolbar.ToolAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.