|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQToolTip
ToolTip Class.
NOTE: This class is not compatible with javax.swing.JToolTip class!
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Method Summary | |
static boolean |
areToolTipsEnabled()
Returns true if the tooltips are enabled. |
static void |
hideToolTip()
Hides tooltip. |
static void |
setToolTipsBackground(Color background)
Sets background color for the tooltips. |
static void |
setToolTipsEnabled(boolean enabled)
Enables/disables tooltips. |
static void |
setToolTipsForeground(Color foreground)
Sets foreground color for the tooltips. |
static void |
showToolTip(java.lang.String text,
int x,
int y)
Shows tooltip at specified location. |
static void |
showToolTip(java.lang.String text,
int x,
int y,
JQComponent component)
Shows tooltip at specified location. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static boolean areToolTipsEnabled()
public static void setToolTipsEnabled(boolean enabled)
enabled
- true if enabledpublic static void showToolTip(java.lang.String text, int x, int y)
text
- the tooltip textx
- the x-coordinate of the tooltipy
- the y-coordinate of the tooltippublic static void showToolTip(java.lang.String text, int x, int y, JQComponent component)
text
- the tooltip textx
- the x-coordinate of the tooltipy
- int y-coordinate of the tooltipcomponent
- the component for which tooltip is providedpublic static void hideToolTip()
public static void setToolTipsBackground(Color background)
background
- the background colorpublic static void setToolTipsForeground(Color foreground)
foreground
- the foreground color
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |