Executes the given NodeCommand whenever a Node Event is received.
Construct with the NodeCommand to execute, then register HandleNodeEvent as a handler for any event which should cause the given NodeCommand to fire.
Public Member Functions |
|
NodeCommandEventHandler () | |
Constructs an empty event handler. |
|
NodeCommandEventHandler (NodeCommand command) | |
Constructs this handler with the NodeCommand
to run. |
|
virtual void | HandleNodeEvent (object sender, TraversalNodeEventArgs e) |
Event handler any Node Event. |
|
virtual void | HandleDragOverNode (object sender, TraversalNodeActionQueryEventArgs e) |
Handles the DragOver event on the
ExplorerContainer that it is monitoring. |
|
Properties |
|
NodeCommand |
NodeCommand [get, set] |
The NodeCommand executed by this handler
upon receiving Node Events. |
MaxCustomControls::NodeCommandEventHandler::NodeCommandEventHandler | ( | ) | [inline] |
Constructs an empty event handler.
The NodeCommand property can later be set later.
MaxCustomControls::NodeCommandEventHandler::NodeCommandEventHandler | ( | NodeCommand | command | ) | [inline] |
Constructs this handler with the NodeCommand to run.
command | A node command to run when this handler is called. |
virtual void MaxCustomControls::NodeCommandEventHandler::HandleNodeEvent | ( | object | sender, |
TraversalNodeEventArgs | e | ||
) | [inline, virtual] |
Event handler any Node Event.
Fires the given NodeCommand.
sender | The source of the event |
e | Data about this event containing the affected node. |
Reimplemented in MaxCustomControls::MaxExplorerControls::DragDropNodeCommandEventHandler.
virtual void MaxCustomControls::NodeCommandEventHandler::HandleDragOverNode | ( | object | sender, |
TraversalNodeActionQueryEventArgs | e | ||
) | [inline, virtual] |
Handles the DragOver event on the ExplorerContainer that it is monitoring.
Will call NodeCommand.IsValid() and set the result in TraversalNodeDragEventArgs.DragActionIsValid
sender | The sender of the event. |
e | The arguments for this event. The arguments contain the current target node and property that allows this handler to indicate whether the NodeCommand is valid for this target. |
Reimplemented in MaxCustomControls::MaxExplorerControls::DragDropNodeCommandEventHandler.
NodeCommand
MaxCustomControls::NodeCommandEventHandler::NodeCommand [get,
set] |
The NodeCommand executed by this handler upon receiving Node Events.