|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.swt.client.widget.SwtWidgetTransformer
public class SwtWidgetTransformer
Default class for transforming a SwtWidget to and from declarative layout
(XML) format.
| Constructor Summary | |
|---|---|
SwtWidgetTransformer(SwtWidgetCreator widgetCreator,
SwtErrorStack errorStack)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAdditionalInfoToWidgetLayout(com.google.gwt.xml.client.Document doc,
com.google.gwt.user.client.ui.Widget w,
com.google.gwt.xml.client.Element widgetElem,
java.lang.String widgetIndent)
Adds additional information (not covered by the property bag) to the widget's element in the declarative layout (DOM) XML. |
com.google.gwt.user.client.ui.Widget |
generateWidgetFromLayout(java.lang.String formID,
com.google.gwt.xml.client.Element widgetElem,
InstanceLoader instanceLoader,
java.util.List<DelayedPropertyInfo> delayedProperties,
PropertyChangeHandler propertyHandler)
Generates a widget from its element in the declarative layout XML (DOM). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwtWidgetTransformer(SwtWidgetCreator widgetCreator,
SwtErrorStack errorStack)
widgetCreator - The SwtWidgetCreator that will be used to create the
widget.errorStack - The SwtErrorStack that stores the list of UI errors.| Method Detail |
|---|
public void addAdditionalInfoToWidgetLayout(com.google.gwt.xml.client.Document doc,
com.google.gwt.user.client.ui.Widget w,
com.google.gwt.xml.client.Element widgetElem,
java.lang.String widgetIndent)
addAdditionalInfoToWidgetLayout in interface TransformsWidgetdoc - The Document that contains the declarative layout.w - The widget.widgetElem - The widget's element in the declarative layout XML (DOM).widgetIndent - The indenting to use when inserting this element in the XML (DOM).
public com.google.gwt.user.client.ui.Widget generateWidgetFromLayout(java.lang.String formID,
com.google.gwt.xml.client.Element widgetElem,
InstanceLoader instanceLoader,
java.util.List<DelayedPropertyInfo> delayedProperties,
PropertyChangeHandler propertyHandler)
generateWidgetFromLayout in interface TransformsWidgetformID - The UI's (or popup form's) ID. For now, the main UI's ID is "".
Note that this ID isn't stored in the layout file.widgetElem - The widget's element in the declarative layout XML (DOM).instanceLoader - The InstanceLoader for the UI.delayedProperties - The widget's properties to be applied later.propertyHandler - The PropertyChangeHandler that will listen to this widget's property changes. This parameter is optional and can be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||