@Portable @JsType public class PanelDefinitionImpl extends Object implements PanelDefinition
PARENT_CHOOSES_TYPE| Constructor and Description |
|---|
PanelDefinitionImpl() |
PanelDefinitionImpl(String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(PartDefinition part)
Specifies content that should be put in this panel's main display area when it is materialized.
|
PartDefinition |
addPart(String partSpec)
Specifies content that should be put in this panel's main display area when it is materialized.
|
void |
appendChild(PanelDefinition panel)
Append a Panel at the first empty child position.
|
void |
appendChild(Position position,
PanelDefinition panel)
Append a Panel at the first empty child position.
|
PanelDefinition |
getChild(Position position)
Get the Panel's immediate child Panel at the given Position
|
List<PanelDefinition> |
getChildren()
Returns this panel's immediate child panels.
|
ContextDefinition |
getContextDefinition() |
ContextDisplayMode |
getContextDisplayMode() |
String |
getElementId()
Returns the DOM ID that will be given to a panel created from this definition.
|
Integer |
getHeight()
Get the height of the Panel in pixels
|
Integer |
getMinHeight()
Get the minimum height of this panel in pixels.
|
Integer |
getMinWidth()
Get the minimum width of the Panel in pixels
|
String |
getPanelType()
Specifies the WorkbenchPanelPresenter implementation that should be used when adding this panel to the UI.
|
PanelDefinition |
getParent()
Return the parent panel, or null if
PanelDefinition.isRoot()} returns true. |
Set<PartDefinition> |
getParts()
Get the Parts contained in the Panel
|
Position |
getPosition()
Get the Position of the Panel relate to it's Parent
TODO remove this. parent panels should track the positions of their children; making it a property of the child
is error-prone when moving panels around in the UI.
|
Integer |
getWidth()
Get the width of this panel in pixels.
|
void |
insertChild(Position position,
PanelDefinition panel)
Insert a Panel as an immediate child at the given Position.
|
boolean |
isMaximized()
Has the Panel been expanded to a maximum size
|
boolean |
isRoot()
Is this Panel the root of the Perspective definition
|
void |
removeChild(Position position)
Remove a child from the Panel
|
boolean |
removePart(PartDefinition part)
Removes the given part definition from this panel definition.
|
void |
setContextDefinition(ContextDefinition contextDefinition) |
void |
setContextDisplayMode(ContextDisplayMode contextDisplayMode) |
void |
setElementId(String id)
Specifies the DOM ID that should be given to the live panel's element.
|
void |
setHeight(Integer height)
Set the height of this panel in pixels.
|
void |
setMinHeight(Integer minHeight)
Set the minimum height of the Panel in pixels
|
void |
setMinWidth(Integer minWidth)
Set the minimum width of the Panel in pixels
|
void |
setPanelType(String fqcn)
Specifies the WorkbenchPanelPresenter implementation that should be used when adding this panel to the UI.
|
void |
setParent(PanelDefinition parent) |
void |
setPosition(Position position)
Set the Position of the Panel relative to it's parent.
|
void |
setRoot(boolean isRoot) |
void |
setWidth(Integer width)
Set the width of this panel in pixels.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasString, getHeightAsInt, getMinHeightAsInt, getMinWidthAsInt, getWidthAsInt, setHeight, setWidth@JsIgnore public PanelDefinitionImpl()
@JsIgnore public PanelDefinitionImpl(String type)
public PanelDefinition getParent()
PanelDefinitionPanelDefinition.isRoot()} returns true.getParent in interface PanelDefinitionpublic void setParent(PanelDefinition parent)
public String getElementId()
PanelDefinitiongetElementId in interface PanelDefinitionpublic void setElementId(String id)
PanelDefinitionsetElementId in interface PanelDefinitionid - the DOM ID to give the panel when it is created. If null, no ID will be set on the panel.public void addPart(PartDefinition part)
PanelDefinitionPlaceRequest that identifies a
WorkbenchActivity (either a screen or an editor).
If the given part already belongs to an existing panel, it will be removed from that panel by a call to removePart(part).
addPart in interface PanelDefinitionpart - The Part to add. Must not be null. The part's place must specify a WorkbenchActivity bean.public PartDefinition addPart(String partSpec)
PanelDefinitionThis is a convenience method equivalent to addPart(new PartDefinitionImpl(DefaultPlaceRequest.parse(partSpec))).
addPart in interface PanelDefinitionpartSpec - An PlaceRequest ID with optional parameters, encoded as specified in
DefaultPlaceRequest.parse(CharSequence). Must not be null. The place ID must specify a
WorkbenchActivity bean (either a screen or an editor).public boolean removePart(PartDefinition part)
PanelDefinitionremovePart in interface PanelDefinitionpart - The Part to be removed@JsIgnore public Set<PartDefinition> getParts()
PanelDefinitiongetParts in interface PanelDefinition@JsIgnore public List<PanelDefinition> getChildren()
PanelDefinitiongetChildren in interface PanelDefinitionpublic void insertChild(Position position, PanelDefinition panel)
PanelDefinitioninsertChild in interface PanelDefinitionposition - The Position to add the childpanel - The child Panelpublic void appendChild(Position position, PanelDefinition panel)
PanelDefinitionappendChild in interface PanelDefinitionposition - The Position to add the childpanel - The child Panelpublic void appendChild(PanelDefinition panel)
PanelDefinitionappendChild in interface PanelDefinitionpanel - The child Panelpublic PanelDefinition getChild(Position position)
PanelDefinitiongetChild in interface PanelDefinitionposition - The child Panel's Positionpublic void removeChild(Position position)
PanelDefinitionremoveChild in interface PanelDefinitionpublic boolean isRoot()
PanelDefinitionisRoot in interface PanelDefinitionpublic void setRoot(boolean isRoot)
public String getPanelType()
PanelDefinitiongetPanelType in interface PanelDefinitionPanelDefinition.PARENT_CHOOSES_TYPE.public void setPanelType(String fqcn)
PanelDefinitionsetPanelType in interface PanelDefinitionfqcn - fully-qualified class name of the WorkbenchPanelPresenter implementation to use. Must not be null, but
may be the special value PanelDefinition.PARENT_CHOOSES_TYPE.@JsIgnore public Integer getHeight()
PanelDefinitiongetHeight in interface PanelDefinition@JsIgnore public void setHeight(Integer height)
PanelDefinitionsetHeight in interface PanelDefinitionheight - The height to set. If null, the existing height value is retained.@JsIgnore public Integer getWidth()
PanelDefinitiongetWidth in interface PanelDefinition@JsIgnore public void setWidth(Integer width)
PanelDefinitionsetWidth in interface PanelDefinitionwidth - The width to set. If null, the existing width value is retained.@JsIgnore public final Integer getMinHeight()
PanelDefinitiongetMinHeight in interface PanelDefinition@JsIgnore public final void setMinHeight(Integer minHeight)
PanelDefinitionsetMinHeight in interface PanelDefinitionminHeight - The minimum height, or null if not set@JsIgnore public final Integer getMinWidth()
PanelDefinitiongetMinWidth in interface PanelDefinition@JsIgnore public final void setMinWidth(Integer minWidth)
PanelDefinitionsetMinWidth in interface PanelDefinitionminWidth - The width, or null if not setpublic final Position getPosition()
PanelDefinitionTODO remove this. parent panels should track the positions of their children; making it a property of the child is error-prone when moving panels around in the UI.
getPosition in interface PanelDefinitionpublic void setPosition(Position position)
PanelDefinitionTODO remove this. parent panels should track the positions of their children; making it a property of the child is error-prone when moving panels around in the UI.
setPosition in interface PanelDefinitionposition - The Position of the Panel relative to it's parentpublic boolean isMaximized()
PanelDefinitionisMaximized in interface PanelDefinitionpublic ContextDefinition getContextDefinition()
getContextDefinition in interface PanelDefinitionpublic void setContextDefinition(ContextDefinition contextDefinition)
setContextDefinition in interface PanelDefinitionpublic ContextDisplayMode getContextDisplayMode()
getContextDisplayMode in interface PanelDefinitionpublic void setContextDisplayMode(ContextDisplayMode contextDisplayMode)
setContextDisplayMode in interface PanelDefinitionCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.