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
|
package org.litesoft.GWT.client.widgets.datatables;
import com.google.gwt.gen2.table.client.property.*;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.ui.HasVerticalAlignment.*;
public class VerticalAlignmentProperty extends ColumnProperty
{
public static final VerticalAlignmentProperty MIDDLE = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_MIDDLE );
public static final VerticalAlignmentProperty TOP = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_TOP );
public static final VerticalAlignmentProperty BOTTOM = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_BOTTOM );
public static final VerticalAlignmentProperty DEFAULT = MIDDLE;
public static final Type<VerticalAlignmentProperty> TYPE = new Type<VerticalAlignmentProperty>()
{
@Override
public VerticalAlignmentProperty getDefault()
{
return DEFAULT;
}
};
private final VerticalAlignmentConstant mValue;
private VerticalAlignmentProperty( VerticalAlignmentConstant pValue )
{
mValue = pValue;
}
public VerticalAlignmentConstant getValue()
{
return mValue;
}
public static VerticalAlignmentProperty getInstance( VerticalAlignmentConstant pValue )
{
if ( pValue == HasVerticalAlignment.ALIGN_MIDDLE )
{
return MIDDLE;
}
if ( pValue == HasVerticalAlignment.ALIGN_TOP )
{
return TOP;
}
if ( pValue == HasVerticalAlignment.ALIGN_BOTTOM )
{
return BOTTOM;
}
throw new IllegalArgumentException( pValue.getVerticalAlignString() );
}
}
|
Revision |
Author |
Commited |
Message |
2
|
GeorgeS
|
Sun 07 Feb, 2010 12:50:58 +0000 |
|