Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.litesoft.GWT.client.widgets.nonpublic;

import org.litesoft.GWT.client.widgets.*;

public class CelledGWTButtonFactory implements GWTButtonFactory {
    @Override
    public Button create( DefButtonNamedTypedFactory pButtonDef ) {
        switch ( pButtonDef.getForm().getBasicForm() ) {
            case Text:
                return new TextCellButton( (DefButtonNamedTypedFactoryText) pButtonDef, //
                                           (DefButtonNamedTypedFactory.Form.BigText == pButtonDef.getForm()) ? 11 : 6 );
            case Image:
                return new ImageCellButton( (DefButtonNamedTypedFactoryImage) pButtonDef, 6 );
            default:
                throw new IllegalStateException( "Unable to create Button, Unrecognized Type: " + pButtonDef.getType() );
        }
    }
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/CelledGWTButtonFactory.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

144 Diff Diff GeorgeS picture GeorgeS Mon 14 Mar, 2011 03:42:34 +0000
142 Diff Diff GeorgeS picture GeorgeS Sun 13 Mar, 2011 23:01:57 +0000
141 Diff Diff GeorgeS picture GeorgeS Sun 13 Mar, 2011 21:13:37 +0000
138 Diff Diff GeorgeS picture GeorgeS Thu 10 Mar, 2011 21:00:53 +0000
137 Diff Diff GeorgeS picture GeorgeS Thu 10 Mar, 2011 15:22:37 +0000
133 Diff Diff GeorgeS picture GeorgeS Wed 09 Mar, 2011 00:33:28 +0000
125 GeorgeS picture GeorgeS Sun 06 Mar, 2011 22:45:45 +0000