import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.dom.client.Style.Overflow;
import com.google.gwt.dom.client.Style.Unit;
-import com.google.gwt.dom.client.Style.Visibility;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
// Hide initially
smaller.getStyle().setDisplay(Display.NONE);
bigger.getStyle().setDisplay(Display.NONE);
- handle.getStyle().setVisibility(Visibility.HIDDEN);
sinkEvents(Event.MOUSEEVENTS | Event.ONMOUSEWHEEL | Event.KEYEVENTS
| Event.FOCUSEVENTS | Event.TOUCHEVENTS);
// clear unnecessary opposite handle attribute
handle.getStyle().clearProperty(oppositeHandleAttribute);
-
- // Restore visibility
- handle.getStyle().setVisibility(Visibility.VISIBLE);
}
@Override