Style |
public class StyleListController<TManager, TList, TItem> : MVCANControllerEditImmutableDocBase<TList, IStyleListView>, IStyleListController where TManager : Object, IStyleListManager<TList, TItem> where TList : Object, IStyleList<TItem> where TItem : IImmutable
The StyleListControllerTManager, TList, TItem type exposes the following members.
| Name | Description | |
|---|---|---|
| StyleListControllerTManager, TList, TItem | Initializes a new instance of the StyleListControllerTManager, TList, TItem class. |
| Name | Description | |
|---|---|---|
| AvailableItems | Gets the available style items. | |
| AvailableItemsDragDropHandler | Gets the drag-and-drop handler for available items. | |
| AvailableLists | Gets the available style lists. | |
| CmdAvailableItem_AddToCurrent | Gets the command that adds selected available items to the current list. | |
| CmdCurrentItem_Edit | Gets the command that edits the selected current item. | |
| CmdCurrentItem_MoveDown | Gets the command that moves selected current items down. | |
| CmdCurrentItem_MoveUp | Gets the command that moves selected current items up. | |
| CmdCurrentItem_Remove | Gets the command that removes selected current items. | |
| CmdCurrentList_Store | Gets the command that stores the current list. | |
| CurrentItems | Gets or sets the items in the current editable list. | |
| CurrentItemsDragDropHandler | Gets the drag-and-drop handler for current items. | |
| IsDisposed |
Gets a value indicating whether this controller is already disposed.
(Inherited from ControllerBase) | |
| ModelObject |
Gets the model (document) that this controller manages.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| NewListNameIsEnabled | Gets or sets a value indicating whether the list name can be edited. | |
| NewListNameIsMarked | Gets or sets a value indicating whether the list name should be highlighted. | |
| NewListNameText | Gets or sets the proposed name of the current list. | |
| NewListNameToolTip | Gets or sets the tooltip shown for the list name. | |
| NoDocumentException |
Gets an exception that is thrown when a controller was not initialized with a document.
(Inherited from ControllerBase) | |
| NotInitializedException |
Gets an exception that is thrown when a controller is not properly initialized.
(Inherited from ControllerBase) | |
| NoViewException |
Gets an exception that is thrown when a controller currently has no view.
(Inherited from ControllerBase) | |
| StoreInUserSettings | Gets or sets a value indicating whether the list should be stored at user level. | |
| UseDocumentCopy |
Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied,
all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted.
Use the last option if a controller higher in the hierarchy has already made a copy of the document.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) |
| Name | Description | |
|---|---|---|
| Apply |
Called when the user input has to be applied to the document being controlled. Returns if applying succeeded.
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewApply(Boolean)) | |
| ApplyEnd |
Helper that performs the final steps of the apply operation, optionally disposing the controller.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| AttachView |
Override this function to attach the view to the controller, either by subscribing to events of the view, or by setting the controller object on the view.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| CheckDocumentInitializedT |
Checks whether the document has been initialized and throws an exception if it is null.
(Inherited from ControllerBase) | |
| Controller_AvailableItems_Initialize | Initializes the collection of available style items. | |
| Controller_CurrentItems_Initialize | Initializes the collection of items in the current list. | |
| DetachView |
Override this function to detach the view from the controller, either by unsubscribing from events of the view or by setting the controller object on the view to null.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ControllerBase) | |
| Dispose(Boolean) |
Releases unmanaged and, optionally, managed resources.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| EhAvailableItem_AddToCurrent | Adds the currently selected available item to the current list. | |
| EhCurrentItem_Edit | Edits the currently selected item. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetSubControllers |
Enumerates the sub controllers. This function is called on Dispose(Boolean) of this controller to dispose the sub controllers too.
By overriding this function, there is no need to override Dispose(Boolean).
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewGetSubControllers) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Initialize |
Basic initialization of the document.
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewInitialize(Boolean)) | |
| InitializeDocument |
Initializes the controller with the document.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| IsItemEditable | Determines whether the specified item can be edited. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnPropertyChanged |
Raises the PropertyChanged event.
(Inherited from ControllerBase) | |
| Revert |
Tries to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| SetListDirty | Marks the current list as dirty and updates the associated UI state. | |
| ThrowIfNotInitialized | Throws an exception if the controller is not initialized with a document. (Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| ToDisplayName(TItem) | Converts a style item to the display text shown in the UI. | |
| ToDisplayName(Type) | Converts a style item type to the display text shown in the UI. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| PropertyChanged | Occurs when a property value changes. (Inherited from ControllerBase) |
| Name | Description | |
|---|---|---|
| _availableItemsRootNode | Root node for the tree of available style items. | |
| _doc |
The document to edit. If _useDocumentCopy is , this is a copy of the original document; otherwise, it is the original document itself.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _originalDoc |
The original document. If _useDocumentCopy is , it may have been edited by this controller.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _useDocumentCopy |
If , a copy of the document is made before editing; this copy can later be used to revert the state of the document to the original state.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _view |
The GUI view of this controller.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) |