MaxCustomControls::MaxTreeListHandler Class Reference


Detailed Description

Overrides a lot of the DevExpress standard behaviour with custom behaviour.

The DevExpress.TreeList class allows the client to supply its own handling class to override the behaviour in specific situations. We take advantage of this fact. The DevExpress TreeListHandler handles mouse operations for the TreeList using a set of TreeListState classes. This MaxTreeListHandler overrides TreeListHandler to supply custom states adjusting interaction to our specifications.

Inheritance diagram for MaxCustomControls::MaxTreeListHandler:
Inheritance graph
[legend]

List of all members.

Classes

class   MaxColumnDraggingState
  The state handler for column dragging.
class   MaxMultiSelectionState
  Overridden to handle multi-selections specifically.
class   MaxNodeDraggingState
  Overridden to modify the default node drag behaviour.
class   MaxNodePressedState
  Overridden state used after a mouse down event occurs on a node - usually until a mouse up or drag occurs.
class   MaxRegularState
  Replaces the initial state during mouse interaction.

Public Member Functions

  MaxTreeListHandler (MaxTreeList treeList)
  Contructor.
override void  OnSelectionChanged ()
  Overridden to allow us to block SelectionChanged events, if necessary.

Protected Member Functions

override TreeListControlState  CreateState (TreeListState state)
  The main entry point to overriding State classes which handle how the TreeList behaves in specific "states.".

Properties

virtual TreeListNode  MultiSelectAnchorNode [get, set]
  Persists anchor node for shift- and control-select across TreeListControlState changes.
MaxTreeList  MaxTreeList [get]
  The TreeList managed by this handler.
bool  MouseSelectionEnabled [get, set]
  Determines if mouse actions may change the set of selected nodes.
bool  SelectionChangedEnabled [get, set]
  Determines if selection changes cause events to be fired.

Constructor & Destructor Documentation

MaxCustomControls::MaxTreeListHandler::MaxTreeListHandler ( MaxTreeList  treeList ) [inline]

Contructor.

Parameters:
treeList The TreeList that this handler will be associated with.

Member Function Documentation

override TreeListControlState MaxCustomControls::MaxTreeListHandler::CreateState ( TreeListState  state ) [inline, protected]

The main entry point to overriding State classes which handle how the TreeList behaves in specific "states.".

Parameters:
state An enumeration value of a state handling object that the treelist needs to create.
Returns:
The control state object that handles a specific TreeList state.

Reimplemented in MaxCustomControls::BaseMaterialControls::MaterialTreeListHandler.

override void MaxCustomControls::MaxTreeListHandler::OnSelectionChanged ( ) [inline]

Overridden to allow us to block SelectionChanged events, if necessary.


Property Documentation

virtual TreeListNode MaxCustomControls::MaxTreeListHandler::MultiSelectAnchorNode [get, set]

Persists anchor node for shift- and control-select across TreeListControlState changes.

Reimplemented in MaxCustomControls::ExplorerTreeListHandler.

MaxTreeList MaxCustomControls::MaxTreeListHandler::MaxTreeList [get]

The TreeList managed by this handler.

bool MaxCustomControls::MaxTreeListHandler::MouseSelectionEnabled [get, set]

Determines if mouse actions may change the set of selected nodes.

bool MaxCustomControls::MaxTreeListHandler::SelectionChangedEnabled [get, set]

Determines if selection changes cause events to be fired.


MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler
MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler MaxCustomControls::MaxTreeListHandler