Ejemplo n.º 1
0
        public Link(string name, string caption, string href)
        {
            this.name = name;
            this.caption = caption;
            this.href = href;

            visible = true;
            script = new ScriptProperty();
        }
Ejemplo n.º 2
0
        public CheckBox(string name)
        {
            this.name = name;

            isChecked = false;
            disabled = false;
            width = new StyleLength(100F, LengthUnits.Percentage);
            script = new ScriptProperty();
            cssClass = string.Empty;
        }
Ejemplo n.º 3
0
        public Image(string name, string uri)
        {
            this.name = name;

            this.uri = uri;
            this.width = new StyleLength();
            this.height = new StyleLength();
            this.script = new ScriptProperty();
            this.styleClass = string.Empty;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Select box constructor.
        /// </summary>
        /// <param name="name">Select box name</param>
        public SelectBox(string name)
        {
            this.name = name;

            items = new List<SelectBoxItem>();
            itemKeys = new Dictionary<string, SelectBoxItem>();
            visible = true;
            width = new StyleLength();
            script = new ScriptProperty();
        }
Ejemplo n.º 5
0
        public TextBox(string name)
        {
            this.name = name;

            disabled = false;
            visible = true;
            maxLength = -1;
            lines = 1;
            width = new StyleLength(100F, LengthUnits.Percentage);
            script = new ScriptProperty();
            type = InputType.Text;
        }
Ejemplo n.º 6
0
        public UserSelectBox(Core core, string name, List<long> userIds)
        {
            this.core = core;
            this.name = name;
            this.userIds = userIds;

            disabled = false;
            visible = true;

            width = new StyleLength(100F, LengthUnits.Percentage);
            script = new ScriptProperty();
        }
Ejemplo n.º 7
0
        public TagSelectBox(Core core, string name)
        {
            this.core = core;
            this.name = name;

            disabled = false;
            visible = true;

            tagIds = new List<long>();
            width = new StyleLength(100F, LengthUnits.Percentage);
            script = new ScriptProperty();
        }
        public PermissionGroupSelectBox(Core core, string name, ItemKey permissibleItem, List<PrimitivePermissionGroup> itemKeys)
        {
            this.core = core;
            this.name = name;
            this.permissibleItem = permissibleItem;
            this.itemKeys = itemKeys;

            disabled = false;
            visible = true;

            width = new StyleLength(100F, LengthUnits.Percentage);
            script = new ScriptProperty();
        }