this.settingsSetTimeline = GuiUtil.createShadowColorIndicatorTimeline(
settingsDS, ATTENTION_COLOR, Color.BLACK, Timeline.INDEFINITE);
// help view
final InnerShadow helpTextEffect = new InnerShadow();
helpTextEffect.setRadius(10d);
final Timeline helpTextTimeline = GuiUtil.createShadowColorIndicatorTimeline(
helpTextEffect, ATTENTION_COLOR, Color.BLACK.brighter(),
HELP_TEXT_COLOR_CHANGE_CYCLE_COUNT);
helpTextPane = new ScrollPane();
helpTextPane.getStyleClass().add("text-area-help");
//helpTextPane.setPrefHeight(40d);
helpTextPane.setPrefWidth(300d);
helpTextPane.setEffect(helpTextEffect);
helpText = new Label(RS.rbLabel(UGateUtil.HELP_TEXT_DEFAULT_KEY));
helpText.setWrapText(true);
helpText.setPrefWidth(helpTextPane.getPrefWidth() - 35d);
helpText.textProperty().addListener(new ChangeListener<String>() {
@Override
public void changed(ObservableValue<? extends String> observable, String oldValue,
String newValue) {
helpTextTimeline.stop();
if (newValue != null && newValue.length() > 0 &&
!newValue.equals(RS.rbLabel(UGateUtil.HELP_TEXT_DEFAULT_KEY))) {
helpTextTimeline.play();
}
}
});
helpTextPane.setContent(helpText);
defaultUserImg = RS.imgView(RS.IMG_LOCK);