Subversion Repository Public Repository

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
package com.temp.client.foundation.widget.input.support;

import com.google.gwt.event.dom.client.*;
import com.google.gwt.event.shared.*;
import com.temp.client.foundation.widget.*;
import com.temp.client.foundation.widget.input.fieldsupport.*;
import com.temp.shared.utils.*;

public class OptionBoxBaseValueAdapter<T> implements InputWidgetValueAdapter<T> {

    private final OptionBox<T> inputWidget;

    public OptionBoxBaseValueAdapter( OptionBox<T> inputWidget ) {
        Validate.notNull( "inputWidget", this.inputWidget = inputWidget );
    }

    @Override
    public HandlerRegistration addChangeHandler( ChangeHandler handler ) {
        return inputWidget.addChangeHandler( handler );
    }

    @Override
    public T getValue() {
        return inputWidget.getSelected();
    }

    @Override
    public void setValue( T value ) {
        inputWidget.setSelected( value );
    }
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/support/OptionBoxBaseValueAdapter.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

630 GeorgeS picture GeorgeS Tue 17 Apr, 2012 20:22:17 +0000