View Javadoc

1   /*
2    * Copyright (C) 2004 TiongHiang Lee
3    *
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not,  write to the Free Software
16   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17   *
18   * Email: thlee@onemindsoft.org
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 }