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 --+ | | | terminal.scrollable.IScrollable --+ | object --+ | | | component_container.IComponentAttachListener --+ | object --+ | | | component_container.IComponentDetachListener --+ | object --+ | | | event.action.IContainer --+ | | | event.action.INotifier --+ | object --+ | | | util.IEventListener --+ | | | terminal.paintable.IPaintable --+ | | | object --+ | | | | | terminal.variable_owner.IVariableOwner --+ | | | object --+ | | | | | terminal.sizeable.ISizeable --+ | | | component.IComponent --+ | | | component.IFocusable --+ | Panel
Panel - a simple single component container.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
CLIENT_WIDGET = None hash(x) |
|||
_CLICK_EVENT =
|
|||
STYLE_LIGHT =
|
|||
Inherited from Inherited from |
|
|||
_content Content of the panel. |
|||
_scrollOffsetX Scroll X position. |
|||
_scrollOffsetY Scroll Y position. |
|||
_scrollable Scrolling mode. |
|||
actionManager Keeps track of the Actions added to this component, and manages |
|||
_tabIndex By default the Panel is not in the normal document focus flow and |
|||
Inherited from |
|
|||
Inherited from |
|
Creates a new panel with caption and or content. A VerticalLayout is used as content by default.
|
Sets the caption of the panel. Note that the caption is interpreted as HTML/XHTML and therefore care should be taken not to enable HTML injection and XSS attacks using panel captions. This behavior may change in future versions. @see
|
Gets the current layout of the panel.
Deprecated: A Panel can now contain a IComponentContainer which is not necessarily a ILayout. Use getContent instead. |
Sets the layout of the panel. If given layout is null, a VerticalLayout with margins set is used as a default. Components from old layout are not moved to new layout by default. Use function in ILayout interface manually.
Deprecated: A Panel can now contain a IComponentContainer which is not necessarily a ILayout. Use setContent instead. |
Set the content of the Panel. If null is given as the new content then a layout is automatically created and set as the content.
|
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.
|
Causes a repaint of this component, and all components below it. This should only be used in special cases, e.g when the state of a descendant depends on the state of a ancestor.
|
Adds the component into this container.
See Also: AbstractComponentContainer.addComponent |
Removes the component from this container.
|
Gets the component container iterator for going through all the components in the container.
See Also: IComponentContainer.getComponentIterator |
Called when one or more variables handled by the implementing class are changed.
See Also:
|
Gets scroll left offset. Scrolling offset is the number of pixels this scrollable has been scrolled right.
|
Deprecated: use getScrollLeft instead |
Gets scroll top offset. Scrolling offset is the number of pixels this scrollable has been scrolled down.
|
Deprecated: use getScrollTop instead |
Is programmatic scrolling enabled. Whether programmatic scrolling with setScrollLeft and setScrollTop is enabled.
|
Sets the panel as programmatically scrollable. Panel is by default not scrollable programmatically with setScrollLeft and setScrollTop, so if you use those methods, you need to enable scrolling with this method. Components that extend Panel may have a different default for the programmatic scrollability.
See Also: IScrollable.setScrollable |
Sets the horizontal scroll position. Setting the horizontal scroll position with this method requires that programmatic scrolling of the component has been enabled. For Panel it is disabled by default, so you have to call setScrollable. Components extending Panel may have a different default for programmatic scrollability.
|
Deprecated: use setScrollLeft() method instead |
Sets the vertical scroll position. Setting the vertical scroll position with this method requires that programmatic scrolling of the component has been enabled. For Panel it is disabled by default, so you have to call setScrollable. Components extending Panel may have a different default for programmatic scrollability.
|
Deprecated: use setScrollTop() method instead |
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.
|
A new component is attached to container.
|
A component has been detached from container.
|
Notifies the component that it is connected to an application.
See Also: IComponent.attach |
Notifies the component that it is detached from the application.
See Also: IComponent.detach |
Removes all components from this container. See Also: IComponentContainer.removeAllComponents |
|
|
Registers a new action handler for this container
|
Removes a previously registered action handler for the contents of this container.
|
Add a click listener to the Panel. The listener is called whenever the user clicks inside the Panel. Also when the click targets a component inside the Panel, provided the targeted component does not prevent the click event from propagating. Use removeListener to remove the listener.
|
|
Remove a click listener from the Panel. The listener should earlier have been added using addListener.
|
|
Fire a click event to all click listeners.
|
Gets the tabulator index of the
|
Sets the tabulator index of the loginBox = Form() loginBox.setCaption("Login") layout.addComponent(loginBox) # Create the first field which will be focused username = TextField("User name") loginBox.addField("username", username) # Set focus to the user name username.focus() password = TextField("Password") loginBox.addField("password", password) login = Button("Login") loginBox.getFooter().addComponent(login) # An additional component which natural focus order would # be after the button. remember = CheckBox("Remember me") loginBox.getFooter().addComponent(remember) username.setTabIndex(1) password.setTabIndex(2) remember.setTabIndex(3) # Different than natural place login.setTabIndex(4) After all focusable user interface components are done, the browser can begin again from the component with the smallest tab index, or it can take the focus out of the page, for example, to the location bar. If the tab index is not set (is set to zero), the default tab order is used. The order is somewhat browser-dependent, but generally follows the HTML structure of the page. A negative value means that the component is completely removed from the tabulation order and can not be reached by pressing the Tab key at all.
|
Moves keyboard focus to the component.
See Also: IFocusable.focus |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 31 14:06:40 2013 | http://epydoc.sourceforge.net |