Method Summary |
|
static int | GlobalErrorHandler(long display, long event_ptr) |
static void | RESTORE_XERROR_HANDLER() |
static int | SAVED_ERROR_HANDLER(long display, XErrorEvent error) |
static void | WITH_XERROR_HANDLER(XErrorHandler handler) |
static void | XERROR_SAVE(XErrorEvent event) |
static void | XSync() |
static void | addEventDispatcher(long window, XEventDispatcher dispatcher) |
public synchronized void | addPropertyChangeListener(String name, PropertyChangeListener pcl) |
static void | addToWinMap(long window, XBaseWindow xwin) |
public void | addXEventListener(XEventListener listener) |
final static void | awtFUnlock() |
native static void | awt_output_flush() |
native static void | awt_toolkit_init() |
public void | beep() |
public ButtonPeer | createButton(Button target) |
public CanvasPeer | createCanvas(Canvas target) |
public CheckboxPeer | createCheckbox(Checkbox target) |
public CheckboxMenuItemPeer | createCheckboxMenuItem(CheckboxMenuItem target) |
public ChoicePeer | createChoice(Choice target) |
public Cursor | createCustomCursor(Image cursor, Point hotSpot, String name) Returns a new custom cursor. |
public DesktopPeer | createDesktopPeer(Desktop target) |
public DialogPeer | createDialog(Dialog target) |
public T | createDragGestureRecognizer(Class<T> recognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl) |
public DragSourceContextPeer | createDragSourceContextPeer(DragGestureEvent dge) |
XEmbedChildProxyPeer | createEmbedProxy(XEmbedChildProxy target) |
public XEmbeddedFramePeer | createEmbeddedFrame(XEmbeddedFrame target) |
public FileDialogPeer | createFileDialog(FileDialog target) |
public FramePeer | createFrame(Frame target) |
public KeyboardFocusManagerPeer | createKeyboardFocusManagerPeer(KeyboardFocusManager manager) |
public LabelPeer | createLabel(Label target) |
public ListPeer | createList(java.awt.List target) |
public MenuPeer | createMenu(Menu target) |
public MenuBarPeer | createMenuBar(MenuBar target) |
public MenuItemPeer | createMenuItem(MenuItem target) |
public PanelPeer | createPanel(Panel target) |
public PopupMenuPeer | createPopupMenu(PopupMenu target) |
public RobotPeer | createRobot(Robot target, GraphicsDevice screen) |
public ScrollPanePeer | createScrollPane(ScrollPane target) |
public ScrollbarPeer | createScrollbar(Scrollbar target) |
public SystemTrayPeer | createSystemTray(SystemTray target) |
public TextAreaPeer | createTextArea(TextArea target) |
public TextFieldPeer | createTextField(TextField target) |
public TrayIconPeer | createTrayIcon(TrayIcon target) |
public WindowPeer | createWindow(Window target) |
static void | dumpPeers() |
static String | getAWTAppClassName() |
static long | getAwtDefaultFg() |
static int | getBackingStoreType() Returns one of XConstants: NotUseful, WhenMapped or Always. |
public Dimension | getBestCursorSize(int preferredWidth, int preferredHeight) |
public ColorModel | getColorModel() |
static String | getCorrectXIDString(String val) |
static long | getCurrentServerTime() |
public static long | getDefaultRootWindow() |
native static long | getDefaultScreenData() |
static int | getDefaultScreenHeight() |
static int | getDefaultScreenWidth() |
native static long | getDefaultXColormap() |
public static long | getDisplay() |
native static String | getEnv(String key) |
public static long | getEventNumber() |
static EventQueue | getEventQueue(Object target) |
public FontPeer | getFontPeer(String name, int style) |
public InputMethodDescriptor | getInputMethodAdapterDescriptor() Returns a new input method adapter descriptor for native input methods. |
boolean | getLastCursorPos(Point p) Returns whether there is last remembered cursor position. |
public int | getMaximumCursorColors() |
public synchronized MouseInfoPeer | getMouseInfoPeer() |
static int | getMultiClickTime() |
public PrintJob | getPrintJob(Frame frame, String doctitle, Properties props) |
public PrintJob | getPrintJob(Frame frame, String doctitle, JobAttributes jobAttributes, PageAttributes pageAttributes) |
protected int | getScreenHeight() |
public Insets | getScreenInsets(GraphicsConfiguration gc) |
public int | getScreenResolution() |
protected int | getScreenWidth() |
static ColorModel | getStaticColorModel() |
public Clipboard | getSystemClipboard() |
static String | getSystemProperty(String name) |
public Clipboard | getSystemSelection() |
static UIDefaults | getUIDefaults() |
public void | grab(Window w) |
void | init() |
static void | initSecurityWarning() |
static void | initUIDefaults() |
protected void | initializeDesktopProperties() |
static void | initializeMultiClickTime() |
public boolean | isAlwaysOnTopSupported() |
public boolean | isDesktopSupported() Returns if the java.awt.Desktop class is supported on the current
desktop. |
public boolean | isDynamicLayoutActive() |
protected boolean | isDynamicLayoutSet() |
protected boolean | isDynamicLayoutSupported() |
public boolean | isFrameStateSupported(int state) |
static boolean | isLeftMouseButton(MouseEvent me) |
public boolean | isModalExclusionTypeSupported(Dialog.ModalExclusionType exclusionType) |
public boolean | isModalityTypeSupported(Dialog.ModalityType modalityType) |
static boolean | isRightMouseButton(MouseEvent me) |
static boolean | isSecurityWarningEnabled() |
static boolean | isToolkitThread() |
public boolean | isTraySupported() |
static boolean | isXKBenabled() Query XKEYBOARD extension. |
static boolean | isXsunServer() Try to understand if it is Xsun server.
By now (2005) Sun is vendor of Xsun and Xorg servers; we only return true if Xsun is running. |
static int | keysymToPrimaryKeycode(long sym) |
protected Object | lazilyLoadDesktopProperty(String name) |
public void | loadSystemColors(int[] systemColors) |
public Map | mapInputMethodHighlight(InputMethodHighlight highlight) |
native public void | nativeLoadSystemColors(int[] systemColors) |
protected boolean | needsXEmbedImpl() |
static long | nowMillisUTC_offset(long server_offset) |
void | parseXSettings(int screen_XXX_ignored, Map updatedSettings) Callback from the native side indicating some, or all, of the
desktop properties have changed and need to be reloaded.
data is the byte array directly from the x server and
may be in little endian format.
NB: This could be called from any thread if triggered by
loadXSettings . |
static void | processException(Throwable thr) |
static void | remove(Runnable task) Removed the task from the list of waiting-to-be called tasks. |
static void | removeEventDispatcher(long window, XEventDispatcher dispatcher) |
static void | removeFromWinMap(long window, XBaseWindow xwin) |
static void | removeSourceEvents(EventQueue queue, Object source, boolean removeAllEvents) |
public void | run() |
public void | run(boolean loop) |
static void | schedule(Runnable task, long interval) Registers a Runnable which run() method will be called
once on the toolkit thread when a specified interval of time elapses. |
public void | setDynamicLayout(boolean b) |
native public static void | setNoisyXErrorHandler() |
static void | setupModifierMap() |
protected boolean | syncNativeQueue(long timeout) |
final protected static void | targetDisposedPeer(Object target, Object peer) |
final protected static Object | targetToPeer(Object target) |
public void | ungrab(Window w) |
public boolean | useBufferPerWindow() |
native static void | waitForEvents(long nextTaskTime) |
native static void | wakeup_poll() |
static XBaseWindow | windowToXWindow(long window) |