public class FooterArea extends DialogArea
Modifier and Type | Field and Description |
---|---|
(package private) int |
selectedButtonIndex |
parent
Constructor and Description |
---|
FooterArea(Dialog parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FooterArea |
addCheckBox(java.lang.String label,
boolean selection)
Add a check box
|
FooterArea |
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 area
|
FooterArea |
setButtonLabels(java.util.List<java.lang.String> buttonLabels) |
FooterArea |
setButtonLabels(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) |
getBiggerFont, getFewerDetailsImage, getGreyColor, getMoreDetailsImage, getNormalFont, getTitleColor, isInitialised, setInitialised
public FooterArea(Dialog parent)
parent
- dialog that is composed of this footer areapublic FooterArea addCheckBox(java.lang.String label, boolean selection)
label
- label to displayselection
- default value of the check boxvoid render()
DialogArea
render
in class DialogArea
DialogArea.render()
public org.eclipse.swt.graphics.Image getIcon()
public FooterArea setIcon(org.eclipse.swt.graphics.Image icon)
icon
- the icon to setpublic java.lang.String getFooterText()
public FooterArea setFooterText(java.lang.String text)
text
- the text to setpublic java.util.List<java.lang.String> getButtonLabels()
public FooterArea setButtonLabels(java.util.List<java.lang.String> buttonLabels)
buttonLabels
- the button labels to setpublic FooterArea setButtonLabels(java.lang.String... buttonLabels)
buttonLabels
- the button labels to setpublic FooterArea addFooterAction(java.util.function.Supplier<java.lang.String> label, java.util.function.Consumer<Dialog> action, org.eclipse.swt.graphics.Image... images)
action
- Runnable to be called when pressed.label
- label of the footer actionimages
- Images Array [active, highlight, inactive]public int getDefaultButtonIndex()
public FooterArea setDefaultButtonIndex(int defaultButtonIndex)
defaultButtonIndex
- the default button index to setpublic int getTimer()
public FooterArea setTimer(int timer)
timer
- the timer value to setpublic int getTimerIndexButton()
public FooterArea setTimerIndexButton(int timerIndexButton)
timerIndexButton
- the timer index button to setint getSelectedButton()
public java.lang.String getCollapsedLabelText()
public FooterArea setCollapsedLabelText(java.lang.String collapsedLabelText)
collapsedLabelText
- the collapsed label text to setpublic java.lang.String getExpandedLabelText()
public FooterArea setExpandedLabelText(java.lang.String expandedLabelText)
expandedLabelText
- the expanded label text to setpublic boolean isExpanded()
public FooterArea setExpanded(boolean expanded)
expanded
- the expanded flag to setpublic java.lang.String getDetailText()
public FooterArea setDetailText(java.lang.String detailText)
detailText
- the detail text to setpublic boolean getCheckBoxValue()