Package muntjac :: Package addon :: Package codemirror :: Module code_mirror :: Class CodeMirror
[hide private]
[frames] | no frames]

Class CodeMirror

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 --+           |            
                                         |           |            
                   data.buffered.IBuffered --+       |            
                                             |       |            
                                object --+   |       |            
                                         |   |       |            
             data.validatable.IValidatable --+       |            
                                             |       |            
            data.buffered.IBufferedValidatable --+   |            
                                                 |   |            
                                    object --+   |   |            
                                             |   |   |            
            data.property.IValueChangeNotifier --+   |            
                                                 |   |            
                                    object --+   |   |            
                                             |   |   |            
            data.property.IValueChangeListener --+   |            
                                                 |   |            
                                object --+       |   |            
                                         |       |   |            
                     data.property.IViewer --+   |   |            
                                             |   |   |            
                         data.property.IEditor --+   |            
                                                 |   |            
                        object --+               |   |            
                                 |               |   |            
               util.IEventListener --+           |   |            
                                     |           |   |            
         terminal.paintable.IPaintable --+       |   |            
                                         |       |   |            
                            object --+   |       |   |            
                                     |   |       |   |            
terminal.variable_owner.IVariableOwner --+       |   |            
                                         |       |   |            
                            object --+   |       |   |            
                                     |   |       |   |            
           terminal.sizeable.ISizeable --+       |   |            
                                         |       |   |            
                   ui.component.IComponent --+   |   |            
                                             |   |   |            
                       ui.component.IFocusable --+   |            
                                                 |   |            
                                   ui.field.IField --+            
                                                     |            
                                        object --+   |            
                                                 |   |            
                    event.action.IShortcutNotifier --+            
                                                     |            
                                        object --+   |            
                                                 |   |            
       data.property.IReadOnlyStatusChangeNotifier --+            
                                                     |            
                                        object --+   |            
                                                 |   |            
       data.property.IReadOnlyStatusChangeListener --+            
                                                     |            
                       ui.abstract_field.AbstractField --+        
                                                         |        
                                            object --+   |        
                                                     |   |        
                      event.field_events.IBlurNotifier --+        
                                                         |        
                                            object --+   |        
                                                     |   |        
                     event.field_events.IFocusNotifier --+        
                                                         |        
                                            object --+   |        
                                                     |   |        
                event.field_events.ITextChangeNotifier --+        
                                                         |        
                  ui.abstract_text_field.AbstractTextField --+    
                                                             |    
                                       ui.text_field.TextField --+
                                                                 |
                                                                CodeMirror

Server side component for the VCodeMirrorTextField2 widget.

Instance Methods [hide private]
 
__init__(self, caption, codeMode=None, codeTheme=None)
Constructs a TextField with optional caption, dataSource and/or value.
source code
 
paintContent(self, target)
Paints any needed component-specific things to the given UIDL stream.
source code
 
setCodeMode(self, codeMode) source code
 
getCodeMode(self) source code
 
setShowLineNumbers(self, showLineNumbers) source code
 
isShowLineNumbers(self) source code
 
setCodeTheme(self, codeTheme) source code
 
getCodeTheme(self) source code

Inherited from ui.text_field.TextField: getRows, isSecret, isWordwrap, setHeight, setRows, setSecret, setWordwrap

Inherited from ui.abstract_text_field.AbstractTextField: addCallback, addListener, changeVariables, firePendingTextChangeEvent, getColumns, getCurrentTextContent, getCursorPosition, getFormat, getFormattedValue, getInputPrompt, getMaxLength, getNullRepresentation, getTextChangeEventMode, getTextChangeTimeout, getType, getValue, handleInputEventTextChange, isEmpty, isNullSettingAllowed, removeCallback, removeListener, selectAll, setColumns, setCursorPosition, setFormat, setInputPrompt, setInternalValue, setMaxLength, setNullRepresentation, setNullSettingAllowed, setSelectionRange, setTextChangeEventMode, setTextChangeTimeout, setValue

Inherited from ui.abstract_field.AbstractField: __str__, addShortcutListener, addValidator, attach, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getActionManager, getErrorMessage, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isReadThrough, isRequired, isValid, isValidationVisible, isWriteThrough, readOnlyStatusChange, readValueFromProperty, removeShortcutListener, removeValidator, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setPropertyDataSource, setReadOnly, setReadThrough, setRequired, setRequiredError, setTabIndex, setValidationVisible, setWriteThrough, shouldHideErrors, validate, valueChange

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

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

Class Methods [hide private]

Inherited from ui.abstract_field.AbstractField: constructField

Class Variables [hide private]
  CLIENT_WIDGET = None
hash(x)
  TYPE_MAPPING = 'org.vaadin.codemirror2.CodeMirror'

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, caption, codeMode=None, codeTheme=None)
(Constructor)

source code 

Constructs a TextField with optional caption, dataSource and/or value.

Parameters:
  • args - tuple of the form
    • ()
    • (caption)
      1. the caption string for the editor
    • (dataSource)
      1. the IProperty to be edited with this editor
    • (caption, dataSource)
      1. the caption string for the editor
      2. the IProperty to be edited with this editor
    • (caption, text)
      1. the caption string for the editor
      2. the initial text content of the editor
Overrides: object.__init__
(inherited documentation)

paintContent(self, target)

source code 

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.

Parameters:
  • target - the target UIDL stream where the component should paint itself to
Raises:
Overrides: ui.abstract_component.AbstractComponent.paintContent
(inherited documentation)