Change-Id: I19cc7e60a43a618f2b443f4b9d049b77d740b567
import com.vaadin.shared.ui.slider.SliderOrientation;
public class VSlider extends SimpleFocusablePanel implements Field,
- HasValue<Double> {
+ HasValue<Double>, SubPartAware {
public static final String CLASSNAME = "v-slider";
fireValueChanged();
}
}
+
+ @Override
+ public com.google.gwt.user.client.Element getSubPartElement(String subPart) {
+ if (subPart.equals("popup")) {
+ feedbackPopup.show();
+ return feedbackPopup.getElement();
+ }
+ return null;
+ }
+
+ @Override
+ public String getSubPartName(com.google.gwt.user.client.Element subElement) {
+ if (feedbackPopup.getElement().isOrHasChild(subElement)) {
+ return "popup";
+ }
+ return null;
+ }
}