Package muntjac :: Package addon :: Package colorpicker :: Module color_picker_select :: Class ColorPickerSelect
[hide private]
[frames] | no frames]

Class ColorPickerSelect

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 --+    
                                                             |    
                           ui.custom_component.CustomComponent --+
                                                                 |
                                                    object --+   |
                                                             |   |
                                 color_selector.IColorSelector --+
                                                                 |
                                                    object --+   |
                                                             |   |
                            data.property.IValueChangeListener --+
                                                                 |
                                                                ColorPickerSelect

The Class ColorPickerSelect.


Authors:
John Ahlroos / ITMill Oy LTd 2010, Richard Lincoln
Instance Methods [hide private]
 
__init__(self)
Instantiates a new color picker select.
source code
 
createAllColors(self, rows, columns)
Creates the all colors.
source code
 
createColor(self, color, rows, columns)
Creates the color.
source code
 
addListener(self, listener, iface=None)
Listens the component attach/detach events.
source code
 
removeListener(self, listener, iface=None)
Stops the listening component attach/detach events.
source code
 
getColor(self)
Gets the color.
source code
 
setColor(self, color)
Sets the color.
source code
 
valueChange(self, event)
Notifies this listener that the IProperty's value has changed.
source code

Inherited from ui.custom_component.CustomComponent: addComponent, getComponentCount, getComponentIterator, getComponentType, getCompositionRoot, moveComponentsFrom, paintContent, removeAllComponents, removeComponent, replaceComponent, setComponentType, setCompositionRoot

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

Inherited from ui.abstract_component.AbstractComponent: __getstate__, __setstate__, addStyleName, changeVariables, 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]

Inherited from ui.custom_component.CustomComponent: CLIENT_WIDGET

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Instantiates a new color picker select.

@param rows
           the rows
@param columns
           the columns

Parameters:
  • compositionRoot - the root of the composition component tree.
Overrides: object.__init__

createAllColors(self, rows, columns)

source code 

Creates the all colors.

Parameters:
  • rows - the rows
  • columns - the columns
Returns:
the color[][]

createColor(self, color, rows, columns)

source code 

Creates the color.

Parameters:
  • color - the color
  • rows - the rows
  • columns - the columns
Returns:
the color[][]

addListener(self, listener, iface=None)

source code 

Listens the component attach/detach events.

Parameters:
  • listener - the listener to add.
Raises:
  • ValueError - unless method has a match in object
Overrides: event.method_event_source.IMethodEventSource.addListener
(inherited documentation)

removeListener(self, listener, iface=None)

source code 

Stops the listening component attach/detach events.

Parameters:
  • listener - the listener to removed.
Overrides: event.method_event_source.IMethodEventSource.removeListener
(inherited documentation)

getColor(self)

source code 

Gets the color.

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

setColor(self, color)

source code 

Sets the color.

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

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)