Home | Trees | Indices | Help |
|
---|
|
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 --+ | AbstractOrderedLayout
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
_CLICK_EVENT =
|
|||
ALIGNMENT_DEFAULT = Alignment((Bits.ALIGNMENT_TOP+ Bits.ALIGNM
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Constructs a new component container.
|
Add a component into this container. The component is added to the right or under the previous component or into the indexed position in this container.
|
Adds a component into this container. The component is added to the left or on top of the other components.
|
Removes the component from this container.
|
Gets the component container iterator for going through all the components in the container.
|
Gets the number of contained components. Consistent with the iterator returned by getComponentIterator.
|
Paints the content of this component.
|
Replaces the component in the container with another one without changing position. This method replaces component with another one is such way that the new component overtakes the position of the old component. If the old component is not in the container, the new component is added to the container. If the both component are already in the container, their positions are swapped. IComponent attach and detach events should be taken care as with add and remove.
|
Sets the component alignment using a short hand string notation.
Deprecated: Replaced by setComponentAlignment |
Returns the current Alignment of given component.
|
Enable spacing between child components within this layout. NOTE: This will only affect the space between components, not the space around all the components in the layout (i.e. do not confuse this with the cellspacing attribute of a HTML Table). Use setMargin to add space around the layout. See the reference manual for more information about CSS rules for defining the amount of spacing to use.
|
|
|
This method is used to control how excess space in layout is distributed among components. Excess space may exist if layout is sized and contained non relatively sized components don't consume all available space. Example how to distribute 1:3 (33%) for component1 and 2:3 (67%) for component2: layout.setExpandRatio(component1, 1) layout.setExpandRatio(component2, 2) If no ratios have been set, the excess space is distributed evenly among all components. Note, that width or height (depending on orientation) needs to be defined for this method to have any effect.
See Also: ISizeable |
Returns the expand ratio of given component.
|
Registers a new (generic) component event listener for the component: class Listening(CustomComponent, IListener): # Stored for determining the source of an event ok = None status = None # For displaying info about the event def __init__(self): layout = VerticalLayout() # Some miscellaneous component name = TextField("Say it all here") name.addListener(self) name.setImmediate(true) layout.addComponent(name) # Handle button clicks as generic events instead # of Button.ClickEvent events ok = new Button("OK") ok.addListener(self) layout.addComponent(ok) # For displaying information about an event status = new Label("") layout.addComponent(status) setCompositionRoot(layout) def componentEvent(event): # Act according to the source of the event if (event.getSource() == ok): getWindow().showNotification("Click!") status.setValue("Event from " + event.getSource().__class__.__name__ + ": " + event.__class__.__name__) listening = Listening() layout.addComponent(listening)
|
|
Removes a previously registered component event listener from this component.
|
|
Returns the index of the given component.
|
Returns the component at the given position.
|
|
ALIGNMENT_DEFAULT
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 13:40:55 2013 | http://epydoc.sourceforge.net |