当前位置: 首页>>代码示例>>Java>>正文


Java StyleableObjectProperty类代码示例

本文整理汇总了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;
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:32,代码来源:AllDayView.java

示例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();
}
 
开发者ID:HanSolo,项目名称:tilesfx,代码行数:19,代码来源:WeatherSymbol.java

示例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;
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:27,代码来源:CPagenationSkin.java

示例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();
}
 
开发者ID:HanSolo,项目名称:cardnav,代码行数:24,代码来源:Card.java

示例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;
}
 
开发者ID:jIconFont,项目名称:jiconfont-javafx,代码行数:22,代码来源:IconNode.java

示例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;
}
 
开发者ID:jIconFont,项目名称:jiconfont-javafx,代码行数:22,代码来源:IconNode.java

示例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;
        }
    };
}
 
开发者ID:dejv78,项目名称:j.commons,代码行数:21,代码来源:CssHelper.java

示例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;
}
 
开发者ID:guigarage,项目名称:IconFontFX,代码行数:22,代码来源:FontIconView.java

示例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;
}
 
开发者ID:griffon-plugins,项目名称:griffon-fontawesome-plugin,代码行数:24,代码来源:FontAwesomeIcon.java

示例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;
}
 
开发者ID:cis422s14team5,项目名称:WatchlistPro,代码行数:20,代码来源:AquaButtonSkin.java

示例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;
}
 
开发者ID:beryx,项目名称:jfxgauge,代码行数:8,代码来源:ThermometerSkin.java

示例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;
}
 
开发者ID:beryx,项目名称:jfxgauge,代码行数:8,代码来源:ThermometerSkin.java

示例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;
}
 
开发者ID:beryx,项目名称:jfxgauge,代码行数:8,代码来源:ThermometerSkin.java

示例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;
}
 
开发者ID:Simego,项目名称:FXImgurUploader,代码行数:11,代码来源:SimpleLineChart.java

示例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;
}
 
开发者ID:Simego,项目名称:FXImgurUploader,代码行数:11,代码来源:SimpleLineChart.java


注:本文中的javafx.css.StyleableObjectProperty类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。