Interface FieldDecorator
- All Known Implementing Classes:
DefaultFieldDecorator
public interface FieldDecorator
Allows the PageFactory to decorate fields.
-
Method Summary
Modifier and TypeMethodDescriptiondecorate
(ClassLoader loader, Field field) This method is called by PageFactory on all fields to decide how to decorate the field.
-
Method Details
-
decorate
This method is called by PageFactory on all fields to decide how to decorate the field.- Parameters:
loader
- The class loader that was used for the page objectfield
- The field that may be decorated.- Returns:
- Value to decorate the field with or null if it shouldn't be decorated. If non-null, must be assignable to the field.
-