Package com.iizix.prop.ui
Class UIPanelAnnotationReferenceProcessor
java.lang.Object
com.iizix.prop.ui.UIPanelAnnotationReferenceProcessor
- All Implemented Interfaces:
- IAnnotationReferenceProcessor<UIPanelBase,- UIPanelBase> 
public class UIPanelAnnotationReferenceProcessor extends Object implements IAnnotationReferenceProcessor<UIPanelBase,UIPanelBase> 
The UI panel reference processor used for the @UIPanelRef annotation.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- getReferencePath- (GProp<?> comp) Returns the reference path of a component.Returns the class for the scope reference.- resolveReference- (GProp<?> scope, String reference) Resolves a reference name to the UI panel.
- Constructor Details- UIPanelAnnotationReferenceProcessorpublic UIPanelAnnotationReferenceProcessor()
 
- Method Details- getScopeClassReturns the class for the scope reference.- Specified by:
- getScopeClassin interface- IAnnotationReferenceProcessor<UIPanelBase,- UIPanelBase> 
- Returns:
- null for none.
 
- resolveReferencepublic UIPanelBase resolveReference- (GProp<?> scope, String reference) throws PropTypeException, NotFoundException Resolves a reference name to the UI panel.- Specified by:
- resolveReferencein interface- IAnnotationReferenceProcessor<UIPanelBase,- UIPanelBase> 
- Parameters:
- scope- The scope, in this case any property of the Module Project.
- reference- The reference to the UI panel.
- Returns:
- The panel found, never null.
- Throws:
- PropTypeException- If the property is not found or if the property is of wrong type.
- NotFoundException- If the component is not found.
 
- getReferencePathReturns the reference path of a component.- Specified by:
- getReferencePathin interface- IAnnotationReferenceProcessor<UIPanelBase,- UIPanelBase> 
- Parameters:
- comp- The component.
- Returns:
- The reference path to the UI panel.
- Throws:
- IllegalStateException- If the tree is invalid.
- PropTypeException- If the property type is invalid, i.e. not a panel.