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.UiComponentJava wrapper for UI5 web component ui5-panel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUi5Panel.AccessibleRolePossible values for accessible-role attribute of ui5-panel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToHeader(net.moewes.cloudui.UiComponent component)adds a UiComponent to the header of the panel.voidaddToHeader(net.moewes.cloudui.UiComponent... headerComponents)adds multiple elements to the header of the panelvoidsetAccessibleRole(Ui5Panel.AccessibleRole role)sets the accessible-role of ui5-panelvoidsetCollapsed(boolean collapsed)sets whether the panel is collapsed or not Only useful if the panel is not fiexedvoidsetFixed(boolean fixed)sets if the panel can be collapsedvoidsetHeaderLevel(Ui5Title.Level level)sets the header-level attribute of ui5-panelvoidsetHeaderText(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
-
-