yu.ac.bg.etf.javaqx.qswing
Class WhatsThisManager

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.WhatsThisManager

public final class WhatsThisManager
extends java.lang.Object

What's This Manager.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
static void enterWhatsThisMode()
          Enters/leaves what's this mode.
static void exitWhatsThisMode()
          Enters/leaves what's this mode.
static void hideWhatsThis()
          Hides what's this help.
static boolean isInWhatsThisMode()
          Returns true if the what's this mode is active.
static boolean isWhatsThisEnabled()
          Returns true if the what's this help is enabled.
static void setWhatsThisEnabled(boolean enabled)
          Enables/disables what's this help.
static void showWhatsThis(java.lang.String text, int x, int y)
          Shows what's this help location.
static void showWhatsThis(java.lang.String text, int x, int y, JQComponent component)
          Displays what's this help at specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isWhatsThisEnabled

public static boolean isWhatsThisEnabled()
Returns true if the what's this help is enabled.

Returns:
true if the what's this help is enabled

setWhatsThisEnabled

public static void setWhatsThisEnabled(boolean enabled)
Enables/disables what's this help.

Parameters:
enabled - true if enabled

showWhatsThis

public static void showWhatsThis(java.lang.String text,
                                 int x,
                                 int y)
Shows what's this help location.

Parameters:
text - the what's this help
x - the x-coordinate of the what's this help
y - int y-coordinate of the what's this help

showWhatsThis

public static void showWhatsThis(java.lang.String text,
                                 int x,
                                 int y,
                                 JQComponent component)
Displays what's this help at specified location.

Parameters:
text - the what's this help
x - the x-coordinate of the what's this help
y - int y-coordinate of the what's this help
component - the component for which what's this help is provided

hideWhatsThis

public static void hideWhatsThis()
Hides what's this help.


isInWhatsThisMode

public static boolean isInWhatsThisMode()
Returns true if the what's this mode is active.

Returns:
true if the what's this mode is active

enterWhatsThisMode

public static void enterWhatsThisMode()
Enters/leaves what's this mode.


exitWhatsThisMode

public static void exitWhatsThisMode()
Enters/leaves what's this mode.



Copyright © 2007 ETF and contributors. All Rights Reserved.