Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2012 Vaadin Ltd. 2 # Copyright (C) 2012 Richard Lincoln 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 """Used by C{Form} to layout fields.""" 17 18 from muntjac.ui.ordered_layout import OrderedLayout 19 2022 """FormLayout is used by L{Form} to layout fields. It may also be 23 used separately without L{Form}. 24 25 FormLayout is a close relative to vertical L{OrderedLayout}, but 26 in FormLayout caption is rendered on left side of component. Required 27 and validation indicators are between captions and fields. 28 29 FormLayout does not currently support some advanced methods from 30 OrderedLayout like setExpandRatio and setComponentAlignment. 31 32 FormLayout by default has component spacing on. Also margin top and 33 margin bottom are by default on. 34 """ 35 36 CLIENT_WIDGET = None #ClientWidget(VFormLayout, LoadStyle.EAGER) 374239 super(FormLayout, self).__init__() 40 self.setSpacing(True) 41 self.setMargin(True, False, True, False)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:01:30 2013 | http://epydoc.sourceforge.net |