|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ehsbe.commons.gui.Hints
public class Hints
A utitlity class, which applies hints to a text if neccessary.
Nested Class Summary | |
---|---|
static class |
Hints.Option
some options, which are used to manipulate the labels text with hints |
Constructor Summary | |
---|---|
Hints(JComponent client)
Create a new Hints. |
Method Summary | |
---|---|
void |
add(Hints.Option... opt)
Add the given options to the label. |
String |
getOriginalText()
Get the real aka original label text. |
String |
getText()
Get the decorated text. |
void |
remove(Hints.Option... opt)
Remove the given options from the label. |
void |
setColor(Hints.Option option,
Color color)
Set the color to be used for drawing the symbol for the given option. |
void |
setSymbol(Hints.Option option,
String symbol)
Set the symbol to use for the given option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hints(JComponent client)
client
- the component to decorateMethod Detail |
---|
public void add(Hints.Option... opt)
If a change in the hint options occures, the client gets revalidated.
opt
- options to add. Ignored if null
.public void remove(Hints.Option... opt)
If a change in the hint options occures, the client gets revalidated.
opt
- options to remove. Ignored if null
.public void setSymbol(Hints.Option option, String symbol)
The client gets revalidated.
option
- option for which the symbol should be set.symbol
- symbol to set. If null
, the default will be
used instead.public void setColor(Hints.Option option, Color color)
option
- option for which the color should be usedcolor
- color to use. If null
, the default will be
used instead.public String getText()
null
if not set, the decorated text otherwise.public String getOriginalText()
null
if not set, the text otherwise.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |