Class DirectorySwtParameter

  • All Implemented Interfaces:
    SwtParameter<java.lang.String>

    public class DirectorySwtParameter
    extends BaseSwtStringParameter<DirectorySwtParameter>
    SWT Parameter representing a Directory (String) value. Displays Textbox and browse button.

    Will always use 2 horizontal spaces in GridLayout

    Note: Currently doesn't validate if directory is valid or exists

    • Field Detail

      • browse

        private final org.eclipse.swt.widgets.Button browse
      • area

        private final org.eclipse.swt.widgets.Composite area
      • keyDialogTitle

        protected java.lang.String keyDialogTitle
      • keyDialogMessage

        protected java.lang.String keyDialogMessage
    • Constructor Detail

      • DirectorySwtParameter

        public DirectorySwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                     DirectoryParameterImpl param)
      • DirectorySwtParameter

        public DirectorySwtParameter​(org.eclipse.swt.widgets.Composite composite,
                                     java.lang.String paramID,
                                     java.lang.String labelKey,
                                     SwtParameterValueProcessor<DirectorySwtParameter,​java.lang.String> valueProcessor)
        Make a directory selecting ui

        When parent is of GridLayout, resulting new widgets will take 2 columns

        Parameters:
        composite - Where widgets will be placed. Composite is not altered
        paramID - ID of the parameter (usually config id)
        labelKey - Messagebundle key for the text shown before the color button
        valueProcessor - null if you want to use COConfigurationManager