Java Code Examples for com.dlsc.preferencesfx.model.Category#of()

The following examples show how to use com.dlsc.preferencesfx.model.Category#of() . 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: OptionsServerSettingsPanel.java    From Quelea with GNU General Public License v3.0 6 votes vote down vote up
public Category getServerTab() {
    return Category.of(LabelGrabber.INSTANCE.getLabel("server.settings.heading"),
            new ImageView(new Image("file:icons/serversettingsicon.png")),
            Group.of(LabelGrabber.INSTANCE.getLabel("mobile.lyrics.heading"),
                    Setting.of(LabelGrabber.INSTANCE.getLabel("use.mobile.lyrics.label"), useMobileLyricsProperty)
                            .customKey(useMobLyricsKey),
                    Setting.of(LabelGrabber.INSTANCE.getLabel("port.number.label"), mobileLyricsField, lyricsPortNumberProperty)
                            .customKey(mobLyricsPortKey)
            ),
            Group.of(LabelGrabber.INSTANCE.getLabel("mobile.remote.heading"),
                    Setting.of(LabelGrabber.INSTANCE.getLabel("use.remote.control.label"), useMobileRemoteProperty)
                            .customKey(useRemoteControlKey),
                    Setting.of(LabelGrabber.INSTANCE.getLabel("port.number.label"), remoteField, remotePortNumberProperty)
                            .customKey(remoteControlPortKey),
                    Setting.of(LabelGrabber.INSTANCE.getLabel("remote.control.password"), passwordProperty)
                            .customKey(remoteControlPasswordKey)
            )
    );
}
 
Example 2
Source File: OptionsPresentationPanel.java    From Quelea with GNU General Public License v3.0 6 votes vote down vote up
public Category getPresentationsTab() {
    StringField directoryFieldOOField = Field.ofStringType(directoryChooserOOProperty).render(
            new DirectorySelectorPreference(LabelGrabber.INSTANCE.getLabel("browse"), null));
    bindings.put(directoryFieldOOField, useOOProperty.not());

    if (!Utils.isLinux()) {
        StringField directoryFieldPPField = Field.ofStringType(directoryChooserPPProperty).render(
                new DirectorySelectorPreference(LabelGrabber.INSTANCE.getLabel("browse"), null));
        bindings.put(directoryFieldPPField, usePPProperty.not());

        return Category.of(LabelGrabber.INSTANCE.getLabel("presentation.options.heading"), new ImageView(new Image("file:icons/presentationssettingsicon.png")),
                Setting.of(LabelGrabber.INSTANCE.getLabel("use.oo.label"), useOOProperty).customKey(useOoKey),
                Setting.of(LabelGrabber.INSTANCE.getLabel("oo.path"), directoryFieldOOField, directoryChooserOOProperty).customKey(ooPathKey),
                Setting.of(LabelGrabber.INSTANCE.getLabel("use.pp.label"), usePPProperty).customKey(usePpKey),
                Setting.of(LabelGrabber.INSTANCE.getLabel("pp.path"), directoryFieldPPField, directoryChooserPPProperty).customKey(ppPathKey)
        );
    } else
        return Category.of(LabelGrabber.INSTANCE.getLabel("presentation.options.heading"), new ImageView(new Image("file:icons/presentationssettingsicon.png")),
                Setting.of(LabelGrabber.INSTANCE.getLabel("use.oo.label"), useOOProperty).customKey(useOoKey),
                Setting.of(LabelGrabber.INSTANCE.getLabel("oo.path"), directoryFieldOOField, directoryChooserOOProperty).customKey(ooPathKey)
        );
}
 
Example 3
Source File: OptionsRecordingPanel.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
public Category getRecordingsTab() {
    bindings.put(useConvertSetting.getField(), new SimpleBooleanProperty(hasVLC));

    return Category.of(LabelGrabber.INSTANCE.getLabel("recordings.options.heading"), new ImageView(new Image("file:icons/recordingssettingsicon.png")),
            Setting.of(LabelGrabber.INSTANCE.getLabel("recordings.path"), recordingsDirectoryField, recordingsDirectoryChooserProperty).customKey(recPathKey),
            useConvertSetting
    );
}
 
