JobPanelDescriptionBaseImpl.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:JttDesktop 作者:
/**
 * 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() );
   }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号