public abstract class StatusText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SimpleTextAttributes |
DEFAULT_ATTRIBUTES |
static java.lang.String |
DEFAULT_EMPTY_TEXT
Deprecated.
Use
getDefaultEmptyText() instead |
protected SimpleColoredComponent |
myComponent |
Modifier | Constructor and Description |
---|---|
|
StatusText() |
protected |
StatusText(javax.swing.JComponent owner) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Rectangle |
adjustComponentBounds(javax.swing.JComponent component,
java.awt.Rectangle bounds) |
StatusText |
appendSecondaryText(java.lang.String text,
SimpleTextAttributes attrs,
java.awt.event.ActionListener listener) |
StatusText |
appendText(java.lang.String text) |
StatusText |
appendText(java.lang.String text,
SimpleTextAttributes attrs) |
StatusText |
appendText(java.lang.String text,
SimpleTextAttributes attrs,
java.awt.event.ActionListener listener) |
void |
attachTo(java.awt.Component owner) |
void |
attachTo(java.awt.Component owner,
java.awt.Component mouseTarget) |
StatusText |
clear() |
SimpleColoredComponent |
getComponent() |
static java.lang.String |
getDefaultEmptyText() |
java.awt.Dimension |
getPreferredSize() |
SimpleColoredComponent |
getSecondaryComponent() |
java.lang.String |
getText() |
protected java.awt.Rectangle |
getTextComponentBound() |
protected boolean |
isFontSet() |
boolean |
isShowAboveCenter() |
protected abstract boolean |
isStatusVisible() |
boolean |
isVerticalFlow() |
void |
paint(java.awt.Component owner,
java.awt.Graphics g) |
void |
setFont(java.awt.Font font) |
void |
setIsVerticalFlow(boolean isVerticalFlow) |
StatusText |
setShowAboveCenter(boolean showAboveCenter) |
StatusText |
setText(java.lang.String text) |
StatusText |
setText(java.lang.String text,
SimpleTextAttributes attrs) |
public static final SimpleTextAttributes DEFAULT_ATTRIBUTES
@Deprecated public static final java.lang.String DEFAULT_EMPTY_TEXT
getDefaultEmptyText()
insteadprotected final SimpleColoredComponent myComponent
protected StatusText(javax.swing.JComponent owner)
public StatusText()
protected boolean isFontSet()
public void setFont(java.awt.Font font)
public void attachTo(java.awt.Component owner)
public void attachTo(java.awt.Component owner, java.awt.Component mouseTarget)
protected abstract boolean isStatusVisible()
protected java.awt.Rectangle getTextComponentBound()
public final boolean isShowAboveCenter()
public final StatusText setShowAboveCenter(boolean showAboveCenter)
public java.lang.String getText()
public StatusText setText(java.lang.String text)
public StatusText setText(java.lang.String text, SimpleTextAttributes attrs)
public StatusText clear()
public StatusText appendText(java.lang.String text)
public StatusText appendText(java.lang.String text, SimpleTextAttributes attrs)
public StatusText appendText(java.lang.String text, SimpleTextAttributes attrs, java.awt.event.ActionListener listener)
public void setIsVerticalFlow(boolean isVerticalFlow)
public StatusText appendSecondaryText(java.lang.String text, SimpleTextAttributes attrs, java.awt.event.ActionListener listener)
public void paint(java.awt.Component owner, java.awt.Graphics g)
protected java.awt.Rectangle adjustComponentBounds(javax.swing.JComponent component, java.awt.Rectangle bounds)
public SimpleColoredComponent getComponent()
public SimpleColoredComponent getSecondaryComponent()
public java.awt.Dimension getPreferredSize()
public boolean isVerticalFlow()
public static java.lang.String getDefaultEmptyText()