| javax.swing.JPanel org.openharmonise.him.metadata.range.swing.WarningsLabel
WarningsLabel | public class WarningsLabel extends JPanel (Code) | | Component for displaying labels of warning text of which some items
of text can be highlighted.
To highlight items of text in a string they should be surrounded with
curly braces {} for example;
"This is a string with two {items of highlightable} text in {it}."
author: Matthew Large version: $Revision: 1.1 $ |
Constructor Summary | |
public | WarningsLabel(String sText) Constructs a new warnings label component. |
Method Summary | |
public Dimension | getPreferredSize() | public void | setAllHighlights(boolean bHighLighted) Sets whether all items of highlightable text are highlighted
or not. | public void | setAllHighlights(boolean bHighLighted, Color color) Sets whether all items of highlightable text are highlighted
or not. | public void | setFont(Font font) | public void | setHighlight(String sVarText, boolean bHighLighted) Sets whether an item of text is highlighted or not. | public void | setHighlight(String sVarText, boolean bHighLighted, Color color) Sets whether an item of text is highlighted or not and the color to
highlight with. |
WarningsLabel | public WarningsLabel(String sText)(Code) | | Constructs a new warnings label component.
Parameters: sText - Text to display |
setAllHighlights | public void setAllHighlights(boolean bHighLighted)(Code) | | Sets whether all items of highlightable text are highlighted
or not. Defaults to red.
Parameters: bHighLighted - true if all items of highlightable text are to be highlighted |
setAllHighlights | public void setAllHighlights(boolean bHighLighted, Color color)(Code) | | Sets whether all items of highlightable text are highlighted
or not. Defaults to red.
Parameters: bHighLighted - true if all items of highlightable text are to be highlighted Parameters: color - Color to highlight with |
setHighlight | public void setHighlight(String sVarText, boolean bHighLighted)(Code) | | Sets whether an item of text is highlighted or not. Defaults to red.
Parameters: sVarText - Text to set highlight on Parameters: bHighLighted - true if text is to be highlighted |
setHighlight | public void setHighlight(String sVarText, boolean bHighLighted, Color color)(Code) | | Sets whether an item of text is highlighted or not and the color to
highlight with.
Parameters: sVarText - Text to set highlight on Parameters: bHighLighted - true if text is to be highlighted Parameters: color - Color to highlight with |
|
|