< prev index next >

src/java.desktop/windows/classes/sun/awt/windows/WPrintDialogPeer.java

Print this page




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.windows;
  27 
  28 import java.awt.*;

  29 import java.awt.peer.DialogPeer;
  30 import java.awt.peer.ComponentPeer;
  31 import java.awt.dnd.DropTarget;
  32 import java.util.Vector;
  33 import sun.awt.CausedFocusEvent;
  34 import sun.awt.AWTAccessor;
  35 import sun.misc.ManagedLocalsThread;
  36 
  37 class WPrintDialogPeer extends WWindowPeer implements DialogPeer {
  38 
  39     static {
  40         initIDs();
  41     }
  42 
  43     private WComponentPeer parent;
  44 
  45     private Vector<WWindowPeer> blockedWindows = new Vector<>();
  46 
  47     WPrintDialogPeer(WPrintDialog target) {
  48         super(target);
  49     }
  50 
  51     @Override
  52     void create(WComponentPeer parent) {
  53         this.parent = parent;


 137     @Override
 138     public void reshape(int x, int y, int width, int height) {}
 139     public boolean handleEvent(Event e) { return false; }
 140     @Override
 141     public void setForeground(Color c) {}
 142     @Override
 143     public void setBackground(Color c) {}
 144     @Override
 145     public void setFont(Font f) {}
 146     @Override
 147     public void updateMinimumSize() {}
 148     @Override
 149     public void updateIconImages() {}
 150     public boolean requestFocus(boolean temporary, boolean focusedWindowChangeAllowed) {
 151         return false;
 152     }
 153 
 154     @Override
 155     public boolean requestFocus
 156          (Component lightweightChild, boolean temporary,
 157           boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
 158     {
 159 
 160         return false;
 161     }
 162 
 163     @Override
 164     public void updateFocusableWindowState() {}
 165     @Override
 166     void start() {}
 167     @Override
 168     public void beginValidate() {}
 169     @Override
 170     public void endValidate() {}
 171     void invalidate(int x, int y, int width, int height) {}
 172     @Override
 173     public void addDropTarget(DropTarget dt) {}
 174     @Override
 175     public void removeDropTarget(DropTarget dt) {}
 176     @Override
 177     public void setZOrder(ComponentPeer above) {}




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.windows;
  27 
  28 import java.awt.*;
  29 import java.awt.event.FocusEvent.Cause;
  30 import java.awt.peer.DialogPeer;
  31 import java.awt.peer.ComponentPeer;
  32 import java.awt.dnd.DropTarget;
  33 import java.util.Vector;

  34 import sun.awt.AWTAccessor;
  35 import sun.misc.ManagedLocalsThread;
  36 
  37 class WPrintDialogPeer extends WWindowPeer implements DialogPeer {
  38 
  39     static {
  40         initIDs();
  41     }
  42 
  43     private WComponentPeer parent;
  44 
  45     private Vector<WWindowPeer> blockedWindows = new Vector<>();
  46 
  47     WPrintDialogPeer(WPrintDialog target) {
  48         super(target);
  49     }
  50 
  51     @Override
  52     void create(WComponentPeer parent) {
  53         this.parent = parent;


 137     @Override
 138     public void reshape(int x, int y, int width, int height) {}
 139     public boolean handleEvent(Event e) { return false; }
 140     @Override
 141     public void setForeground(Color c) {}
 142     @Override
 143     public void setBackground(Color c) {}
 144     @Override
 145     public void setFont(Font f) {}
 146     @Override
 147     public void updateMinimumSize() {}
 148     @Override
 149     public void updateIconImages() {}
 150     public boolean requestFocus(boolean temporary, boolean focusedWindowChangeAllowed) {
 151         return false;
 152     }
 153 
 154     @Override
 155     public boolean requestFocus
 156          (Component lightweightChild, boolean temporary,
 157           boolean focusedWindowChangeAllowed, long time, Cause cause)
 158     {
 159 
 160         return false;
 161     }
 162 
 163     @Override
 164     public void updateFocusableWindowState() {}
 165     @Override
 166     void start() {}
 167     @Override
 168     public void beginValidate() {}
 169     @Override
 170     public void endValidate() {}
 171     void invalidate(int x, int y, int width, int height) {}
 172     @Override
 173     public void addDropTarget(DropTarget dt) {}
 174     @Override
 175     public void removeDropTarget(DropTarget dt) {}
 176     @Override
 177     public void setZOrder(ComponentPeer above) {}


< prev index next >