public class MessageArea extends DialogArea
parent
Constructor and Description |
---|
MessageArea(Dialog parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
MessageArea |
addCheckBox(java.lang.String label,
boolean selection)
Add a check box
|
MessageArea |
addChoice(int defaultSelection,
ChoiceItem... items)
Add a choice
|
MessageArea |
addProgressBar(int mininum,
int maximum,
int value)
Add a progress bar
|
MessageArea |
addRadioButtons(int defaultSelection,
java.lang.String... values)
Add a choice composed of radio buttons
|
MessageArea |
addTextBox(java.lang.String value)
Add a text box for input
|
boolean |
getCheckBoxValue() |
int |
getChoice() |
java.lang.Throwable |
getException() |
int |
getHeight() |
org.eclipse.swt.graphics.Image |
getIcon() |
int |
getProgressBarMaximumValue() |
int |
getProgressBarMinimumValue() |
int |
getProgressBarValue() |
int |
getRadioChoice() |
java.lang.String |
getText() |
java.lang.String |
getTextBoxValue() |
java.lang.String |
getTitle() |
(package private) void |
hideException()
Hide the exception panel
|
boolean |
isVerticalScrollbar() |
void |
render()
Render the content of an area
|
MessageArea |
setException(java.lang.Throwable exception) |
void |
setHeight(int height) |
MessageArea |
setIcon(org.eclipse.swt.graphics.Image icon) |
void |
setProgressBarMaximumValue(int progressBarMaximumValue) |
void |
setProgressBarMinimumValue(int progressBarMinimumValue) |
void |
setProgressBarValue(int progressBarValue) |
MessageArea |
setText(java.lang.String text) |
MessageArea |
setTitle(java.lang.String title) |
void |
setVerticalScrollbar(boolean verticalScrollbar) |
(package private) void |
showException()
Show the exception panel
|
getBiggerFont, getFewerDetailsImage, getGreyColor, getMoreDetailsImage, getNormalFont, getTitleColor, isInitialised, setInitialised
public MessageArea(Dialog parent)
parent
- dialog that is composed of this message areapublic MessageArea addChoice(int defaultSelection, ChoiceItem... items)
defaultSelection
- default selectionitems
- a list of the choice itempublic MessageArea addRadioButtons(int defaultSelection, java.lang.String... values)
defaultSelection
- default selectionvalues
- valuespublic MessageArea addTextBox(java.lang.String value)
value
- defaut value of the textboxpublic MessageArea addProgressBar(int mininum, int maximum, int value)
mininum
- minimum valuemaximum
- maximum valuevalue
- default valuepublic MessageArea addCheckBox(java.lang.String label, boolean selection)
label
- label to displayselection
- default value of the check boxpublic void render()
DialogArea
render
in class DialogArea
DialogArea.render()
void hideException()
void showException()
public java.lang.String getTitle()
public MessageArea setTitle(java.lang.String title)
title
- the title to setpublic org.eclipse.swt.graphics.Image getIcon()
public MessageArea setIcon(org.eclipse.swt.graphics.Image icon)
icon
- the icon to setpublic java.lang.String getText()
public MessageArea setText(java.lang.String text)
text
- the text to setpublic int getRadioChoice()
public java.lang.Throwable getException()
public MessageArea setException(java.lang.Throwable exception)
exception
- the exception to setpublic int getChoice()
public java.lang.String getTextBoxValue()
public int getProgressBarMinimumValue()
public void setProgressBarMinimumValue(int progressBarMinimumValue)
progressBarMinimumValue
- the progress bar minimum value to setpublic int getProgressBarMaximumValue()
public void setProgressBarMaximumValue(int progressBarMaximumValue)
progressBarMaximumValue
- the progress bar minimum value to setpublic int getProgressBarValue()
public void setProgressBarValue(int progressBarValue)
progressBarValue
- the progress bar value to setpublic boolean isVerticalScrollbar()
public void setVerticalScrollbar(boolean verticalScrollbar)
verticalScrollbar
- the verticalScrollbar to setpublic int getHeight()
public void setHeight(int height)
height
- the height to setpublic boolean getCheckBoxValue()