| 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 --+ |
| |
ui.window.ICloseListener --+
|
object --+ |
| |
color_selector.IColorSelector --+
|
object --+ |
| |
IColorChangeListener --+
|
ColorPicker
ColorPicker
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
CLIENT_WIDGET = Nonehash(x) |
|||
TYPE_MAPPING = 'com.vaadin.addon.colorpicker.ColorPicker'
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Instantiates a new color picker.
|
Sets the color.
|
Gets the color.
|
Sets the position of the popup window
|
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.
|
|
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.
|
Called when the user closes a window. Use CloseEvent.getWindow to get a reference to the Window that was closed.
|
Fired when a color change event occurs
|
Sets the style of the button
|
The style for the popup window
|
Sets the caption of the button. This replaces the css color code displayed as the caption.
|
Set the visibility of the RGB Tab
|
Set the visibility of the HSV Tab
|
Set the visibility of the Swatches Tab
|
Sets the visibility of the Color History
|
Sets tje visibility of the CSS color code text field
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Apr 20 16:52:47 2013 | http://epydoc.sourceforge.net |