< prev index next >

modules/graphics/src/main/java/javafx/css/Styleable.java

Print this page




  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
  23  * questions.
  24  */
  25 
  26 package javafx.css;
  27 
  28 import java.util.List;
  29 
  30 import javafx.collections.ObservableList;
  31 import javafx.collections.ObservableSet;
  32 import javafx.scene.Node;
  33 
  34 /**
  35  * Styleable comprises the minimal interface required for an object to be styled by CSS.
  36  * @see <a href="../scene/doc-files/cssref.html">CSS Reference Guide</a>.
  37  * @since JavaFX 8.0
  38  */
  39 public interface Styleable {
  40 
  41     /**
  42      * The type of this {@code Styleable} that is to be used in selector matching.
  43      * This is analogous to an "element" in HTML.
  44      * (<a href="http://www.w3.org/TR/CSS2/selector.html#type-selectors">CSS Type Selector</a>).
  45      */
  46     String getTypeSelector();
  47 
  48     /**
  49      * The id of this {@code Styleable}. This simple string identifier is useful for
  50      * finding a specific Node within the scene graph. While the id of a Node
  51      * should be unique within the scene graph, this uniqueness is not enforced.
  52      * This is analogous to the "id" attribute on an HTML element
  53      * (<a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">CSS ID Specification</a>).
  54      * <p>
  55      * For example, if a Node is given the id of "myId", then the lookup method can
  56      * be used to find this node as follows: <code>scene.lookup("#myId");</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
  23  * questions.
  24  */
  25 
  26 package javafx.css;
  27 
  28 import java.util.List;
  29 
  30 import javafx.collections.ObservableList;
  31 import javafx.collections.ObservableSet;
  32 import javafx.scene.Node;
  33 
  34 /**
  35  * Styleable comprises the minimal interface required for an object to be styled by CSS.
  36  * @see <a href="../scene/doc-files/cssref.html">CSS Reference Guide</a>
  37  * @since JavaFX 8.0
  38  */
  39 public interface Styleable {
  40 
  41     /**
  42      * The type of this {@code Styleable} that is to be used in selector matching.
  43      * This is analogous to an "element" in HTML.
  44      * (<a href="http://www.w3.org/TR/CSS2/selector.html#type-selectors">CSS Type Selector</a>).
  45      */
  46     String getTypeSelector();
  47 
  48     /**
  49      * The id of this {@code Styleable}. This simple string identifier is useful for
  50      * finding a specific Node within the scene graph. While the id of a Node
  51      * should be unique within the scene graph, this uniqueness is not enforced.
  52      * This is analogous to the "id" attribute on an HTML element
  53      * (<a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">CSS ID Specification</a>).
  54      * <p>
  55      * For example, if a Node is given the id of "myId", then the lookup method can
  56      * be used to find this node as follows: <code>scene.lookup("#myId");</code>.


< prev index next >