Class FilePathProperty

java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<String>
org.csstudio.opibuilder.properties.FilePathProperty
Direct Known Subclasses:
FilePathPropertyWithFilter

public class FilePathProperty extends AbstractWidgetProperty<String>
The property for file path, which is represented as a String.
  • Constructor Details

    • FilePathProperty

      public FilePathProperty(String prop_id, String description, WidgetPropertyCategory category, String defaultValue, String[] fileExtensions)
      File Path Property Constructor. The property value type is IPath. It will automatically build the absolute path if it is relative path.
      Parameters:
      prop_id - the property id which should be unique in a widget model.
      description - the description of the property, which will be shown as the property name in property sheet.
      category - the category of the widget.
      defaultValue - the default value when the widget is first created.
      fileExtensions - the allowed file extensions in the file open dialog.
    • FilePathProperty

      public FilePathProperty(String prop_id, String description, WidgetPropertyCategory category, String defaultValue, String[] fileExtensions, boolean buildAbsolutePath)
      File Path Property Constructor. The property value type is IPath.
      Parameters:
      prop_id - the property id which should be unique in a widget model.
      description - the description of the property, which will be shown as the property name in property sheet.
      category - the category of the widget.
      defaultValue - the default value when the widget is first created.
      fileExtensions - the allowed file extensions in the file open dialog.
      buildAbsolutePath - true if it should automatically build the absolute path from widget model.
  • Method Details