|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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().
Nested Class Summary |
Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
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 Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface Scrollable
public 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)
public 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)
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |