edu.washington.cs.supple.rep.transform
Class AlternativesTransformer
java.lang.Object
edu.washington.cs.supple.rep.transform.AlternativesTransformer
- All Implemented Interfaces:
- UiTransformer
- public class AlternativesTransformer
- extends java.lang.Object
- implements UiTransformer
- Author:
- kgajos
Transforms the UI by getting rid of the alternatives nodes (and leaving the
correct branches of the alternatives nodes in place)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
widgetFactory
protected WidgetFactory widgetFactory
vetoFunction
protected VetoFunction vetoFunction
AlternativesTransformer
public AlternativesTransformer(WidgetFactory widgetFactory,
VetoFunction vetoFunction)
transform
public UiObject transform(UiObject root)
- Description copied from interface:
UiTransformer
- Transoforms a ui specification
- Specified by:
transform
in interface UiTransformer
- Parameters:
root
- the original specification
- Returns:
- the transformed specification
transformHelper
protected boolean transformHelper(UiObject curRoot,
boolean insideAlternative)