src/macosx/classes/sun/lwawt/LWComponentPeer.java

Print this page




 319 
 320     final Object getStateLock() {
 321         return stateLock;
 322     }
 323 
 324     /**
 325      * Synchronize all operations with the Swing delegates under AWT tree lock,
 326      * using a new separate lock to synchronize access to delegates may lead
 327      * deadlocks. Think of it as a 'virtual EDT'.
 328      *
 329      * @return DelegateLock
 330      */
 331     final Object getDelegateLock() {
 332         return getTarget().getTreeLock();
 333     }
 334 
 335     protected static final Object getPeerTreeLock() {
 336         return peerTreeLock;
 337     }
 338 
 339     final T getTarget() {
 340         return target;
 341     }
 342 
 343     // Just a helper method
 344     // Returns the window peer or null if this is a window peer
 345     protected final LWWindowPeer getWindowPeer() {
 346         return windowPeer;
 347     }
 348 
 349     // Returns the window peer or 'this' if this is a window peer
 350     protected LWWindowPeer getWindowPeerOrSelf() {
 351         return getWindowPeer();
 352     }
 353 
 354     // Just a helper method
 355     protected final LWContainerPeer getContainerPeer() {
 356         return containerPeer;
 357     }
 358 
 359     // Just a helper method




 319 
 320     final Object getStateLock() {
 321         return stateLock;
 322     }
 323 
 324     /**
 325      * Synchronize all operations with the Swing delegates under AWT tree lock,
 326      * using a new separate lock to synchronize access to delegates may lead
 327      * deadlocks. Think of it as a 'virtual EDT'.
 328      *
 329      * @return DelegateLock
 330      */
 331     final Object getDelegateLock() {
 332         return getTarget().getTreeLock();
 333     }
 334 
 335     protected static final Object getPeerTreeLock() {
 336         return peerTreeLock;
 337     }
 338 
 339     public final T getTarget() {
 340         return target;
 341     }
 342 
 343     // Just a helper method
 344     // Returns the window peer or null if this is a window peer
 345     protected final LWWindowPeer getWindowPeer() {
 346         return windowPeer;
 347     }
 348 
 349     // Returns the window peer or 'this' if this is a window peer
 350     protected LWWindowPeer getWindowPeerOrSelf() {
 351         return getWindowPeer();
 352     }
 353 
 354     // Just a helper method
 355     protected final LWContainerPeer getContainerPeer() {
 356         return containerPeer;
 357     }
 358 
 359     // Just a helper method