Package muntjac :: Package addon :: Package colorpicker :: Module color_picker_preview :: Class ColorPickerPreview
[hide private]
[frames] | no frames]

Class ColorPickerPreview

source code

                                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 --+               |            
                                         |               |            
                       util.IEventListener --+           |            
                                             |           |            
                 terminal.paintable.IPaintable --+       |            
                                                 |       |            
                                    object --+   |       |            
                                             |   |       |            
        terminal.variable_owner.IVariableOwner --+       |            
                                                 |       |            
                                    object --+   |       |            
                                             |   |       |            
                   terminal.sizeable.ISizeable --+       |            
                                                 |       |            
                           ui.component.IComponent --+   |            
                                                     |   |            
            ui.component_container.IComponentContainer --+            
                                                         |            
ui.abstract_component_container.AbstractComponentContainer --+        
                                                             |        
                                object --+                   |        
                                         |                   |        
                       util.IEventListener --+               |        
                                             |               |        
                 terminal.paintable.IPaintable --+           |        
                                                 |           |        
                                    object --+   |           |        
                                             |   |           |        
        terminal.variable_owner.IVariableOwner --+           |        
                                                 |           |        
                                    object --+   |           |        
                                             |   |           |        
                   terminal.sizeable.ISizeable --+           |        
                                                 |           |        
                           ui.component.IComponent --+       |        
                                                     |       |        
            ui.component_container.IComponentContainer --+   |        
                                                         |   |        
                                         ui.layout.ILayout --+        
                                                             |        
                                                object --+   |        
                                                         |   |        
                                  ui.layout.IMarginHandler --+        
                                                             |        
                             ui.abstract_layout.AbstractLayout --+    
                                                                 |    
                                                    object --+   |    
                                                             |   |    
                      event.layout_events.ILayoutClickNotifier --+    
                                                                 |    
                                           ui.css_layout.CssLayout --+
                                                                     |
                                                        object --+   |
                                                                 |   |
                                     color_selector.IColorSelector --+
                                                                     |
                                                        object --+   |
                                                                 |   |
                                data.property.IValueChangeListener --+
                                                                     |
                                                                    ColorPickerPreview

The Class ColorPickerPreview.


Authors:
John Ahlroos / ITMill Oy 2010, Richard Lincoln
Instance Methods [hide private]
 
__init__(self, color)
Instantiates a new color picker preview.
source code
 
setColor(self, color)
Sets the color.
source code
 
getColor(self)
Gets the color.
source code
 
addListener(self, listener, iface=None)
Adds a color change listener
source code
 
addCallback(self, callback, eventType=None, *args) source code
 
removeListener(self, listener, iface=None)
Removes a color change listener
source code
 
removeCallback(self, callback, eventType=None) source code
 
valueChange(self, event)
Notifies this listener that the IProperty's value has changed.
source code
 
getCss(self, c)
Called when the component is refreshing
source code

Inherited from ui.css_layout.CssLayout: addComponent, addComponentAsFirst, getComponentCount, getComponentIterator, paintContent, removeComponent, replaceComponent

Inherited from ui.abstract_layout.AbstractLayout: changeVariables, fireClick, getMargin, setMargin

Inherited from ui.abstract_component_container.AbstractComponentContainer: attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, getInvalidSizedChildren, moveComponentsFrom, removeAllComponents, repaintChangedChildTrees, repaintChildTrees, requestRepaintAll, setEnabled, setHeight, setWidth

Inherited from ui.abstract_component.AbstractComponent: __getstate__, __setstate__, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, fireRequestRepaintEvent, focus, getApplication, getCSSHeight, getCSSWidth, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, parseStringSize, registerCallback, registerListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidthUnits, withdrawCallback, withdrawListener

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _STYLE_DARK_COLOR = 'v-textfield-dark'
  _STYLE_LIGHT_COLOR = 'v-textfield-light'

Inherited from ui.css_layout.CssLayout: CLIENT_WIDGET

Inherited from ui.css_layout.CssLayout (private): _CLICK_EVENT

Inherited from ui.abstract_component.AbstractComponent: SIZE_PATTERN

Inherited from terminal.sizeable.ISizeable: SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS, UNIT_SYMBOLS

Instance Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, color)
(Constructor)

source code 

Instantiates a new color picker preview.

Overrides: object.__init__

setColor(self, color)

source code 

Sets the color.

Parameters:
  • color - the new color
Overrides: color_selector.IColorSelector.setColor
(inherited documentation)

getColor(self)

source code 

Gets the color.

Returns:
the color
Overrides: color_selector.IColorSelector.getColor
(inherited documentation)

addListener(self, listener, iface=None)

source code 

Adds a color change listener

Parameters:
  • listener - The color change listener
Raises:
  • ValueError - unless method has a match in object
Overrides: event.layout_events.ILayoutClickNotifier.addListener

addCallback(self, callback, eventType=None, *args)

source code 
Overrides: event.layout_events.ILayoutClickNotifier.addCallback

removeListener(self, listener, iface=None)

source code 

Removes a color change listener

Parameters:
  • listener - The listener
Overrides: event.layout_events.ILayoutClickNotifier.removeListener

removeCallback(self, callback, eventType=None)

source code 
Overrides: event.layout_events.ILayoutClickNotifier.removeCallback

valueChange(self, event)

source code 

Notifies this listener that the IProperty's value has changed.

Parameters:
  • event - value change event object
Overrides: data.property.IValueChangeListener.valueChange
(inherited documentation)

getCss(self, c)

source code 

Called when the component is refreshing

Parameters:
  • c - the component
Returns:
css rules to be applied to component
Overrides: ui.css_layout.CssLayout.getCss