nsITreeView
methods that the history result doesn't implement.
nsISupports
Last changed in Gecko 1.9.0 boolean canDrop(in long index, in long orientation); |
void onDrop(in long row, in long orientation); |
void onToggleOpenState(in long index); |
void onCycleHeader(in nsITreeColumn column); |
void onCycleCell(in long row, in nsITreeColumn column); |
void onSelectionChanged(); |
void onPerformAction(in wstring action); |
void onPerformActionOnRow(in wstring action, in long row); |
void onPerformActionOnCell(in wstring action, in long row, in nsITreeColumn column); |
Constant | Value | Description |
DROP_BEFORE |
-1 | The drag operation wishes to insert the dragged item before the indicated row. |
DROP_ON |
0 | The drag operation wishes to drop the dragged item onto the indicated row. |
DROP_AFTER |
1 | The drag operation wishes to insert the dragged item after the indicated row. |
Implement this method to report whether or not a drop is permitted onto the specified location.
To provide behavior similar to the folder pane in Thunderbird, where drops are only permitted on items themselves instead of on the pane as a whole, always return false when the orientation isn't DROP_ON
.
boolean canDrop( in long index, in long orientation );
index
orientation
Return true
if the drop is permitted or false
if it isn't.
Called when the user drops something onto the view being observed.
void onDrop( in long row, in long orientation );
row
orientation
DROP_BEFORE
, DROP_ON
, or DROP_AFTER
, indicating whether the drop destination is before, on, or after the target row.Called when an item is opened or closed.
void onToggleOpenState( in long index );
index
Called when a header is clicked.
void onCycleHeader( in nsITreeColumn column );
column
Called when a cell in a non-selectable cycling column (such as unread or flagged in Thunderbird) is clicked.
void onCycleCell( in long row, in nsITreeColumn column );
row
column
Called when the selection in the tree changes.
void onSelectionChanged();
None.
This method provides a command API that can be used to invoke commands on the selection. The tree automatically invokes this method when certain keys are pressed. For example, when the delete key is pressed, this method is called with the string "delete".
void onPerformAction( in wstring action );
action
This method provides a command API that can be used to invoke commands on the specified row. The tree automatically invokes this method when certain keys are pressed. For example, when the delete key is pressed, this method is called with the string "delete".
void onPerformActionOnRow( in wstring action, in long row );
action
row
This method provides a command API that can be used to invoke commands on a specified cell. The tree automatically invokes this method when certain keys are pressed. For example, when the delete key is pressed, this method is called with the string "delete".
void onPerformActionOnCell( in wstring action, in long row, in nsITreeColumn column );
action
row
column