modules/controls/src/main/java/javafx/scene/control/ScrollBar.java
Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization
*** 23,36 ****
* questions.
*/
package javafx.scene.control;
import com.sun.javafx.util.Utils;
! import com.sun.javafx.css.converters.EnumConverter;
! import com.sun.javafx.css.converters.SizeConverter;
! import com.sun.javafx.scene.control.skin.ScrollBarSkin;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.value.WritableValue;
--- 23,37 ----
* questions.
*/
package javafx.scene.control;
+ import com.sun.javafx.scene.control.Properties;
import com.sun.javafx.util.Utils;
! import javafx.css.converter.EnumConverter;
! import javafx.css.converter.SizeConverter;
! import javafx.scene.control.skin.ScrollBarSkin;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.value.WritableValue;
*** 84,95 ****
*
*
*/
public ScrollBar() {
// TODO : we need to ensure we have a width and height
! setWidth(ScrollBarSkin.DEFAULT_WIDTH);
! setHeight(ScrollBarSkin.DEFAULT_LENGTH);
getStyleClass().setAll(DEFAULT_STYLE_CLASS);
setAccessibleRole(AccessibleRole.SCROLL_BAR);
// focusTraversable is styleable through css. Calling setFocusTraversable
// makes it look to css like the user set the value and css will not
// override. Initializing focusTraversable by calling applyStyle with null
--- 85,96 ----
*
*
*/
public ScrollBar() {
// TODO : we need to ensure we have a width and height
! setWidth(Properties.DEFAULT_WIDTH);
! setHeight(Properties.DEFAULT_LENGTH);
getStyleClass().setAll(DEFAULT_STYLE_CLASS);
setAccessibleRole(AccessibleRole.SCROLL_BAR);
// focusTraversable is styleable through css. Calling setFocusTraversable
// makes it look to css like the user set the value and css will not
// override. Initializing focusTraversable by calling applyStyle with null