Class zwt.ui.container.SingleContainer
Extends
zwt.ui.container.Container.
A single container can only contain one widget at a time.
Defined in: SingleContainer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a single container.
|
Method Attributes | Method Name and Description |
---|---|
Return the panel's content widget.
|
|
Return true if the container is focusable and if the content widgets is also focusable.
|
|
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
|
|
setContent(The)
Set the container content.
|
- Methods borrowed from class zwt.ui.container.Container:
- getContentEventManager, isFocusContainer, processContentEvent, setFocusContainer
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isVisible, onEvent, processEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Method Detail
{zwt.ui.Widget}
getContent()
Return the panel's content widget.
- Returns:
- The part's content
{Boolean}
isFocusable()
Return true if the container is focusable and if the content widgets is also focusable.
- Returns:
- true if the container is focusable
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
- Parameters:
- {zwt.event.FocusEvent} zwt_event_FocusEvent_event
- The focus event to process
setContent(The)
Set the container content. It is more likely to be a zwt.ui.Panel object.
- Parameters:
- {zwt.ui.Widget} The
- content to set or null to empty the part