public class FormattedValue extends Object
MonitorField.| Modifier and Type | Field and Description |
|---|---|
Color |
bgColor |
Consumer<MonitorCell> |
click1 |
Boolean |
editable |
static FormattedValue |
EMPTY
Indicates a permanently empty cell.
|
Color |
fgColor |
String |
format |
Integer |
horizontalAlignment |
static FormattedValue |
NA
Indicates that the data is currently unavailable.
|
String |
text |
String |
toolTip |
Object |
value |
| Constructor and Description |
|---|
FormattedValue()
Default constructor.
|
FormattedValue(FormattedValue other)
Copy constructor.
|
FormattedValue(String text,
Color fgColor,
Color bgColor,
Integer horizontalAlignment,
String toolTip,
Boolean isEditable)
Full constructor.
|
FormattedValue(String text,
Integer horizontalAlignment)
Constructs an instance with specified text and alignment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Color |
getBgColor() |
Consumer<MonitorCell> |
getClick1() |
Color |
getFgColor() |
int |
getHorizontalAlignment() |
String |
getText() |
String |
getToolTip() |
int |
hashCode() |
boolean |
isEditable()
Deprecated.
|
boolean |
isValid()
Returns
true if no additional formatting is required before this formatted value can be displayed. |
String |
toString() |
public static final FormattedValue NA
public static final FormattedValue EMPTY
public String text
public Color fgColor
public Color bgColor
public Integer horizontalAlignment
public String toolTip
public Boolean editable
public Consumer<MonitorCell> click1
public Object value
public String format
public FormattedValue()
public FormattedValue(String text, Color fgColor, Color bgColor, Integer horizontalAlignment, String toolTip, Boolean isEditable)
text - Text to be displayed.fgColor - Text color.bgColor - Background color.horizontalAlignment - Horizontal alignment, as defined in SwingConstants.toolTip - Tool tip.isEditable - True if the cell should be editable by the console user.public FormattedValue(FormattedValue other)
other - Instance to be copied.public FormattedValue(String text, Integer horizontalAlignment)
text - Text to be displayed.horizontalAlignment - Horizontal alignment, as defined in SwingConstants.public boolean isValid()
true if no additional formatting is required before this formatted value can be displayed.public String getText()
public Color getFgColor()
public Color getBgColor()
public int getHorizontalAlignment()
public String getToolTip()
@Deprecated public boolean isEditable()
public Consumer<MonitorCell> getClick1()
Copyright © 2023 LSST. All rights reserved.