Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/RadioButtonInputField.java

Diff revisions: vs.
  @@ -13,30 +13,29 @@
13 13
14 14 private String group;
15 15
16 - public String getGroup()
17 - {
16 + public String getGroup() {
18 17 return group;
19 18 }
20 19
21 - public void setGroup( String name) {
22 - assertBuildMode("setGroup");
20 + public void setGroup( String name ) {
21 + assertBuildMode( "setGroup" );
23 22 setValidatedGroup( Validate.noEmptyIdentifier( "group", name ) );
24 23 }
25 24
26 - public final RadioButtonInputField group(String name) {
27 - assertBuildMode("group");
25 + public final RadioButtonInputField group( String name ) {
26 + assertBuildMode( "group" );
28 27 setValidatedGroup( Validate.noEmptyIdentifier( "group", name ) );
29 28 return inheritanceLeaf();
30 29 }
31 30
32 - protected void setValidatedGroup(String name) {
31 + protected void setValidatedGroup( String name ) {
33 32 group = name;
34 33 }
35 34
36 35 @Override
37 36 protected InputFieldAccessor<Boolean> createBaseAccessor() {
38 - RadioButton field = new OurRadioButton(Validate.noEmpty( "group", group ));
39 - return createBaseAccessor(new RadioButtonValueAdapter(field), field, STYLE, field);
37 + RadioButton field = new OurRadioButton( Validate.noEmpty( "group", group ) );
38 + return createBaseAccessor( new RadioButtonValueAdapter( field ), field, STYLE, field );
40 39 }
41 40
42 41 private static class OurRadioButton extends RadioButton {
  @@ -44,8 +43,8 @@
44 43 // For NameToID
45 44 private String name;
46 45
47 - public OurRadioButton(String groupName) {
48 - super(groupName);
46 + public OurRadioButton( String groupName ) {
47 + super( groupName );
49 48 }
50 49
51 50 @Override
  @@ -54,7 +53,7 @@
54 53 }
55 54
56 55 @Override
57 - public void setName(String name) {
56 + public void setName( String name ) {
58 57 this.name = name;
59 58 }
60 59 }