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.
Exibir arquivo Open project: jacobdufault/fullinspector Class Usage Examples

Public Methods

Method 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

Method Description
AddEditor ( IPropertyEditor editor ) : void

Adds an editor to the end of this chain.

Method Details

GetNextEditor() public method

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.
return IPropertyEditor

HasNextEditor() public method

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

SkipUntilNot() public method

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