Class DialogBoxParser
java.lang.Object
com.google.gwt.uibinder.elementparsers.DialogBoxParser
- All Implemented Interfaces:
ElementParser
Parses
DialogBox widgets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidhandleConstructorArgs(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.XMLElement customCaption) If this is DialogBox (not a subclass), parse constructor args and generate the constructor call.protected booleanisCaption(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.XMLElement element) Determines if the element implements Caption.protected booleanisCustomWidget(com.google.gwt.uibinder.rebind.UiBinderWriter writer, JClassType type) Checks to see if the widget extends DialogBox or is DialogBox proper.voidparse(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer) Parse the given element, generating the code to initialize it from the element's attributes and children.
-
Constructor Details
-
DialogBoxParser
public DialogBoxParser()
-
-
Method Details
-
parse
public void parse(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer) throws UnableToCompleteException Description copied from interface:ElementParserParse the given element, generating the code to initialize it from the element's attributes and children.- Specified by:
parsein interfaceElementParser- Parameters:
elem- the element to be parsedfieldName- the name of the widget field to be initializedtype- TODOwriter- the writer- Throws:
UnableToCompleteException- on error
-
isCaption
protected boolean isCaption(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.XMLElement element) throws UnableToCompleteException Determines if the element implements Caption.- Throws:
UnableToCompleteException
-
isCustomWidget
protected boolean isCustomWidget(com.google.gwt.uibinder.rebind.UiBinderWriter writer, JClassType type) Checks to see if the widget extends DialogBox or is DialogBox proper. -
handleConstructorArgs
void handleConstructorArgs(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.XMLElement customCaption) throws UnableToCompleteException If this is DialogBox (not a subclass), parse constructor args and generate the constructor call. For subtypes do nothing.- Throws:
UnableToCompleteException
-