Class FooterArea
java.lang.Object
org.eclipse.nebula.widgets.opal.dialog.DialogArea
org.eclipse.nebula.widgets.opal.dialog.FooterArea
public class FooterArea extends DialogArea
Instances of this class are message areas
-
Field Summary
Fields Modifier and Type Field Description (package private) int
selectedButtonIndex
-
Constructor Summary
Constructors Constructor Description FooterArea(Dialog parent)
Constructor -
Method Summary
Modifier and Type Method Description FooterArea
addCheckBox(java.lang.String label, boolean selection)
Add a check boxFooterArea
addFooterAction(java.util.function.Supplier<java.lang.String> label, java.util.function.Consumer<Dialog> action, org.eclipse.swt.graphics.Image... images)
java.util.List<java.lang.String>
getButtonLabels()
boolean
getCheckBoxValue()
java.lang.String
getCollapsedLabelText()
int
getDefaultButtonIndex()
java.lang.String
getDetailText()
java.lang.String
getExpandedLabelText()
java.lang.String
getFooterText()
org.eclipse.swt.graphics.Image
getIcon()
(package private) int
getSelectedButton()
int
getTimer()
int
getTimerIndexButton()
boolean
isExpanded()
(package private) void
render()
Render the content of an areaFooterArea
setButtonLabels(java.lang.String... buttonLabels)
FooterArea
setButtonLabels(java.util.List<java.lang.String> buttonLabels)
FooterArea
setCollapsedLabelText(java.lang.String collapsedLabelText)
FooterArea
setDefaultButtonIndex(int defaultButtonIndex)
FooterArea
setDetailText(java.lang.String detailText)
FooterArea
setExpanded(boolean expanded)
FooterArea
setExpandedLabelText(java.lang.String expandedLabelText)
FooterArea
setFooterText(java.lang.String text)
FooterArea
setIcon(org.eclipse.swt.graphics.Image icon)
FooterArea
setTimer(int timer)
FooterArea
setTimerIndexButton(int timerIndexButton)
Methods inherited from class org.eclipse.nebula.widgets.opal.dialog.DialogArea
getBiggerFont, getFewerDetailsImage, getGreyColor, getMoreDetailsImage, getNormalFont, getTitleColor, isInitialised, setInitialised
-
Field Details
-
selectedButtonIndex
int selectedButtonIndex
-
-
Constructor Details
-
FooterArea
Constructor- Parameters:
parent
- dialog that is composed of this footer area
-
-
Method Details
-
addCheckBox
Add a check box- Parameters:
label
- label to displayselection
- default value of the check box- Returns:
- this footer area
-
render
void render()Description copied from class:DialogArea
Render the content of an area- Specified by:
render
in classDialogArea
- See Also:
DialogArea.render()
-
getIcon
public org.eclipse.swt.graphics.Image getIcon()- Returns:
- the icon
-
setIcon
- Parameters:
icon
- the icon to set- Returns:
- this footer area
-
getFooterText
public java.lang.String getFooterText()- Returns:
- the text
-
setFooterText
- Parameters:
text
- the text to set- Returns:
- this footer area
-
getButtonLabels
public java.util.List<java.lang.String> getButtonLabels()- Returns:
- the button labels
-
setButtonLabels
- Parameters:
buttonLabels
- the button labels to set- Returns:
- this footer area
-
setButtonLabels
- Parameters:
buttonLabels
- the button labels to set- Returns:
- this footer area
-
addFooterAction
public FooterArea addFooterAction(java.util.function.Supplier<java.lang.String> label, java.util.function.Consumer<Dialog> action, org.eclipse.swt.graphics.Image... images)- Parameters:
action
- Runnable to be called when pressed.label
- label of the footer actionimages
- Images Array [active, highlight, inactive]- Returns:
-
getDefaultButtonIndex
public int getDefaultButtonIndex()- Returns:
- the default button index
-
setDefaultButtonIndex
- Parameters:
defaultButtonIndex
- the default button index to set- Returns:
- this footer area
-
getTimer
public int getTimer()- Returns:
- the timer value
-
setTimer
- Parameters:
timer
- the timer value to set- Returns:
- this footer area
-
getTimerIndexButton
public int getTimerIndexButton()- Returns:
- the timer index button
-
setTimerIndexButton
- Parameters:
timerIndexButton
- the timer index button to set- Returns:
- this footer area
-
getSelectedButton
int getSelectedButton()- Returns:
- the selected button
-
getCollapsedLabelText
public java.lang.String getCollapsedLabelText()- Returns:
- the collapsed label text
-
setCollapsedLabelText
- Parameters:
collapsedLabelText
- the collapsed label text to set- Returns:
- this footer area
-
getExpandedLabelText
public java.lang.String getExpandedLabelText()- Returns:
- the expanded label text
-
setExpandedLabelText
- Parameters:
expandedLabelText
- the expanded label text to set- Returns:
- this footer area
-
isExpanded
public boolean isExpanded()- Returns:
- the expanded flag
-
setExpanded
- Parameters:
expanded
- the expanded flag to set- Returns:
- this footer area
-
getDetailText
public java.lang.String getDetailText()- Returns:
- the detail text
-
setDetailText
- Parameters:
detailText
- the detail text to set- Returns:
- this footer area
-
getCheckBoxValue
public boolean getCheckBoxValue()- Returns:
- the check box vqlue
-