| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
util.IEventListener --+
|
terminal.paintable.IPaintable --+
|
object --+ |
| |
terminal.variable_owner.IVariableOwner --+
|
object --+ |
| |
terminal.sizeable.ISizeable --+
|
ui.component.IComponent --+
|
object --+ |
| |
event.method_event_source.IMethodEventSource --+
|
ui.abstract_component.AbstractComponent --+
|
object --+ |
| |
color_selector.IColorSelector --+
|
ColorPickerGradient
The Class ColorPickerGradient.
|
|||
CLIENT_WIDGET = Nonehash(x) |
|||
TYPE_MAPPING = 'com.vaadin.addon.colorpicker.ColorPickerGradient'
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Instantiates a new color picker gradient.
|
Sets the color.
|
Paints any needed component-specific things to the given UIDL stream. The more general paint method handles all general attributes common to all components, and it calls this method to paint any component-specific attributes to the UIDL stream.
|
Called when one or more variables handled by the implementing class are changed.
|
Registers a new (generic) component event listener for the component:
class Listening(CustomComponent, IListener):
# Stored for determining the source of an event
ok = None
status = None # For displaying info about the event
def __init__(self):
layout = VerticalLayout()
# Some miscellaneous component
name = TextField("Say it all here")
name.addListener(self)
name.setImmediate(true)
layout.addComponent(name)
# Handle button clicks as generic events instead
# of Button.ClickEvent events
ok = new Button("OK")
ok.addListener(self)
layout.addComponent(ok)
# For displaying information about an event
status = new Label("")
layout.addComponent(status)
setCompositionRoot(layout)
def componentEvent(event):
# Act according to the source of the event
if (event.getSource() == ok):
getWindow().showNotification("Click!")
status.setValue("Event from " +
event.getSource().__class__.__name__
+ ": " + event.__class__.__name__)
listening = Listening()
layout.addComponent(listening)
|
|
Removes a previously registered component event listener from this component.
|
|
Sets the background color.
|
Gets the color.
|
Notifies the listeners that the color has changed
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jul 6 13:40:47 2013 | http://epydoc.sourceforge.net |