Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,40 +1,40 @@
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.ui.*;
7 -
8 - public class SizeableFileUpload extends AbstractSizeableComposite implements HasName {
9 - private final FileUpload mFileUpload = new FileUpload();
10 -
11 - public SizeableFileUpload() {
12 - initWidget( new ConstrainingSizeableOuterLayers( mFileUpload, "LayoutSizeableFileUpload" ) );
13 - LLstretchableHorizontally();
14 - }
15 -
16 - public SizeableFileUpload style( String pStyleName ) {
17 - addStyleName( pStyleName );
18 - return this;
19 - }
20 -
21 - /**
22 - * Get the control's current value. This will be sent to the server when the
23 - * form is submitted.
24 - */
25 - public String getFilename() {
26 - return mFileUpload.getFilename();
27 - }
28 -
29 - /**
30 - * Get the control's name attribute. This will be sent to the server when
31 - * the form is submitted.
32 - */
33 - public String getName() {
34 - return mFileUpload.getName();
35 - }
36 -
37 - public void setName( String name ) {
38 - mFileUpload.setName( name );
39 - }
40 - }
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.ui.*;
7 +
8 + public class SizeableFileUpload extends AbstractSizeableComposite implements HasName {
9 + private final FileUpload mFileUpload = new FileUpload();
10 +
11 + public SizeableFileUpload() {
12 + initWidget( new ConstrainingSizeableOuterLayers( mFileUpload, "LayoutSizeableFileUpload" ) );
13 + LLstretchableHorizontally();
14 + }
15 +
16 + public SizeableFileUpload style( String pStyleName ) {
17 + addStyleName( pStyleName );
18 + return this;
19 + }
20 +
21 + /**
22 + * Get the control's current value. This will be sent to the server when the
23 + * form is submitted.
24 + */
25 + public String getFilename() {
26 + return mFileUpload.getFilename();
27 + }
28 +
29 + /**
30 + * Get the control's name attribute. This will be sent to the server when
31 + * the form is submitted.
32 + */
33 + public String getName() {
34 + return mFileUpload.getName();
35 + }
36 +
37 + public void setName( String name ) {
38 + mFileUpload.setName( name );
39 + }
40 + }