C# Class FullInspector.PropertyEditorChain

In Full Inspector, there are typically a large number of property editors that can be used for each type, for example, a user defined editor, then the abstract editor, then the reflected editor. PropertyEditorChain encapsulates this idea and makes it easy to retrieve the next editor that will be used.
Afficher le fichier Open project: jacobdufault/fullinspector Class Usage Examples

Méthodes publiques

Méthode Description
GetNextEditor ( IPropertyEditor editor ) : IPropertyEditor

Returns the next editor that will be used, or null if the given editor is either the last one or was not found in the chain.

HasNextEditor ( IPropertyEditor editor ) : bool

Returns true if there is another editor after the given one.

SkipUntilNot ( ) : IPropertyEditor

Returns the first property editor in this chain that is not an instance of any of the given types.

Private Methods

Méthode Description
AddEditor ( IPropertyEditor editor ) : void

Adds an editor to the end of this chain.

Method Details

GetNextEditor() public méthode

Returns the next editor that will be used, or null if the given editor is either the last one or was not found in the chain.
public GetNextEditor ( IPropertyEditor editor ) : IPropertyEditor
editor IPropertyEditor The editor that is currently being used.
Résultat IPropertyEditor

HasNextEditor() public méthode

Returns true if there is another editor after the given one.
public HasNextEditor ( IPropertyEditor editor ) : bool
editor IPropertyEditor
Résultat bool

SkipUntilNot() public méthode

Returns the first property editor in this chain that is not an instance of any of the given types.
public SkipUntilNot ( ) : IPropertyEditor
Résultat IPropertyEditor