Class Toaster
java.lang.Object
com.nitido.utils.toaster.Toaster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetStep()intintintvoidsetBorderColor(Color borderColor) voidsetDisplayTime(int displayTime) voidsetMargin(int margin) voidsetMessageColor(Color messageColor) voidsetStep(int step) voidsetStepTime(int stepTime) voidsetToasterColor(Color toasterColor) voidsetToasterHeight(int toasterHeight) voidSet the font for the messagevoidsetToasterWidth(int toasterWidth) voidshowToaster(String msg) Show a toaster with the specified message.voidshowToaster(Icon icon, String msg) Show a toaster with the specified message and the associated icon.
-
Constructor Details
-
Toaster
public Toaster()Constructor to initialized toaster component...
-
-
Method Details
-
showToaster
-
showToaster
Show a toaster with the specified message. -
getToasterMessageFont
- Returns:
- Returns the font
-
setToasterMessageFont
Set the font for the message -
getBorderColor
- Returns:
- Returns the borderColor.
-
setBorderColor
- Parameters:
borderColor- The borderColor to set.
-
getDisplayTime
public int getDisplayTime()- Returns:
- Returns the displayTime.
-
setDisplayTime
public void setDisplayTime(int displayTime) - Parameters:
displayTime- The displayTime to set.
-
getMargin
public int getMargin()- Returns:
- Returns the margin.
-
setMargin
public void setMargin(int margin) - Parameters:
margin- The margin to set.
-
getMessageColor
- Returns:
- Returns the messageColor.
-
setMessageColor
- Parameters:
messageColor- The messageColor to set.
-
getStep
public int getStep()- Returns:
- Returns the step.
-
setStep
public void setStep(int step) - Parameters:
step- The step to set.
-
getStepTime
public int getStepTime()- Returns:
- Returns the stepTime.
-
setStepTime
public void setStepTime(int stepTime) - Parameters:
stepTime- The stepTime to set.
-
getToasterColor
- Returns:
- Returns the toasterColor.
-
setToasterColor
- Parameters:
toasterColor- The toasterColor to set.
-
getToasterHeight
public int getToasterHeight()- Returns:
- Returns the toasterHeight.
-
setToasterHeight
public void setToasterHeight(int toasterHeight) - Parameters:
toasterHeight- The toasterHeight to set.
-
getToasterWidth
public int getToasterWidth()- Returns:
- Returns the toasterWidth.
-
setToasterWidth
public void setToasterWidth(int toasterWidth) - Parameters:
toasterWidth- The toasterWidth to set.
-