Setting { public void unmark() { if (!hasDescription()) { throw new UnsupportedOperationException( "Only Fields can be unmarked, since they have a description." ); } if (marked) { SimpleControl renderer = (SimpleControl) ((Field) getElement()).getRenderer(); Node markNode = renderer.getFieldLabel(); markNode.getStyleClass().remove(MARKED_STYLE_CLASS); markNode.removeEventHandler(MouseEvent.MOUSE_EXITED, unmarker); marked = !marked; } } private  Setting(String description, E element, P value); static Setting of(String description, BooleanProperty property); static Setting of(String description, IntegerProperty property); static Setting of(String description, DoubleProperty property); static Setting of(
      String description, DoubleProperty property, double min, double max, int precision); static Setting of(String description, IntegerProperty property, int min, int max); static Setting of(String description, StringProperty property); static Setting of(
      String description, ListProperty<P> items, ObjectProperty<P> selection); static Setting of(
      String description, ObservableList<P> items, ObjectProperty<P> selection); static Setting of(
      String description, ListProperty<P> items, ListProperty<P> selections); static Setting of(
      String description, ObservableList<P> items, ListProperty<P> selections); static Setting of(
      String description, F field, P property); static Setting of(N node); static Setting of(String description, ObjectProperty<Color> colorProperty); static Setting of(String description,
                           ObjectProperty<File> fileProperty,
                           boolean directory); static Setting of(String description,
                           ObjectProperty<File> fileProperty,
                           File initialDirectory,
                           boolean directory); static Setting of(String description,
                           ObjectProperty<File> fileProperty,
                           String buttonText,
                           File initialDirectory,
                           boolean directory); @SafeVarargs final Setting validate(Validator... newValue); void mark(); void unmark(); String getDescription(); P valueProperty(); E getElement(); void saveSettingValue(StorageHandler storageHandler); void loadSettingValue(StorageHandler storageHandler); void addToBreadcrumb(String breadCrumb); boolean hasValue(); boolean hasDescription(); String getBreadcrumb(); StringProperty breadcrumbProperty(); void setBreadcrumb(String breadcrumb); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); Setting customKey(String key); static final String MARKED_STYLE_CLASS; }
@Test public void unmark() { }