< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/Skinnable.java

Print this page




  29 
  30 /**
  31  * <p>
  32  * The Skinnable interface is implemented by the {@link Control} class,
  33  * and therefore is implemented by all Control implementations.
  34  * <p>
  35  * @since JavaFX 2.0
  36  */
  37 public interface Skinnable {
  38     /**
  39      * Skin is responsible for rendering this {@code Control}. From the
  40      * perspective of the {@code Control}, the {@code Skin} is a black box.
  41      * It listens and responds to changes in state in a {@code Control}.
  42      * <p>
  43      * There is a one-to-one relationship between a {@code Control} and its
  44      * {@code Skin}. Every {@code Skin} maintains a back reference to the
  45      * {@code Control}.
  46      * <p>
  47      * A skin may be null.
  48      *

  49      */
  50     public ObjectProperty<Skin<?>> skinProperty();
  51 
  52     /**
  53      * Sets the skin that will render this {@link Control}

  54      */
  55     public void setSkin(Skin<?> value);
  56 
  57     /**
  58      * Returns the skin that renders this {@link Control}

  59      */
  60     public Skin<?> getSkin();
  61 }


  29 
  30 /**
  31  * <p>
  32  * The Skinnable interface is implemented by the {@link Control} class,
  33  * and therefore is implemented by all Control implementations.
  34  * <p>
  35  * @since JavaFX 2.0
  36  */
  37 public interface Skinnable {
  38     /**
  39      * Skin is responsible for rendering this {@code Control}. From the
  40      * perspective of the {@code Control}, the {@code Skin} is a black box.
  41      * It listens and responds to changes in state in a {@code Control}.
  42      * <p>
  43      * There is a one-to-one relationship between a {@code Control} and its
  44      * {@code Skin}. Every {@code Skin} maintains a back reference to the
  45      * {@code Control}.
  46      * <p>
  47      * A skin may be null.
  48      *
  49      * @return the skin property for this control
  50      */
  51     public ObjectProperty<Skin<?>> skinProperty();
  52 
  53     /**
  54      * Sets the skin that will render this {@link Control}
  55      * @param value the skin value for this control
  56      */
  57     public void setSkin(Skin<?> value);
  58 
  59     /**
  60      * Returns the skin that renders this {@link Control}
  61      * @return the skin for this control
  62      */
  63     public Skin<?> getSkin();
  64 }
< prev index next >