Package com.nitido.utils.toaster
Class Toaster
- java.lang.Object
-
- com.nitido.utils.toaster.Toaster
-
public class Toaster extends java.lang.ObjectClass to show tosters in multiplatform
-
-
Constructor Summary
Constructors Constructor Description Toaster()Constructor to initialized toaster component...
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ImagegetBackgroundImage()java.awt.ColorgetBorderColor()intgetDisplayTime()intgetMargin()java.awt.ColorgetMessageColor()intgetStep()intgetStepTime()java.awt.ColorgetToasterColor()intgetToasterHeight()java.awt.FontgetToasterMessageFont()intgetToasterWidth()voidsetBackgroundImage(java.awt.Image backgroundImage)voidsetBorderColor(java.awt.Color borderColor)voidsetDisplayTime(int displayTime)voidsetMargin(int margin)voidsetMessageColor(java.awt.Color messageColor)voidsetStep(int step)voidsetStepTime(int stepTime)voidsetToasterColor(java.awt.Color toasterColor)voidsetToasterHeight(int toasterHeight)voidsetToasterMessageFont(java.awt.Font f)Set the font for the messagevoidsetToasterWidth(int toasterWidth)voidshowToaster(java.lang.String msg)Show a toaster with the specified message.voidshowToaster(javax.swing.Icon icon, java.lang.String msg)Show a toaster with the specified message and the associated icon.
-
-
-
Method Detail
-
showToaster
public void showToaster(javax.swing.Icon icon, java.lang.String msg)Show a toaster with the specified message and the associated icon.
-
showToaster
public void showToaster(java.lang.String msg)
Show a toaster with the specified message.
-
getToasterMessageFont
public java.awt.Font getToasterMessageFont()
- Returns:
- Returns the font
-
setToasterMessageFont
public void setToasterMessageFont(java.awt.Font f)
Set the font for the message
-
getBorderColor
public java.awt.Color getBorderColor()
- Returns:
- Returns the borderColor.
-
setBorderColor
public void setBorderColor(java.awt.Color borderColor)
- 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
public java.awt.Color getMessageColor()
- Returns:
- Returns the messageColor.
-
setMessageColor
public void setMessageColor(java.awt.Color messageColor)
- 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
public java.awt.Color getToasterColor()
- Returns:
- Returns the toasterColor.
-
setToasterColor
public void setToasterColor(java.awt.Color toasterColor)
- 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.
-
getBackgroundImage
public java.awt.Image getBackgroundImage()
-
setBackgroundImage
public void setBackgroundImage(java.awt.Image backgroundImage)
-
-