Package org.zkoss.stateless.sul
Interface IGoldenPanel<I extends IAnyGroup>
- All Superinterfaces:
IChildable<IGoldenPanel<I>,,I> IComponent<IGoldenPanel<I>>,IHtmlBasedComponent<IGoldenPanel<I>>,IXulElement<IGoldenPanel<I>>
public interface IGoldenPanel<I extends IAnyGroup>
extends IXulElement<IGoldenPanel<I>>, IChildable<IGoldenPanel<I>,I>
Immutable
GoldenPanel component
A GoldenPanel component. Which is the only child type for IGoldenLayout.
Support @Action
| Name | Action Type |
|---|---|
| onActive | Denotes user has activated this GoldenPanel. |
| onPanelDrop | Denotes user has dropped this GoldenPanel. |
| onFlexSize | Denotes user has resized this GoldenPanel. |
| onClose | Denotes user has closed this GoldenPanel. |
| onMaximize | Denotes user has maximized this GoldenPanel. |
| onMinimize | Denotes user has minimized this GoldenPanel. |
- Author:
- katherine
- See Also:
-
GoldenPanel
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIGoldenPanel.Builder<I extends IAnyGroup>Builds instances of typeIGoldenPanel.static classBuilds an updater of typeIGoldenPanelforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IGoldenPanel<IAnyGroup>Constant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Return the area of this GoldenPanel.default StringReturns the identifier of a draggable type of objects, or"false"if not draggable (never null nor empty).default StringReturns the identifier, or a list of identifiers (split by a comma",") of a droppable type of objects, or"false"if not droppable (never null nor empty).default StringReturns the height of the component.getTitle()Returns the title on the tab of the GoldenPanel.default StringReturns the client widget class.default StringgetWidth()Returns the width of the component.default booleanReturns whether this panel is closable.static <I extends IAnyGroup>
IGoldenPanel<I>of(I... children) Returns the instance with the given any group children.static <I extends IAnyGroup>
IGoldenPanel<I>Returns the instance with the given any group children.static <I extends IAnyGroup>
IGoldenPanelReturns the instance with the given area.static <I extends IAnyGroup>
IGoldenPanel<I>Returns the instance with the given area and any group children.static <I extends IAnyGroup>
IGoldenPanel<I>Returns the instance with the given area and any group children.static <I extends IAnyGroup>
IGoldenPanel<I>Returns the instance with the given id.static <I extends IAnyGroup>
IGoldenPanelReturns the instance with the given title.Returns a copy ofthisimmutable component with the specifiedarea.withClosable(boolean closable) Returns a copy ofthisimmutable component with the specifiedclosable.default IGoldenPanel<I>withHeight(String height) Returns a copy ofthisimmutable component with the specifiedtitle.default IGoldenPanel<I>Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkmax.goldenlayout.GoldenPanel"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getArea
Return the area of this GoldenPanel.Default:
null -
withArea
Returns a copy ofthisimmutable component with the specifiedarea.Sets the area of this GoldenPanel, use to represent the area of this panel on initial rendering. Note that the area is not changeable after specified (i.e. it won't work with
IGoldenPanel.Updater). And it doesn't remain the same due to user's action.- Parameters:
area- The area of the componentDefault:
null.- Returns:
- A modified copy of the
thisobject
-
getTitle
Returns the title on the tab of the GoldenPanel.Default:
null -
withTitle
Returns a copy ofthisimmutable component with the specifiedtitle.Sets the title to the tab of the GoldenPanel.
- Parameters:
title- The title of the componentDefault:
null.- Returns:
- A modified copy of the
thisobject
-
getDraggable
Description copied from interface:IHtmlBasedComponentReturns the identifier of a draggable type of objects, or"false"if not draggable (never null nor empty).Default:
"false"- Specified by:
getDraggablein interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
isClosable
default boolean isClosable()Returns whether this panel is closable.Default:
true -
withClosable
Returns a copy ofthisimmutable component with the specifiedclosable.Sets whether this panel is closable.
- Parameters:
closable- Whether this panel is closable.Default:
true.- Returns:
- A modified copy of the
thisobject
-
getDroppable
Description copied from interface:IHtmlBasedComponentReturns the identifier, or a list of identifiers (split by a comma",") of a droppable type of objects, or"false"if not droppable (never null nor empty).Default:
"false"- Specified by:
getDroppablein interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
getWidth
Description copied from interface:IHtmlBasedComponentReturns the width of the component. If not specified,nullis assumed.Default:
null- Specified by:
getWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withWidth
The width can't be specified in this component because its width is determined by other region components (IWestorIEast).- Specified by:
withWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
width- The width of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
getHeight
Description copied from interface:IHtmlBasedComponentReturns the height of the component. If not specified,nullis assumed.Default:
null- Specified by:
getHeightin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withHeight
The height can't be specified in this component because its height is determined by other region components (INorthorISouth).- Specified by:
withHeightin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
height- The height of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
ofTitle
Returns the instance with the given title.- Parameters:
title- The title of the component.
-
ofArea
Returns the instance with the given area.- Parameters:
area- The area of the component.
-
ofArea
Returns the instance with the given area and any group children.- Parameters:
area- The area of the component.children- The children belong to any group- See Also:
-
ofArea
Returns the instance with the given area and any group children.- Parameters:
area- The area of the component.children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-