Package muntjac :: Package ui :: Module form_layout :: Class FormLayout
[hide private]
[frames] | no frames]

Class FormLayout

source code

                             object --+                                
                                      |                                
                    util.IEventListener --+                            
                                          |                            
              terminal.paintable.IPaintable --+                        
                                              |                        
                                 object --+   |                        
                                          |   |                        
     terminal.variable_owner.IVariableOwner --+                        
                                              |                        
                                 object --+   |                        
                                          |   |                        
                terminal.sizeable.ISizeable --+                        
                                              |                        
                           component.IComponent --+                    
                                                  |                    
                                     object --+   |                    
                                              |   |                    
   event.method_event_source.IMethodEventSource --+                    
                                                  |                    
               abstract_component.AbstractComponent --+                
                                                      |                
                             object --+               |                
                                      |               |                
                    util.IEventListener --+           |                
                                          |           |                
              terminal.paintable.IPaintable --+       |                
                                              |       |                
                                 object --+   |       |                
                                          |   |       |                
     terminal.variable_owner.IVariableOwner --+       |                
                                              |       |                
                                 object --+   |       |                
                                          |   |       |                
                terminal.sizeable.ISizeable --+       |                
                                              |       |                
                           component.IComponent --+   |                
                                                  |   |                
            component_container.IComponentContainer --+                
                                                      |                
abstract_component_container.AbstractComponentContainer --+            
                                                          |            
                             object --+                   |            
                                      |                   |            
                    util.IEventListener --+               |            
                                          |               |            
              terminal.paintable.IPaintable --+           |            
                                              |           |            
                                 object --+   |           |            
                                          |   |           |            
     terminal.variable_owner.IVariableOwner --+           |            
                                              |           |            
                                 object --+   |           |            
                                          |   |           |            
                terminal.sizeable.ISizeable --+           |            
                                              |           |            
                           component.IComponent --+       |            
                                                  |       |            
            component_container.IComponentContainer --+   |            
                                                      |   |            
                                         layout.ILayout --+            
                                                          |            
                                             object --+   |            
                                                      |   |            
                                  layout.IMarginHandler --+            
                                                          |            
                             abstract_layout.AbstractLayout --+        
                                                              |        
                                                 object --+   |        
                                                          |   |        
                                   layout.IAlignmentHandler --+        
                                                              |        
                                                 object --+   |        
                                                          |   |        
                                     layout.ISpacingHandler --+        
                                                              |        
                                                 object --+   |        
                                                          |   |        
                   event.layout_events.ILayoutClickNotifier --+        
                                                              |        
                  abstract_ordered_layout.AbstractOrderedLayout --+    
                                                                  |    
                                       ordered_layout.OrderedLayout --+
                                                                      |
                                                                     FormLayout

FormLayout is used by Form to layout fields. It may also be used separately without Form.

FormLayout is a close relative to vertical OrderedLayout, but in FormLayout caption is rendered on left side of component. Required and validation indicators are between captions and fields.

FormLayout does not currently support some advanced methods from OrderedLayout like setExpandRatio and setComponentAlignment.

FormLayout by default has component spacing on. Also margin top and margin bottom are by default on.

Instance Methods [hide private]
 
__init__(self)
Creates a new ordered layout.
source code

Inherited from ordered_layout.OrderedLayout: getOrientation, paintContent, setOrientation

Inherited from abstract_ordered_layout.AbstractOrderedLayout: addCallback, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, removeCallback, removeComponent, removeListener, replaceComponent, setComponentAlignment, setExpandRatio, setSpacing

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

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

Inherited from 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]
  CLIENT_WIDGET = None
hash(x)

Inherited from ordered_layout.OrderedLayout: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL

Inherited from abstract_ordered_layout.AbstractOrderedLayout: ALIGNMENT_DEFAULT

Inherited from 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

Inherited from layout.IAlignmentHandler: ALIGNMENT_BOTTOM, ALIGNMENT_HORIZONTAL_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TOP, ALIGNMENT_VERTICAL_CENTER

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Creates a new ordered layout. The order of the layout defaults to ORIENTATION_VERTICAL.

Parameters:
  • orientation - the Orientation of the layout.
Overrides: object.__init__
(inherited documentation)