|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.swt.client.widget.SwtWidgetHelper
public class SwtWidgetHelper
Class that implements some common functionality (such as storing properties) for a SWT widget.
| Constructor Summary | |
|---|---|
SwtWidgetHelper(WidgetKey widgetKey,
SwtErrorStack errorStack)
Constructor. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addChangeHandler(SwtChangeHandler handler)
Adds a change handler to the widget. |
com.google.gwt.event.shared.HandlerRegistration |
addPropertyChangeHandler(PropertyChangeHandler handler)
Adds a PropertyChangeEvent handler. |
void |
fireChange(SwtChangeEvent evt)
Notifies SwtChangeHandlers that a change event as occurred. |
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
|
void |
firePropertyChangeEvent(PropertyBag propertyBag,
Property property,
java.lang.Object newValue)
Fires the property change event on behalf of the specified property bag to this default property bag's property change handlers. |
java.lang.String |
getElementID()
Gets an id that uniquely identifies this widget in the application - that will be used as the Element ID for the widget in the DOM. |
SwtErrorStack |
getErrorStack()
Gets the error stack. |
InstanceContext |
getInstanceContext()
Returns the instance context where this widget resides. |
java.util.Collection<Property> |
getProperties()
Gets the collection of properties contained in this bag. |
java.lang.Object |
getPropertyDefaultValue(Property property)
Gets the default value of a property. |
java.lang.Object |
getPropertyValue(Property property)
Gets the value of a property. |
WidgetKey |
getWidgetKey()
Gets the widget's key. |
void |
setInstanceContext(InstanceContext context)
Sets the instance context where this widget resides. |
void |
setPropertyDefaultValue(Property property,
java.lang.Object defaultValue)
Sets the default value of a property. |
void |
setPropertyValue(Property property,
java.lang.Object newValue)
Sets the value of a property. |
void |
setWidgetKey(WidgetKey widgetKey)
Sets the widget's key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwtWidgetHelper(WidgetKey widgetKey,
SwtErrorStack errorStack)
widgetKey - The WidgetKey for the widget.errorStack - The SwtErrorStack that stores
the list of UI errors.| Method Detail |
|---|
public com.google.gwt.event.shared.HandlerRegistration addChangeHandler(SwtChangeHandler handler)
addChangeHandler in interface HasSwtChangeHandlershandler - The SwtChangeHandler for the widget.
HandlerRegistration for this handler.public void fireChange(SwtChangeEvent evt)
evt - The SwtChangeEvent that will be fired.public WidgetKey getWidgetKey()
public void setWidgetKey(WidgetKey widgetKey)
widgetKey - The widget key.public InstanceContext getInstanceContext()
public void setInstanceContext(InstanceContext context)
context - The InstanceContext for this UI instance.public java.lang.String getElementID()
public SwtErrorStack getErrorStack()
public com.google.gwt.event.shared.HandlerRegistration addPropertyChangeHandler(PropertyChangeHandler handler)
PropertyChangeEvent handler.
addPropertyChangeHandler in interface HasPropertyChangeHandlershandler - the handler
public void firePropertyChangeEvent(PropertyBag propertyBag,
Property property,
java.lang.Object newValue)
propertyBag - The property bag whose property change event we want to fire.property - The property whose value has changed.newValue - The new value of the property.public java.util.Collection<Property> getProperties()
getProperties in interface PropertyBagpublic java.lang.Object getPropertyValue(Property property)
getPropertyValue in interface PropertyBagproperty - The property in question.
public void setPropertyValue(Property property,
java.lang.Object newValue)
setPropertyValue in interface PropertyBagproperty - The property in question.newValue - The new value of the property.public java.lang.Object getPropertyDefaultValue(Property property)
getPropertyDefaultValue in interface PropertyBagproperty - The property in question.
public void setPropertyDefaultValue(Property property,
java.lang.Object defaultValue)
setPropertyDefaultValue in interface PropertyBagproperty - The property in question.defaultValue - The default value of the property.public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent in interface com.google.gwt.event.shared.HasHandlers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||