Package totalcross.ui.dialog
Class MessageBox.Builder
- java.lang.Object
-
- totalcross.ui.dialog.MessageBox.Builder
-
- Enclosing class:
- MessageBox
public static class MessageBox.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()The MessageBox builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBoxbuild()After you make all of your process of build, call this to return the result.MessageBox.BuildersetBaseContainer(Container baseContainer)This is the content that will be placed between the title and the buttons.MessageBox.BuildersetBaseContainerInsets(int left, int right, int top, int bottom)Sets the insets of the Container (The container that will be your content).MessageBox.BuildersetButtons(java.lang.String[] buttonCaptions)Sets the buttons that will appear on the MessageBox.MessageBox.BuildersetButtonsMargin(int margin)Sets the margins of the buttons.MessageBox.BuildersetContButtonGap(int gap)Sets the gap between the Container (MessageBox's content) and the buttons.MessageBox.BuildersetImage(Image image)Sets the image that is displayed on the top of the MessageBox.MessageBox.BuildersetMessage(java.lang.String message)Sets the MessageBox message.MessageBox.BuildersetMessageBoxInsets(int left, int right, int top, int bottom)Sets the insets of the MessageBox.MessageBox.BuildersetTitle(java.lang.String title)Sets the MessageBox title.MessageBox.BuildersetTitleContGap(int gap)Sets the gap between the title and the Container (MessageBox's content).
-
-
-
Method Detail
-
build
public MessageBox build()
After you make all of your process of build, call this to return the result.
-
setTitle
public MessageBox.Builder setTitle(java.lang.String title)
Sets the MessageBox title.
-
setMessage
public MessageBox.Builder setMessage(java.lang.String message)
Sets the MessageBox message.
Note: This message is overwriten when you call setBaseContainer.
-
setBaseContainer
public MessageBox.Builder setBaseContainer(Container baseContainer)
This is the content that will be placed between the title and the buttons. You can put anything here.
Note: After you set this, the message will not appear since you're putting a Container above it.
-
setBaseContainerInsets
public MessageBox.Builder setBaseContainerInsets(int left, int right, int top, int bottom)
Sets the insets of the Container (The container that will be your content).
-
setImage
public MessageBox.Builder setImage(Image image)
Sets the image that is displayed on the top of the MessageBox.
-
setMessageBoxInsets
public MessageBox.Builder setMessageBoxInsets(int left, int right, int top, int bottom)
Sets the insets of the MessageBox.
-
setButtons
public MessageBox.Builder setButtons(java.lang.String[] buttonCaptions)
Sets the buttons that will appear on the MessageBox.
-
setButtonsMargin
public MessageBox.Builder setButtonsMargin(int margin)
Sets the margins of the buttons.
-
setTitleContGap
public MessageBox.Builder setTitleContGap(int gap)
Sets the gap between the title and the Container (MessageBox's content).
-
setContButtonGap
public MessageBox.Builder setContButtonGap(int gap)
Sets the gap between the Container (MessageBox's content) and the buttons.
-
-