1 /*
2 * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
775 styleables.add(SHOW_TICK_MARKS);
776 styleables.add(SNAP_TO_TICKS);
777 styleables.add(MAJOR_TICK_UNIT);
778 styleables.add(MINOR_TICK_COUNT);
779 styleables.add(ORIENTATION);
780
781 STYLEABLES = Collections.unmodifiableList(styleables);
782 }
783 }
784
785 /**
786 * @return The CssMetaData associated with this class, which may include the
787 * CssMetaData of its super classes.
788 * @since JavaFX 8.0
789 */
790 public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {
791 return StyleableProperties.STYLEABLES;
792 }
793
794 /**
795 * RT-19263
796 * @treatAsPrivate implementation detail
797 * @deprecated This is an experimental API that is not intended for general use and is subject to change in future versions
798 * @since JavaFX 8.0
799 */
800 @Deprecated
801 @Override protected List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {
802 return getClassCssMetaData();
803 }
804
805 private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE =
806 PseudoClass.getPseudoClass("vertical");
807 private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE =
808 PseudoClass.getPseudoClass("horizontal");
809
810
811
812 /***************************************************************************
813 * *
814 * Accessibility handling *
815 * *
816 **************************************************************************/
817
818 @Override
819 public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) {
820 switch (attribute) {
|
1 /*
2 * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
775 styleables.add(SHOW_TICK_MARKS);
776 styleables.add(SNAP_TO_TICKS);
777 styleables.add(MAJOR_TICK_UNIT);
778 styleables.add(MINOR_TICK_COUNT);
779 styleables.add(ORIENTATION);
780
781 STYLEABLES = Collections.unmodifiableList(styleables);
782 }
783 }
784
785 /**
786 * @return The CssMetaData associated with this class, which may include the
787 * CssMetaData of its super classes.
788 * @since JavaFX 8.0
789 */
790 public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {
791 return StyleableProperties.STYLEABLES;
792 }
793
794 /**
795 * {@inheritDoc}
796 * @since JavaFX 8.0
797 */
798 @Override protected List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {
799 return getClassCssMetaData();
800 }
801
802 private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE =
803 PseudoClass.getPseudoClass("vertical");
804 private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE =
805 PseudoClass.getPseudoClass("horizontal");
806
807
808
809 /***************************************************************************
810 * *
811 * Accessibility handling *
812 * *
813 **************************************************************************/
814
815 @Override
816 public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) {
817 switch (attribute) {
|