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 --+ | AbstractSplitPanel
AbstractSplitPanel
is base class for a component
container that can contain two components. The comopnents are split by a
divider element.
Author: Vaadin Ltd.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
_SPLITTER_CLICK_EVENT =
|
|||
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.
|
|
|
Removes the component from this container.
|
Gets an iterator to the collection of contained components. Using this iterator it is possible to step through all components contained in this 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.
|
Moves the position of the splitter.
|
Returns the current position of the splitter, in getSplitPositionUnit units.
|
Returns the unit of position of the splitter
|
Lock the SplitPanels position, disabling the user from dragging the split handle.
|
Is the SplitPanel handle locked (user not allowed to change split position by dragging).
|
Called when one or more variables handled by the implementing class are changed.
|
Fire a layout click event. Note that this method is only used by the subclasses that implement
|
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.
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 19:32:55 2013 | http://epydoc.sourceforge.net |