1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.onemind.awtbridge.peer;
22
23 import java.awt.*;
24 import java.awt.peer.FramePeer;
25 import org.onemind.awtbridge.BridgeContext;
26 /***
27 * Frame peer
28 * @author TiongHiang Lee (thlee@onemindsoft.org)
29 * @version $Id: BridgeFramePeer.java,v 1.3 2005/03/12 23:03:11 thlee Exp $ $Name: awtbridge-1_0_0 $
30 */
31 public class BridgeFramePeer extends BridgeWindowPeer implements FramePeer
32 {
33
34 /*** state of the frame */
35 private int _state;
36
37 /***
38 * {@inheritDoc}
39 */
40 public BridgeFramePeer(Object componentObject, BridgeContext context)
41 {
42 super(componentObject, context);
43 }
44
45 /***
46 * {@inheritDoc}
47 */
48 public final void setTitle(String title)
49 {
50 setUpToDate(false);
51 }
52
53 /***
54 * set up-to-date false {@inheritDoc}
55 */
56 public final void setIconImage(Image im)
57 {
58 setUpToDate(false);
59 }
60
61 /***
62 * set up-to-date false {@inheritDoc}
63 */
64 public final void setMenuBar(MenuBar mb)
65 {
66 setUpToDate(false);
67 }
68
69 /***
70 * set up-to-date false {@inheritDoc}
71 */
72 public final void setResizable(boolean resizeable)
73 {
74 setUpToDate(false);
75 }
76
77 /***
78 * set up-to-date false {@inheritDoc}
79 */
80 public final void setState(int state)
81 {
82 setUpToDate(false);
83 _state = state;
84 }
85
86 /***
87 * return the state {@inheritDoc}
88 */
89 public final int getState()
90 {
91 return _state;
92 }
93
94 /***
95 * set up-to-date false {@inheritDoc}
96 */
97 public final void setMaximizedBounds(Rectangle bounds)
98 {
99 setUpToDate(false);
100 }
101
102 /***
103 * {@inheritDoc}
104 */
105 public void setBoundsPrivate(int x, int y, int width, int height)
106 {
107 setBounds(x, y, width, height);
108 }
109 }