Example 4
Source File: OptionsDisplaySetupPanel.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
Category getDisplaySetupTab() {
    return Category.of(LabelGrabber.INSTANCE.getLabel("display.options.heading"), new ImageView(new Image("file:icons/monitorsettingsicon.png")), //, new ImageView(new Image("file:icons/monitorsettingsicon.png")),
            controlScreen.getGroup(),
            projectorScreen.getGroup(),
            stageScreen.getGroup()
    );
}
 
Example 5
Source File: OptionsStageViewPanel.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
public Category getStageViewTab() {
    return Category.of(LabelGrabber.INSTANCE.getLabel("stage.options.heading"), new ImageView(new Image("file:icons/stageviewsettingsicon.png")),
            Setting.of(LabelGrabber.INSTANCE.getLabel("stage.show.chords"), new SimpleBooleanProperty(QueleaProperties.get().getShowChords())).customKey(stageShowChordsKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("stage.line.alignment"), lineAlignmentList, alignmentSelectionProperty).customKey(stageTextAlignmentKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("stage.font.selection"), fontsList, fontSelectionProperty).customKey(stageFontKey),
            getColorPicker(LabelGrabber.INSTANCE.getLabel("stage.background.colour"), QueleaProperties.get().getStageBackgroundColor()).customKey(stageBackgroundColorKey),
            getColorPicker(LabelGrabber.INSTANCE.getLabel("stage.lyrics.colour"), QueleaProperties.get().getStageLyricsColor()).customKey(stageLyricsColorKey),
            getColorPicker(LabelGrabber.INSTANCE.getLabel("stage.chord.colour"), QueleaProperties.get().getStageChordColor()).customKey(stageChordColorKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("clear.stage.view"), new SimpleBooleanProperty(QueleaProperties.get().getClearStageWithMain())).customKey(clearStageviewWithMainKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("use.24h.clock"), new SimpleBooleanProperty(QueleaProperties.get().getUse24HourClock())).customKey(use24hClockKey)
    );
}
 
Example 6
Source File: OptionsBiblePanel.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
public Category getBiblesTab() {
    bindings.put(maxVersesSetting.getField(), useMaxVersesProperty.not());

    return Category.of(LabelGrabber.INSTANCE.getLabel("bible.options.heading"), new ImageView(new Image("file:icons/biblesettingsicon.png")),
            defaultBibleSetting,
            showVerseNumSetting,
            splitVersesSetting,
            useMaxVersesSetting,
            maxVersesSetting
    );
}
 
Example 7
Source File: OptionsNoticePanel.java    From Quelea with GNU General Public License v3.0 5 votes vote down vote up
public Category getNoticesTab() {
    return Category.of(LabelGrabber.INSTANCE.getLabel("notice.options.heading"), new ImageView(new Image("file:icons/noticessettingsicon.png")),
            getPositionSelector(LabelGrabber.INSTANCE.getLabel("notice.position.text"), false, QueleaProperties.get().getNoticePosition().getText(), null, bindings).customKey(noticePositionKey),
            getColorPicker(LabelGrabber.INSTANCE.getLabel("notice.background.colour.text"), QueleaProperties.get().getNoticeBackgroundColour()).customKey(noticeBackgroundColourKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("notice.speed.text"), noticeSpeed, 2, 20, 1).customKey(noticeSpeedKey),
            Setting.of(LabelGrabber.INSTANCE.getLabel("notice.font.size"), noticeSize, 20, 100, 1).customKey(noticeFontSizeKey)
    );
}
 
Example 8
Source File: NavigationView.java    From PreferencesFX with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void initializeParts() {
  setupTextField();
  rootItem = new FilterableTreeItem<>(Category.of(""));
}