com.sencha.gxt.core.client
Class GXT

java.lang.Object
  extended by com.sencha.gxt.core.client.GXT

public class GXT
extends java.lang.Object

GXT core utilities and functions.


Constructor Summary
GXT()
           
 
Method Summary
static java.lang.String getBlankImageUrl()
          URL to a 1x1 transparent GIF image used by GXT to create inline icons with CSS background images.
static java.lang.String getSslSecureUrl()
          URL to a blank file used by GXT when in secure mode for iframe src to prevent the IE insecure content.
static Version getVersion()
          Returns the version information.
static void init()
          Initializes GXT.
static boolean isAir()
          Returns true if the browser is Adobe Air.
static boolean isChrome()
          Returns true if the browser is Chrome.
static boolean isGecko()
          Returns true if the browser is Gecko.
static boolean isGecko1_8()
          Returns true if the browser is Gecko 2.
static boolean isGecko1_9()
          Returns true if the browser is Gecko 3.
static boolean isIE()
          Returns true if the browser is IE.
static boolean isIE6()
          Returns true if the browser is IE 6.
static boolean isIE7()
          Returns true if the browser is IE 7.
static boolean isIE8()
          Returns true if the browser is IE 8.
static boolean isIE9()
          Returns true if the browser is IE 9.
static boolean isLinux()
          Returns true if the OS is Linux.
static boolean isMac()
          Returns true if the OS is Mac.
static boolean isOpera()
          Returns true if the browser is Opera.
static boolean isSafari()
          Returns true if the browser is Safari.
static boolean isSafari3()
          Returns true if the browser is Safari 3.
static boolean isSafari4()
          Returns true if the browser is Safari 4.
static boolean isSafari5()
          Returns true if the browser is Safari 4.
static boolean isSecure()
          Returns true if using HTTPS.
static boolean isUseShims()
          Returns true if the browser uses shims.
static boolean isWebKit()
          Returns true if the browser uses the webkit engine.
static boolean isWindows()
          Returns true if the OS is Windows.
static void setUseShims(boolean useShims)
          True to force the use of shims.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GXT

public GXT()
Method Detail

getBlankImageUrl

public static java.lang.String getBlankImageUrl()
URL to a 1x1 transparent GIF image used by GXT to create inline icons with CSS background images.

Returns:
the blank image url

getSslSecureUrl

public static java.lang.String getSslSecureUrl()
URL to a blank file used by GXT when in secure mode for iframe src to prevent the IE insecure content.

Returns:
the secure url

getVersion

public static Version getVersion()
Returns the version information.

Returns:
the version information

init

public static void init()
Initializes GXT. Typically, this method need not be called directly.


isAir

public static boolean isAir()
Returns true if the browser is Adobe Air.

Returns:
true if air

isChrome

public static boolean isChrome()
Returns true if the browser is Chrome.

Returns:
true if Chrome

isGecko

public static boolean isGecko()
Returns true if the browser is Gecko.

Returns:
true if Gecko

isGecko1_8

public static boolean isGecko1_8()
Returns true if the browser is Gecko 2.

Returns:
true if Gecko 2

isGecko1_9

public static boolean isGecko1_9()
Returns true if the browser is Gecko 3.

Returns:
true if Gecko 3

isIE

public static boolean isIE()
Returns true if the browser is IE.

Returns:
true if IE

isIE6

public static boolean isIE6()
Returns true if the browser is IE 6.

Returns:
true if IE 6

isIE7

public static boolean isIE7()
Returns true if the browser is IE 7.

Returns:
true if IE 7

isIE8

public static boolean isIE8()
Returns true if the browser is IE 8.

Returns:
true if IE 8

isIE9

public static boolean isIE9()
Returns true if the browser is IE 9.

Returns:
true if IE 9

isLinux

public static boolean isLinux()
Returns true if the OS is Linux.

Returns:
true if windows

isMac

public static boolean isMac()
Returns true if the OS is Mac.

Returns:
true if mac

isOpera

public static boolean isOpera()
Returns true if the browser is Opera.

Returns:
true if Opera

isSafari

public static boolean isSafari()
Returns true if the browser is Safari.

Returns:
true for Safari

isSafari3

public static boolean isSafari3()
Returns true if the browser is Safari 3.

Returns:
true if Safari 3

isSafari4

public static boolean isSafari4()
Returns true if the browser is Safari 4.

Returns:
true if Safari 4

isSafari5

public static boolean isSafari5()
Returns true if the browser is Safari 4.

Returns:
true if Safari 4

isSecure

public static boolean isSecure()
Returns true if using HTTPS.

Returns:
true if HTTPS

isUseShims

public static boolean isUseShims()
Returns true if the browser uses shims. By default, GXT intelligently decides whether floating elements should be shimmed. If you are using flash, you may want to set this to true setUseShims(boolean).

Returns:
true for shims

isWebKit

public static boolean isWebKit()
Returns true if the browser uses the webkit engine.

Returns:
true for webkit

isWindows

public static boolean isWindows()
Returns true if the OS is Windows.

Returns:
true if windows

setUseShims

public static void setUseShims(boolean useShims)
True to force the use of shims.

Parameters:
useShims - true to use shims


Copyright © 2012. All Rights Reserved.