Package org.apache.harmony.awt

Examples of org.apache.harmony.awt.ComponentInternals


   
    public WinDropTarget(WinDTK dtk, DropTargetContext context) {
        this.dtk = dtk;
        this.context = context;

        ComponentInternals ci = ComponentInternals.getComponentInternals();
        NativeWindow w = ci.getNativeWindow(context.getComponent());
        hwnd = w.getId();
        dropTargetPtr = registerDropTarget();
    }
View Full Code Here


    private void setDesktopProperty(String name, Object val, Map<String, Object> props) {
        if (props != null) {
            props.put(name, val);
            return; // skip firing property change
        }
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.setDesktopProperty(name, val);
    }
View Full Code Here

    }
   
    static void makeIMWindow(Window win) {
        win.setFocusableWindowState(false);
        win.setAlwaysOnTop(true);
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.getNativeWindow(win).setIMStyle();       
    }
View Full Code Here

    }
   
    static void makeIMWindow(Window win) {
        win.setFocusableWindowState(false);
        win.setAlwaysOnTop(true);
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.getNativeWindow(win).setIMStyle();       
    }
View Full Code Here

        private final DefaultCaret caret;
       
        ActiveClient() throws HeadlessException {
            // prevent IM invocation on this component
            enableInputMethods(false);
            ComponentInternals ci = ComponentInternals.getComponentInternals();
            TextKit textKit = ci.getTextKit(this);
            caret = (DefaultCaret) textKit.getCaret();
            caret.setBlinkRate(0);
            caret.setVisible(true);
            imRequests = new InputMethodRequestsImpl(textKit) {
                @Override
View Full Code Here

    private void setDesktopProperty(String name, Object val, Map<String, Object> props) {
        if (props != null) {
            props.put(name, val);
            return; // skip firing property change
        }
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.setDesktopProperty(name, val);
    }
View Full Code Here

    }
   
    static void makeIMWindow(Window win) {
        win.setFocusableWindowState(false);
        win.setAlwaysOnTop(true);
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.getNativeWindow(win).setIMStyle();       
    }
View Full Code Here

        return true;
    }

    private boolean isObscured(final int x, final int y, final int width, final int height) {
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        MultiRectArea obscuredArea = ci.getObscuredRegion(parent);
        ci.addObscuredRegions(obscuredArea, blitingComponent, parent);
        if (obscuredArea == null || obscuredArea.isEmpty()) {
            return false;
        }
        return obscuredArea.intersects(x, y, width, height);
    }
View Full Code Here

    private void setDesktopProperty(String name, Object val, Map<String, Object> props) {
        if (props != null) {
            props.put(name, val);
            return; // skip firing property change
        }
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        ci.setDesktopProperty(name, val);
    }
View Full Code Here

   
    public WinDropTarget(WinDTK dtk, DropTargetContext context) {
        this.dtk = dtk;
        this.context = context;

        ComponentInternals ci = ComponentInternals.getComponentInternals();
        NativeWindow w = ci.getNativeWindow(context.getComponent());
        hwnd = w.getId();
        dropTargetPtr = registerDropTarget();
    }
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.ComponentInternals

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.