org.cruxframework.crux.core.rebind.screen.widget
Class AttributeProcessor<C extends WidgetCreatorContext>

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.screen.widget.AbstractProcessor
      extended by org.cruxframework.crux.core.rebind.screen.widget.AttributeProcessor<C>
Direct Known Subclasses:
AbstractLayoutPanelFactory.AnimationDurationAttributeParser, AbstractPagerFactory.DisplayAttributeProcessor, AbstractPagerFactory.PageableAttributeProcessor, AbstractStackPanelFactory.VisibleStackAttributeParser, AbstractTabBarFactory.VisibleTabAttributeParser, AbstractTabPanelFactory.VisibleTabAttributeParser, AttributeProcessor.NoParser, AudioFactory.PreLoadAttributeProcessor, AutoHorizontalAlignmentAttributeParser, CellTreeFactory.AnimationAttributeProcessor, DeckPanelFactory.VisibleWidgetAttributeParser, DirectionEstimatorAttributeParser, FrameFactory.URLAttributeParser, HasDataFactory.SelectionModelProcessor, HasEnabledFactory.EditPermissionAttributeProcessor, HasRowsFactory.EstimatedRowCountProcessor, HorizontalAlignmentAttributeParser, HTMLParser, ImageFactory.URLAttributeParser, ImageFactory.VisibleRectAttributeParser, NamedFrameFactory.URLAttributeParser, ScrollPanelFactory.EnsureVisibleAttributeParser, ScrollPanelFactory.HorizontalScrollPositionAttributeParser, ScrollPanelFactory.VerticalScrollPositionAttributeParser, TabLayoutPanelFactory.VisibleTabAttributeParser, TreeFactory.OpenSelectedItemAttributeParser, ValueBoxBaseFactory.PlaceHolderProcessor, ValueBoxBaseFactory.TextAlignmentProcessor, VerticalAlignmentAttributeParser, VideoFactory.PreLoadAttributeProcessor, WidgetCreator.StyleNameProcessor, WidgetCreator.StyleProcessor, WidgetCreator.ViewPermissionAttributeProcessor

public abstract class AttributeProcessor<C extends WidgetCreatorContext>
extends AbstractProcessor

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
static class AttributeProcessor.NoParser
           
 
Field Summary
 
Fields inherited from class org.cruxframework.crux.core.rebind.screen.widget.AbstractProcessor
widgetCreator
 
Constructor Summary
AttributeProcessor(WidgetCreator<?> widgetCreator)
           
 
Method Summary
abstract  void processAttribute(AbstractProxyCreator.SourcePrinter out, C context, String attributeValue)
           
 void processAttributeInternal(AbstractProxyCreator.SourcePrinter out, WidgetCreatorContext context, String attributeValue)
          Do not call this method.
 
Methods inherited from class org.cruxframework.crux.core.rebind.screen.widget.AbstractProcessor
getLoggerVariable, getViewVariable, getWidgetCreator, printlnPostProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeProcessor

public AttributeProcessor(WidgetCreator<?> widgetCreator)
Parameters:
widgetCreator -
Method Detail

processAttribute

public abstract void processAttribute(AbstractProxyCreator.SourcePrinter out,
                                      C context,
                                      String attributeValue)
Parameters:
out -
context -
attributeValue -

processAttributeInternal

public final void processAttributeInternal(AbstractProxyCreator.SourcePrinter out,
                                           WidgetCreatorContext context,
                                           String attributeValue)
                                    throws CruxGeneratorException
Do not call this method. Work around to invoke processAttribute with reflection, once it declares a generic parameter and java fails in some cases (generic information is not completely available in runtime).

Parameters:
out -
context -
attributeValue -
Throws:
CruxGeneratorException


Copyright © 2014. All rights reserved.