CE-1727 - Add standardColor and isAlert

This commit is contained in:
2024-09-20 19:39:16 -05:00
parent 983a93d38c
commit 27dbc72db4

View File

@ -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);
}
}