Java Code Examples for javafx.scene.control.TextField#clear()

The following examples show how to use javafx.scene.control.TextField#clear() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColourBackground.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
@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);
}
 
Example 2
Source File: ImageBackground.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
@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);
}
 
Example 3
Source File: VideoBackground.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
@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();
}