Package net.moewes.cloudui.ui5
Class Ui5Panel
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Panel
-
public class Ui5Panel extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-panel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ui5Panel.AccessibleRole
Possible values for accessible-role attribute of ui5-panel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToHeader(net.moewes.cloudui.UiComponent component)
adds a UiComponent to the header of the panel.void
addToHeader(net.moewes.cloudui.UiComponent... headerComponents)
adds multiple elements to the header of the panelvoid
setAccessibleRole(Ui5Panel.AccessibleRole role)
sets the accessible-role of ui5-panelvoid
setCollapsed(boolean collapsed)
sets whether the panel is collapsed or not Only useful if the panel is not fiexedvoid
setFixed(boolean fixed)
sets if the panel can be collapsedvoid
setHeaderLevel(Ui5Title.Level level)
sets the header-level attribute of ui5-panelvoid
setHeaderText(String text)
sets the header-text attribute of ui5-panel
-
-
-
Constructor Detail
-
Ui5Panel
public Ui5Panel()
default constructor
-
Ui5Panel
public Ui5Panel(String headerText, boolean fixed)
constructor- Parameters:
headerText
- text that is displayed as header of panelfixed
- if true the panel cannot be collapsed
-
-
Method Detail
-
setHeaderText
public void setHeaderText(String text)
sets the header-text attribute of ui5-panel- Parameters:
text
- text that is displayed as header of panel
-
setHeaderLevel
public void setHeaderLevel(Ui5Title.Level level)
sets the header-level attribute of ui5-panel- Parameters:
level
- level for the headerText
-
setFixed
public void setFixed(boolean fixed)
sets if the panel can be collapsed- Parameters:
fixed
- when true the panel cannot be collapsed
-
setCollapsed
public void setCollapsed(boolean collapsed)
sets whether the panel is collapsed or not Only useful if the panel is not fiexed- Parameters:
collapsed
- true if the panel should initial be collapsed
-
setAccessibleRole
public void setAccessibleRole(Ui5Panel.AccessibleRole role)
sets the accessible-role of ui5-panel- Parameters:
role
- see enum
-
addToHeader
public void addToHeader(net.moewes.cloudui.UiComponent... headerComponents)
adds multiple elements to the header of the panel- Parameters:
headerComponents
- one or more components to add
-
addToHeader
public void addToHeader(net.moewes.cloudui.UiComponent component)
adds a UiComponent to the header of the panel. When at least one element is added the headerText is ignored- Parameters:
component
- UiComponent to add
-
-