public DataType_PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType DataType)
 {
     //Log.Add(LogTypes.Debug, 0, "Prevalue Constructor");
     _datatype = DataType;
     jsonSerializer = new JavaScriptSerializer();
     savedOptions = Configuration;
     if (savedOptions == null)
         savedOptions = new TextBoxListOptions();
 }
        /// <summary>
        /// Instantiates the PrevalueEditor components.
        /// </summary>
        /// <param name="datatype">The datatype to use with this editor</param>
        public PrevalueEditor(BaseDataType datatype)
        {
            //instantiate the local m_datatype field with the given datatype
            _datatype = datatype;

            //The enclosing Umbraco panel to hold all other elements for this data type
            var ppEditPanel = new PropertyPanel { Text = "Content controls" };

            //Instantiate the property list, the add box, the add link, the JS custom scripts and the hidden value
            InstantiateHiddenValue(ppEditPanel);
            InstantiateHelpText(ppEditPanel);
            InstantiatePropertyList(ppEditPanel);
            InstantiateAddBox(ppEditPanel);
            InstantiateAddLink(ppEditPanel);
            InstantiateCustomScripts();
            Controls.Add(ppEditPanel);

            var ppShowLabelPanel = new PropertyPanel { Text = "Show label" };
            _showLabel = new CheckBox
                              {
                                  ID = "showLabel",
                                  Text = "",
                                  Checked = true
                              };
            ppShowLabelPanel.Controls.Add(_showLabel);
            Controls.Add(ppShowLabelPanel);

            var ppMaxCountPanel = new PropertyPanel { Text = "Max number of items (0 = no limit)" };
            _maxCount = new TextBox
            {
                ID = "maxCount",
                Text = ""
            };
            ppMaxCountPanel.Controls.Add(_maxCount);
            Controls.Add(ppMaxCountPanel);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyValuePrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public KeyValuePrevalueEditor(BaseDataType dataType)
     : base(dataType)
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public TextData(BaseDataType dataType)
     : base(dataType)
 {
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref = "TextImagePrevalueEditor" /> class.
 /// </summary>
 /// <param name = "dataType">Type of the data.</param>
 public TextImagePrevalueEditor(BaseDataType dataType)
 {
     _dataType = dataType;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyPickerPrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public PropertyPickerPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Nvarchar)
 {
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TextstringArrayData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public TextstringArrayData(BaseDataType dataType, TextstringArrayOptions options)
     : base(dataType)
 {
     this.options = options;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractDataEditorControl" /> class.
 /// </summary>
 /// <param name="datatype">The base datatype.</param>
 public AbstractDataEditorControl(BaseDataType datatype)
 {
     this.datatype = datatype;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public CFCMD_Data(BaseDataType dataType)
     : base(dataType)
 {
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CsvToXmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="rootName">Name of the root.</param>
 public CsvToXmlData(umbraco.cms.businesslogic.datatype.BaseDataType dataType, string rootName)
     : this(dataType, rootName, "value")
 {
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CsvToXmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="rootName">Name of the root.</param>
 /// <param name="elementName">Name of the element.</param>
 public CsvToXmlData(umbraco.cms.businesslogic.datatype.BaseDataType dataType, string rootName, string elementName)
     : this(dataType, rootName, elementName, new[] { "," })
 {
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UniquePropertyPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public UniquePropertyPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
 {
     this.m_DataType = dataType;
 }
Пример #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CsvToXmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public CsvToXmlData(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : this(dataType, "values")
 {
 }
Пример #14
0
 public YTSV_PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Ntext)
 {
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TB_PrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public TB_PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Integer)
 {
 }
 /// <summary>
 /// Initialize a new instance of XPathCheckBoxlistPreValueEditor
 /// </summary>
 /// <param name="dataType">XPathCheckBoxListDataType</param>
 public XPathDropDownListPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Nvarchar)
 {
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref = "ImageResizerPrevalueEditor" /> class.
 /// </summary>
 /// <param name = "dataType">Type of the data.</param>
 public ImageResizerPrevalueEditor(BaseDataType dataType)
 {
     _dataType = dataType;
 }
 public usercontrolPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType DataType)
 {
     // state it knows its datatypedefinitionid
     _datatype = DataType;
     setupChildControls();
 }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultPrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="displayTextBox">if set to <c>true</c> [display text box].</param>
 public DefaultPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType, bool displayTextBox)
     : base(dataType, displayTextBox)
 {
 }
Пример #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IRImagePickerPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public IRImagePickerPreValueEditor(BaseDataType dataType)
     : base(dataType, DBTypes.Nvarchar)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public CFLC_Data(BaseDataType dataType)
     : base(dataType)
 {
 }
Пример #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MultipleTextstringPrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public MultipleTextstringPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Ntext)
 {
 }
Пример #23
0
 public Widget_Builder_PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType DataType)
 {
     _datatype = DataType;
     jsonSerializer = new JavaScriptSerializer();
     savedOptions = Configuration;
 }
Пример #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RelationLinksPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public RelationLinksPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Ntext)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NoOptionsPrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="dbType">Type of the db.</param>
 public NoOptionsPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType, umbraco.cms.businesslogic.datatype.DBTypes dbType)
     : base()
 {
     this.m_DataType = dataType;
     this.m_DataType.DBType = dbType;
 }
Пример #26
0
        ////private SliderControl PreviewSlider;

        /// <summary>
        /// Initializes a new instance of the <see cref="SliderPrevalueEditor"/> class.
        /// </summary>
        /// <param name="dataType">Type of the data.</param>
        public SliderPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
            : base(dataType)
        {
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UniquePropertyPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public UniquePropertyPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
 {
     this.m_DataType = dataType;
 }
 public FileHandlerData(BaseDataType DataType, string thumbnailSizes)
     : base(DataType)
 {
     _thumbnailSizes = thumbnailSizes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CountryPickerPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public CountryPickerPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
 {
     this.m_DataType = dataType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MultiUrlPickerPreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public MultiUrlPickerPreValueEditor(BaseDataType dataType)
     : base(dataType)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AU_PrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public AU_PrevalueEditor(BaseDataType dataType)
     : base(dataType, DBTypes.Ntext)
 {
 }
Пример #32
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.PlaceHolder"/> class. 
 /// </summary>
 public RoutinePrevalueEditor(BaseDataType dataType)
 {
     _datatype = dataType;
     InitializeControls();
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="XmlData"/> class.
		/// </summary>
		/// <param name="dataType">Type of the data.</param>
		public XmlData(BaseDataType dataType)
			: base(dataType)
		{
		}
 /// <summary>
 /// Initializes a new instance of the <c>SimilarityPrevalueEditor</c> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public SimilarityPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
 {
     this.m_DataType = dataType;
 }
 public ProtectedPropertyPrevalueEditor(BaseDataType DataType)
 {
     _datatype = DataType;
     SetupChildControls();
 }
Пример #36
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoCompletePreValueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public AutoCompletePreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Nvarchar)
 {
 }
Пример #37
0
 public FileHandlerData(BaseDataType DataType, string thumbnailSizes)
     : base(DataType)
 {
     _thumbnailSizes = thumbnailSizes;
 }
Пример #38
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultData"/> class.
 /// </summary>
 /// <param name="DataType">Type of the data.</param>
 public DefaultData(BaseDataType DataType)
 {
     _dataType = DataType;
 }
 public PrevalueEditor(BaseDataType dataType)
 {
     _datatype = dataType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StyledTextBoxPrevalueEditor"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public StyledTextBoxPrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
 {
     this.m_DataType = dataType;
 }
Пример #41
0
        public PrevalueEditor(datatype.BaseDataType DataType) 
		{
            _datatype = DataType;
            setupChildControls();

    	}
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlData"/> class.
 /// </summary>
 /// <param name="dataType">Type of the data.</param>
 public AS3U_Data(BaseDataType dataType)
     : base(dataType)
 {
 }
 public MultiTypePrevalueEditor(BaseDataType dataType)
     : base(dataType, DBTypes.Ntext){}
 public ViewCountData(BaseDataType datatype)
     : base(datatype)
 {
 }
Пример #45
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultData"/> class.
 /// </summary>
 /// <param name="DataType">Type of the data.</param>
 public DefaultData(BaseDataType DataType)
 {
     _dataType = DataType;
 }
Пример #46
0
		public UrlTrackerPrevalueEditor(BaseDataType dataType)
		{
			_datatype = dataType;
		}
 public PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType DataType)
 {
     // state it knows its datatypedefinitionid
     _datatype = DataType;
     setupChildControls();
 }
Пример #48
0
 /// <summary>
 /// Initialize a new instance of PickerRelationsPreValueEditor
 /// </summary>
 /// <param name="dataType">PickerRelationsDataType</param>
 public PickerRelationsPreValueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType)
     : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Nvarchar)
 {
 }