Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/SizeableFrame.java

Diff revisions: vs.
  @@ -1,61 +1,61 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.GWT.client.widgets.nonpublic.*;
5 -
6 - import com.google.gwt.user.client.*;
7 - import com.google.gwt.user.client.ui.*;
8 -
9 - public class SizeableFrame extends AbstractSizeableComposite {
10 - protected Frame mFrame = new Frame();
11 -
12 - public SizeableFrame() {
13 - mFrame.setWidth( "200" );
14 - mFrame.setHeight( "160" );
15 - initWidget( new ConstrainingSizeableOuterLayers( mFrame, "LayoutSizeableFrame" ) );
16 - LLstretchable();
17 - }
18 -
19 - public SizeableFrame( String url ) {
20 - this();
21 -
22 - setUrl( url );
23 - }
24 -
25 - public SizeableFrame style( String pStyleName ) {
26 - addStyleName( pStyleName );
27 - return this;
28 - }
29 -
30 - public void setFrameBorder( boolean pEnable ) {
31 - DOM.setElementAttribute( mFrame.getElement(), "frameBorder", pEnable ? "1" : "0" );
32 - }
33 -
34 - public void fixWidth( int pWidth ) {
35 - mFrame.setWidth( "" + pWidth );
36 - getWidthHelper().setStretchable( false );
37 - }
38 -
39 - public void fixHeight( int pHeight ) {
40 - mFrame.setHeight( "" + pHeight );
41 - getHeightHelper().setStretchable( false );
42 - }
43 -
44 - /**
45 - * Gets the URL of the frame's resource.
46 - *
47 - * @return the frame's URL
48 - */
49 - public String getUrl() {
50 - return mFrame.getUrl();
51 - }
52 -
53 - /**
54 - * Sets the URL of the resource to be displayed within the frame.
55 - *
56 - * @param url the frame's new URL
57 - */
58 - public void setUrl( String url ) {
59 - mFrame.setUrl( url );
60 - }
61 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.GWT.client.widgets.nonpublic.*;
5 +
6 + import com.google.gwt.user.client.*;
7 + import com.google.gwt.user.client.ui.*;
8 +
9 + public class SizeableFrame extends AbstractSizeableComposite {
10 + protected Frame mFrame = new Frame();
11 +
12 + public SizeableFrame() {
13 + mFrame.setWidth( "200" );
14 + mFrame.setHeight( "160" );
15 + initWidget( new ConstrainingSizeableOuterLayers( mFrame, "LayoutSizeableFrame" ) );
16 + LLstretchable();
17 + }
18 +
19 + public SizeableFrame( String url ) {
20 + this();
21 +
22 + setUrl( url );
23 + }
24 +
25 + public SizeableFrame style( String pStyleName ) {
26 + addStyleName( pStyleName );
27 + return this;
28 + }
29 +
30 + public void setFrameBorder( boolean pEnable ) {
31 + DOM.setElementAttribute( mFrame.getElement(), "frameBorder", pEnable ? "1" : "0" );
32 + }
33 +
34 + public void fixWidth( int pWidth ) {
35 + mFrame.setWidth( "" + pWidth );
36 + getWidthHelper().setStretchable( false );
37 + }
38 +
39 + public void fixHeight( int pHeight ) {
40 + mFrame.setHeight( "" + pHeight );
41 + getHeightHelper().setStretchable( false );
42 + }
43 +
44 + /**
45 + * Gets the URL of the frame's resource.
46 + *
47 + * @return the frame's URL
48 + */
49 + public String getUrl() {
50 + return mFrame.getUrl();
51 + }
52 +
53 + /**
54 + * Sets the URL of the resource to be displayed within the frame.
55 + *
56 + * @param url the frame's new URL
57 + */
58 + public void setUrl( String url ) {
59 + mFrame.setUrl( url );
60 + }
61 + }