< prev index next >

modules/javafx.graphics/src/main/java/com/sun/glass/ui/Window.java

Print this page




 358      */
 359     public long getNativeWindow() {
 360         Application.checkEventThread();
 361         checkNotClosed();
 362         return this.delegatePtr != 0L ? this.delegatePtr : this.ptr;
 363     }
 364 
 365     /**
 366      * This method returns "higher-level" native window handle.
 367      * glass-mat-lib-gtk GtkWindow.java returns GtkWindow pointer for example.
 368      */
 369     public long getNativeHandle() {
 370         Application.checkEventThread();
 371         return this.delegatePtr != 0L ? this.delegatePtr : this.ptr;
 372     }
 373 
 374     /**
 375      * return the "raw' pointer needed by subclasses to pass to native routines
 376      * @return the native pointer.
 377      */
 378     protected long getRawHandle() {
 379         return ptr;
 380     }
 381 
 382     public Window getOwner() {
 383         Application.checkEventThread();
 384         return this.owner;
 385     }
 386 
 387     public View getView() {
 388         Application.checkEventThread();
 389         return this.view;
 390     }
 391 
 392     protected abstract boolean _setView(long ptr, View view);
 393     public void setView(final View view) {
 394         Application.checkEventThread();
 395         checkNotClosed();
 396         View oldView = getView();
 397         if (oldView == view) {
 398             return;




 358      */
 359     public long getNativeWindow() {
 360         Application.checkEventThread();
 361         checkNotClosed();
 362         return this.delegatePtr != 0L ? this.delegatePtr : this.ptr;
 363     }
 364 
 365     /**
 366      * This method returns "higher-level" native window handle.
 367      * glass-mat-lib-gtk GtkWindow.java returns GtkWindow pointer for example.
 368      */
 369     public long getNativeHandle() {
 370         Application.checkEventThread();
 371         return this.delegatePtr != 0L ? this.delegatePtr : this.ptr;
 372     }
 373 
 374     /**
 375      * return the "raw' pointer needed by subclasses to pass to native routines
 376      * @return the native pointer.
 377      */
 378     public long getRawHandle() {
 379         return ptr;
 380     }
 381 
 382     public Window getOwner() {
 383         Application.checkEventThread();
 384         return this.owner;
 385     }
 386 
 387     public View getView() {
 388         Application.checkEventThread();
 389         return this.view;
 390     }
 391 
 392     protected abstract boolean _setView(long ptr, View view);
 393     public void setView(final View view) {
 394         Application.checkEventThread();
 395         checkNotClosed();
 396         View oldView = getView();
 397         if (oldView == view) {
 398             return;


< prev index next >