|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JLabel
|
+--org.gjt.jclasslib.util.ExtendedJLabel
A JLabel that can be underlined, implements Scrollable, may have a tooltip text equal to its text and exposes a few convenience methods for setText().
| Field Summary |
| Fields inherited from class javax.swing.JLabel |
labelFor |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ExtendedJLabel()
Constructor. |
|
ExtendedJLabel(String text)
Constructor. |
|
| Method Summary | |
boolean |
getAutoTooltip()
Check whether the tooltip text is automatically equal to the text of this label or not. |
Dimension |
getPreferredScrollableViewportSize()
|
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
isUnderlined()
Check whether this label is underlined. |
void |
paint(Graphics g)
|
void |
setAutoTooltip(boolean autoTooltip)
Set whether the tooltip text is automatically equal to the text of this label or not. |
void |
setText(double number)
Convenience method for calling setText() with a double. |
void |
setText(float number)
Convenience method for calling setText() with a float. |
void |
setText(int number)
Convenience method for calling setText() with a int. |
void |
setText(long number)
Convenience method for calling setText() with a long. |
void |
setText(short number)
Convenience method for calling setText() with a short. |
void |
setText(String text)
|
void |
setUnderlined(boolean underlined)
Set whether this label is underlined. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExtendedJLabel()
public ExtendedJLabel(String text)
text - the label text.| Method Detail |
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
getScrollableBlockIncrement in interface Scrollablepublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface Scrollablepublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
getScrollableUnitIncrement in interface Scrollablepublic boolean isUnderlined()
public void setUnderlined(boolean underlined)
underlined - underlined or notpublic boolean getAutoTooltip()
public void setAutoTooltip(boolean autoTooltip)
autoTooltip - equal or notpublic void setText(String text)
setText in class JLabelpublic void setText(short number)
number - the shortpublic void setText(int number)
number - the intpublic void setText(double number)
number - the doublepublic void setText(float number)
number - the floatpublic void setText(long number)
number - the longpublic void paint(Graphics g)
paint in class JComponent
|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||