Let\'s say I have an object hierarchy like this:
Account > Site > Supply
An Account is an actual company, a Site is a building they have, an
You can have your SupplyEditor implement ValueAwareEditor.
This way, the editor framework will pass you the actual value being edited in the setValue(Supply supply);
In the implementation of setValue(Supply supply) you can inspect the type of Supply and choose to show/hide any additional relevant fields.