litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
package org.litesoft.mgwt.client;
public class Button extends com.googlecode.mgwt.ui.client.widget.Button
{
public Button( String text )
{
super( text );
}
public Button round()
{
setRound( true );
return this;
}
public Button small()
{
setSmall( true );
return this;
}
public Button important()
{
setImportant( true );
return this;
}
public Button confirm()
{
setConfirm( true );
return this;
}
public Button of( ButtonType pType )
{
if ( pType != null )
{
switch ( pType.getBasicType() )
{
case NORMAL:
break;
case IMPORTANT:
important();
break;
case CONFIRM:
confirm();
break;
default:
throw new RuntimeException( "how did we get here?" );
}
setRound( pType.isRound() );
setSmall( pType.isSmall() );
}
return this;
}
}
|
Revision |
Author |
Commited |
Message |
739
|
GeorgeS
|
Tue 26 Jun, 2012 00:27:19 +0000 |
|