/** * svg color property */ public void setFill(Paint fill) { this.fill.setValue(fill); }
/** * Activate a ship. If the ship is not one of the players or not in port or not available * an {@link IllegalArgumentException} will be thrown * @param ship that is to be activated. * @throws IllegalArgumentException if the ship cannot be activated due to its non existence */ @Override public void activateShip(INavigableVessel ship){ activeShip.setValue(ship); }
/** * Set the default font used by the widget * * @param value * the value */ public final void setFont(Font value) { this.font.setValue(value); }
/** * svg color property */ public void setFill(Paint fill) { this.fill.setValue(fill); }
/** * @param toggleGroup ToggleGroup to be used internally */ public void setToggleGroup(final ToggleGroup toggleGroup) { this.toggleGroupProperty().setValue(toggleGroup); }
public final ObjectProperty<Number> glyphSizeProperty() { if (glyphSize == null) { glyphSize = new SimpleStyleableObjectProperty<>(StyleableProperties.GLYPH_SIZE, GlyphIcon.this, "glyphSize"); glyphSize.setValue(DEFAULT_ICON_SIZE); } return glyphSize; }
/** * Set a new font * * @param font * the new font */ public final void setFont(Font font) { fontProperty().setValue(font); }
/** * Sets the context of the current view in the flow of this context. * Normally an application will cal this method. The flow API manages all * contexts. * * @param currentViewContext */ public <T> void setCurrentViewContext(ViewContext<T> currentViewContext) { currentViewContextProperty().setValue(currentViewContext); }
/** * Removes the selection on the current field. * * @return Returns the current field to allow for chaining. */ public SingleSelectionField<V> deselect() { if (selection.get() != null) { selection.setValue(null); } return this; }
/** * Sets the value of the fade-in duration property. This should be set before calling PopOver.show(..). * * @param duration the requested fade-in duration * @see #fadeInDurationProperty() */ public final void setFadeInDuration(Duration duration) { fadeInDurationProperty().setValue(duration); }
/** * Sets the value of the fade-out duration property. * * @param duration the requested fade-out duration * @see #fadeOutDurationProperty() */ public final void setFadeOutDuration(Duration duration) { fadeOutDurationProperty().setValue(duration); }
@Override default void setOrderType(OrderType orderType) { document().orderTypeProperty().setValue(orderType); } }
/** * Stores the field's current value in its persistent value. This stores * the user's changes in the model. */ public void persist() { if (!isValid()) { return; } persistentSelection.setValue(selection.getValue()); fireEvent(FieldEvent.fieldPersistedEvent(this)); }
/** * Update the content of the details panel when the shown installation changes */ private void updateInstallation() { final InstallationDTO installation = getControl().getInstallation(); if (installation != null) { title.setValue(installation.getName()); installationPanel.setValue(installation.getNode()); } } }
@Override public void style(final ToggleButton button) { super.style(button); button.setSkin(new AquaToggleButtonSkin(button)); Skin<?> skin = button.getSkin(); if (skin != null && skin instanceof AquaButtonSkin) { ((AquaButtonSkin) skin).iconProperty().setValue(icon); } }
public TavernCaptainDialog(ICityPlayerProxyJFX city) { super(); this.city = city; this.currentShip = new SimpleObjectProperty<>(this, "currentShip", null); if (city.getActiveShip() instanceof IShip) { IShip ship = (IShip) city.getActiveShip(); currentShip.setValue(ship); } tavernState = city.getCity().getCityState().getTavernState(); } @PostConstruct
public TavernSailorDialog(ICityPlayerProxyJFX city) { super(); this.city = city; sailorState = city.getCity().getCityState().getTavernState().getSailors(); this.currentShip = new SimpleObjectProperty<>(this, "currentShip", null); if (city.getActiveShip() instanceof IShip) { IShip ship = (IShip) city.getActiveShip(); currentShip.setValue(ship); } } @PostConstruct