public class Toaster extends Object
Constructor and Description |
---|
Toaster()
Constructor to initialized toaster component...
|
Modifier and Type | Method and Description |
---|---|
Color |
getBorderColor() |
int |
getDisplayTime() |
int |
getMargin() |
Color |
getMessageColor() |
int |
getStep() |
int |
getStepTime() |
Color |
getToasterColor() |
int |
getToasterHeight() |
Font |
getToasterMessageFont() |
int |
getToasterWidth() |
void |
setBorderColor(Color borderColor) |
void |
setDisplayTime(int displayTime) |
void |
setMargin(int margin) |
void |
setMessageColor(Color messageColor) |
void |
setStep(int step) |
void |
setStepTime(int stepTime) |
void |
setToasterColor(Color toasterColor) |
void |
setToasterHeight(int toasterHeight) |
void |
setToasterMessageFont(Font f)
Set the font for the message
|
void |
setToasterWidth(int toasterWidth) |
void |
showToaster(Icon icon,
String msg)
Show a toaster with the specified message and the associated icon.
|
void |
showToaster(String msg)
Show a toaster with the specified message.
|
public void showToaster(Icon icon, String msg)
public void showToaster(String msg)
public Font getToasterMessageFont()
public void setToasterMessageFont(Font f)
public Color getBorderColor()
public void setBorderColor(Color borderColor)
borderColor
- The borderColor to set.public int getDisplayTime()
public void setDisplayTime(int displayTime)
displayTime
- The displayTime to set.public int getMargin()
public void setMargin(int margin)
margin
- The margin to set.public Color getMessageColor()
public void setMessageColor(Color messageColor)
messageColor
- The messageColor to set.public int getStep()
public void setStep(int step)
step
- The step to set.public int getStepTime()
public void setStepTime(int stepTime)
stepTime
- The stepTime to set.public Color getToasterColor()
public void setToasterColor(Color toasterColor)
toasterColor
- The toasterColor to set.public int getToasterHeight()
public void setToasterHeight(int toasterHeight)
toasterHeight
- The toasterHeight to set.public int getToasterWidth()
public void setToasterWidth(int toasterWidth)
toasterWidth
- The toasterWidth to set.Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.