/**
* Method to update the {@link Color} of a {@link Label}.
* @param coloursMap the {@link ObservableMap} of {@link Color}s to use.
* @param configurationProperty the {@link ObjectProperty} from the {@link BuildWallConfiguration}.
* @param textLabel the {@link Label} to update.
*/
private void updateColour(
ObservableMap< BuildResultStatus, Color > coloursMap,
ObjectProperty< Color > configurationProperty,
Label textLabel
){
Color themeColor = coloursMap.get( job.getBuildStatus() );
if ( themeColor != null ) {
textLabel.textFillProperty().set( themeColor );
} else {
textLabel.textFillProperty().set( configurationProperty.get() );
}
}
JobPanelDescriptionBaseImpl.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:JttDesktop
作者:
评论列表
文章目录