下面列出了javafx.scene.control.TextField#clear ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public void setThemeForm(ColorPicker backgroundColorPicker, ComboBox<String> backgroundTypeSelect, TextField backgroundLocation, TextField backgroundVidLocation, Slider vidHueSlider, CheckBox vidStretchCheckbox) {
backgroundTypeSelect.getSelectionModel().select(LabelGrabber.INSTANCE.getLabel("color.theme.label"));
backgroundColorPicker.setValue(getColour());
backgroundLocation.clear();
backgroundVidLocation.clear();
vidHueSlider.setValue(0);
vidStretchCheckbox.setSelected(false);
}
@Override
public void setThemeForm(ColorPicker backgroundColorPicker, ComboBox<String> backgroundTypeSelect, TextField backgroundImgLocation, TextField backgroundVidLocation, Slider vidHueSlider, CheckBox vidStretchCheckbox) {
backgroundTypeSelect.getSelectionModel().select(LabelGrabber.INSTANCE.getLabel("image.theme.label"));
backgroundImgLocation.setText(imageName);
backgroundColorPicker.setValue(Color.BLACK);
backgroundColorPicker.fireEvent(new ActionEvent());
backgroundVidLocation.clear();
vidHueSlider.setValue(0);
vidStretchCheckbox.setSelected(false);
}
@Override
public void setThemeForm(ColorPicker backgroundColorPicker, ComboBox<String> backgroundTypeSelect, TextField backgroundImgLocation, TextField backgroundVidLocation, Slider vidHueSlider, CheckBox vidStretchCheckbox) {
backgroundTypeSelect.getSelectionModel().select(LabelGrabber.INSTANCE.getLabel("video.theme.label"));
backgroundVidLocation.setText(getVideoFile().getName());
vidHueSlider.setValue(hue);
vidStretchCheckbox.setSelected(stretch);
backgroundColorPicker.setValue(Color.BLACK);
backgroundColorPicker.fireEvent(new ActionEvent());
backgroundImgLocation.clear();
}