本文整理汇总了Java中javafx.css.StyleableObjectProperty类的典型用法代码示例。如果您正苦于以下问题:Java StyleableObjectProperty类的具体用法?Java StyleableObjectProperty怎么用?Java StyleableObjectProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StyleableObjectProperty类属于javafx.css包,在下文中一共展示了StyleableObjectProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: extraPaddingProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
/**
* Extra padding to be used inside of the view above and below the full day
* entries. This is required as the regular padding is already used for
* other styling purposes.
*
* @return insets for extra padding
*/
public final ObjectProperty<Insets> extraPaddingProperty() {
if (extraPadding == null) {
extraPadding = new StyleableObjectProperty<Insets>(new Insets(2, 0,
9, 0)) {
@Override
public CssMetaData<AllDayView, Insets> getCssMetaData() {
return StyleableProperties.EXTRA_PADDING;
}
@Override
public Object getBean() {
return AllDayView.this;
}
@Override
public String getName() {
return "extraPadding"; //$NON-NLS-1$
}
};
}
return extraPadding;
}
示例2: WeatherSymbol
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public WeatherSymbol(final ConditionAndIcon CONDITION, final double SIZE, final Color COLOR) {
condition = new ObjectPropertyBase<ConditionAndIcon>(null == CONDITION ? ConditionAndIcon.NONE : CONDITION) {
@Override protected void invalidated() {
conditionIcon.setId(get().styleClass);
resize();
}
@Override public Object getBean() { return WeatherSymbol.this; }
@Override public String getName() { return "condition"; }
};
symbolColor = new StyleableObjectProperty<Color>(null == COLOR ? Tile.FOREGROUND : COLOR) {
@Override public Object getBean() { return WeatherSymbol.this; }
@Override public String getName() { return "symbolColor"; }
@Override public CssMetaData<? extends Styleable, Color> getCssMetaData() { return SYMBOL_COLOR; }
};
size = SIZE;
initGraphics();
registerListeners();
}
示例3: pageInformationAlignmentProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public final ObjectProperty<Side> pageInformationAlignmentProperty() {
if (pageInformationAlignment == null) {
pageInformationAlignment = new StyleableObjectProperty<Side>(Side.BOTTOM) {
@Override
protected void invalidated() {
getSkinnable().requestLayout();
}
@Override
public CssMetaData<Pagination, Side> getCssMetaData() {
return StyleableProperties.PAGE_INFORMATION_ALIGNMENT;
}
@Override
public Object getBean() {
return CPagenationSkin.this;
}
@Override
public String getName() {
return "pageInformationAlignment";
}
};
}
return pageInformationAlignment;
}
示例4: Card
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public Card(final String TITLE) {
getStylesheets().add(Card.class.getResource("card.css").toExternalForm());
cardColor = new StyleableObjectProperty<Color>(Color.web("#dae18f")) {
@Override protected void invalidated() { container.setBackground(new Background(new BackgroundFill(get(), CornerRadii.EMPTY, Insets.EMPTY))); }
@Override public Object getBean() { return Card.this; }
@Override public String getName() { return "cardColor"; }
@Override public CssMetaData<? extends Styleable, Color> getCssMetaData() { return CARD_COLOR; }
};
titleColor = new StyleableObjectProperty<Color>(Color.BLACK) {
@Override protected void invalidated() { titleText.setTextFill(get()); }
@Override public Object getBean() { return Card.this; }
@Override public String getName() { return "titleColor"; }
@Override public CssMetaData<? extends Styleable, Color> getCssMetaData() { return TITLE_COLOR; }
};
title = new StringPropertyBase(TITLE) {
@Override protected void invalidated() { titleText.setText(get()); }
@Override public Object getBean() { return Card.this; }
@Override public String getName() { return "title"; }
};
init();
initGraphics();
registerListeners();
}
示例5: iconCodeProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public StyleableObjectProperty<IconCode> iconCodeProperty() {
if (iconCode == null) {
iconCode = new StyleableObjectProperty<IconCode>() {
@Override
public Object getBean() {
return IconNode.this;
}
@Override
public String getName() {
return "iconCode";
}
@Override
public CssMetaData<? extends Styleable, IconCode> getCssMetaData() {
return IconNode.ICON_CODE_META_DATA;
}
};
}
return iconCode;
}
示例6: iconSizeProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public ObjectProperty<Number> iconSizeProperty() {
if (iconSize == null) {
iconSize = new StyleableObjectProperty<Number>(18) {
@Override
public Object getBean() {
return IconNode.this;
}
@Override
public String getName() {
return "iconSize";
}
@Override
public CssMetaData<? extends Styleable, Number> getCssMetaData() {
return IconNode.ICON_SIZE_META_DATA;
}
};
}
return iconSize;
}
示例7: createStyleableObjectProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public static <T> StyleableObjectProperty<T> createStyleableObjectProperty(Object bean, String name, CssMetaData<? extends Styleable, T> cssMetadata) {
return new StyleableObjectProperty<T>() {
@Override
public Object getBean() {
return bean;
}
@Override
public String getName() {
return name;
}
@Override
public CssMetaData<? extends Styleable, T> getCssMetaData() {
return cssMetadata;
}
};
}
示例8: iconProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public ObjectProperty<FontIcon> iconProperty() {
if (icon == null) {
icon = new StyleableObjectProperty<FontIcon>() {
@Override
public Object getBean() {
return FontIconView.this;
}
@Override
public String getName() {
return "icon";
}
@Override
public CssMetaData<? extends Styleable, FontIcon> getCssMetaData() {
return null;
}
};
}
return icon;
}
示例9: iconValueProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
@Nonnull
public ObjectProperty<FontAwesome> iconValueProperty() {
if (iconValue == null) {
iconValue = new StyleableObjectProperty<FontAwesome>() {
@Override
public CssMetaData getCssMetaData() {
return StyleableProperties.VALUE;
}
@Override
public Object getBean() {
return FontAwesomeIcon.this;
}
@Override
public String getName() {
return "iconValue";
}
};
iconValue.addListener(iconValueChangeListener);
}
return iconValue;
}
示例10: iconProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public final ObjectProperty<MacOSDefaultIcons> iconProperty() {
if (icon == null) {
icon = new StyleableObjectProperty<MacOSDefaultIcons>() {
@Override public CssMetaData<? extends Styleable, MacOSDefaultIcons> getCssMetaData() {
return StyleableProperties.ICON;
}
@Override public Object getBean() {
return AquaButtonSkin.this;
}
@Override public String getName() {
return "icon";
}
};
}
return icon;
}
示例11: aspectRatioProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public StyleableObjectProperty<Number> aspectRatioProperty() {
if (aspectRatio == null) {
aspectRatio = CssHelper.createProperty(StyleableProperties.ASPECT_RATIO, this);
aspectRatio.addListener(obs -> redraw());
}
return aspectRatio;
}
示例12: rangePositionProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public StyleableObjectProperty<HorizontalDirection> rangePositionProperty() {
if (rangePosition == null) {
rangePosition = CssHelper.createProperty(StyleableProperties.RANGE_POSITION, this);
rangePosition.addListener(obs -> redraw());
}
return rangePosition;
}
示例13: thresholdPositionProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public StyleableObjectProperty<HorizontalDirection> thresholdPositionProperty() {
if (thresholdPosition == null) {
thresholdPosition = CssHelper.createProperty(StyleableProperties.THRESHOLD_POSITION, this);
thresholdPosition.addListener(obs -> redraw());
}
return thresholdPosition;
}
示例14: bulletFillProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public final ObjectProperty<Paint> bulletFillProperty() {
if (null == bulletFill) {
bulletFill = new StyleableObjectProperty<Paint>(DEFAULT_BULLET_FILL) {
@Override public CssMetaData getCssMetaData() { return StyleableProperties.BULLET_FILL; }
@Override public Object getBean() { return this; }
@Override public String getName() { return "bulletFill"; }
};
}
return bulletFill;
}
示例15: seriesStrokeProperty
import javafx.css.StyleableObjectProperty; //导入依赖的package包/类
public final ObjectProperty<Paint> seriesStrokeProperty() {
if (null == seriesStroke) {
seriesStroke = new StyleableObjectProperty<Paint>(DEFAULT_SERIES_STROKE) {
@Override public CssMetaData getCssMetaData() { return StyleableProperties.SERIES_STROKE; }
@Override public Object getBean() { return this; }
@Override public String getName() { return "seriesStroke"; }
};
}
return seriesStroke;
}