mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 12:40:44 +00:00
CE-1727 - Add standardColor and isAlert
This commit is contained in:
@ -30,4 +30,104 @@ import com.kingsrook.qqq.backend.core.model.dashboard.widgets.blocks.BlockStyles
|
||||
*******************************************************************************/
|
||||
public class TextStyles implements BlockStylesInterface
|
||||
{
|
||||
private StandardColor standardColor;
|
||||
|
||||
private boolean isAlert;
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
**
|
||||
***************************************************************************/
|
||||
public enum StandardColor
|
||||
{
|
||||
SUCCESS,
|
||||
WARNING,
|
||||
ERROR,
|
||||
INFO,
|
||||
MUTED
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Constructor
|
||||
**
|
||||
*******************************************************************************/
|
||||
public TextStyles()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
**
|
||||
***************************************************************************/
|
||||
public TextStyles(StandardColor standardColor)
|
||||
{
|
||||
setStandardColor(standardColor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for standardColor
|
||||
*******************************************************************************/
|
||||
public StandardColor getStandardColor()
|
||||
{
|
||||
return (this.standardColor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for standardColor
|
||||
*******************************************************************************/
|
||||
public void setStandardColor(StandardColor standardColor)
|
||||
{
|
||||
this.standardColor = standardColor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for standardColor
|
||||
*******************************************************************************/
|
||||
public TextStyles withStandardColor(StandardColor standardColor)
|
||||
{
|
||||
this.standardColor = standardColor;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for isAlert
|
||||
*******************************************************************************/
|
||||
public boolean getIsAlert()
|
||||
{
|
||||
return (this.isAlert);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for isAlert
|
||||
*******************************************************************************/
|
||||
public void setIsAlert(boolean isAlert)
|
||||
{
|
||||
this.isAlert = isAlert;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for isAlert
|
||||
*******************************************************************************/
|
||||
public TextStyles withIsAlert(boolean isAlert)
|
||||
{
|
||||
this.isAlert = isAlert;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user