private RadioButtonSetup(
     DisplaySetup displaySetup, bool isReadOnly, ElementClassSet classes, SpecifiedValue <FormAction> action,
     PageModificationValue <bool> pageModificationValue)
 {
     DisplaySetup          = displaySetup;
     IsReadOnly            = isReadOnly;
     Classes               = classes;
     Action                = action != null ? action.Value : FormState.Current.FormControlDefaultAction;
     PageModificationValue = pageModificationValue ?? new PageModificationValue <bool>();
 }
Пример #2
0
 internal EwfTableFieldOrItemSetup(
     ElementClassSet classes, CssLength size, TextAlignment textAlignment, TableCellVerticalAlignment verticalAlignment,
     ElementActivationBehavior activationBehavior)
 {
     Classes            = classes ?? ElementClassSet.Empty;
     Size               = size;
     TextAlignment      = textAlignment;
     VerticalAlignment  = verticalAlignment;
     ActivationBehavior = activationBehavior;
 }
Пример #3
0
 private EwfTableItemSetup(
     ElementClassSet classes, CssLength size, TextAlignment textAlignment, TableCellVerticalAlignment verticalAlignment,
     ElementActivationBehavior activationBehavior, SpecifiedValue <int> id, int?rankId) : base(
         classes,
         size,
         textAlignment,
         verticalAlignment,
         activationBehavior,
         id,
         rankId)
 {
 }
Пример #4
0
 /// <summary>
 /// Creates an item setup object with a specified ID type.
 /// </summary>
 /// <param name="classes">The classes. When used on a column, sets the classes on every cell since most styles don't work on col elements.</param>
 /// <param name="size">The height or width. For an EWF table, this is the row height. For a column primary table, this is the column width. If you specify
 /// percentage widths for some or all columns in a table, these values need not add up to 100; they will be automatically scaled if necessary. The automatic
 /// scaling will not happen if there are any columns without a specified width.</param>
 /// <param name="textAlignment">The text alignment of the cells in this item.</param>
 /// <param name="verticalAlignment">The vertical alignment of the cells in this item.</param>
 /// <param name="activationBehavior">The activation behavior.</param>
 /// <param name="id">A value that uniquely identifies this item in table-level and group-level item actions. If you specify this, the item will have a
 /// checkbox that enables it to be included in the actions.</param>
 /// <param name="rankId">The rank ID for this item, which is used for item reordering.</param>
 public static EwfTableItemSetup <IdType> CreateWithIdType <IdType>(
     ElementClassSet classes = null, CssLength size = null, TextAlignment textAlignment = TextAlignment.NotSpecified,
     TableCellVerticalAlignment verticalAlignment = TableCellVerticalAlignment.NotSpecified, ElementActivationBehavior activationBehavior = null,
     SpecifiedValue <IdType> id = null, int?rankId = null) =>
 new EwfTableItemSetup <IdType>(classes, size, textAlignment, verticalAlignment, activationBehavior, id, rankId);
 /// <summary>
 /// Creates a setup object for a read-only checkbox.
 /// </summary>
 /// <param name="displaySetup"></param>
 /// <param name="classes">The classes on the control.</param>
 public static CheckboxSetup CreateReadOnly(DisplaySetup displaySetup = null, ElementClassSet classes = null)
 {
     return(new CheckboxSetup(displaySetup, true, classes, null, null, null));
 }
 /// <summary>
 /// Creates a setup object for a standard checkbox.
 /// </summary>
 /// <param name="displaySetup"></param>
 /// <param name="classes">The classes on the control.</param>
 /// <param name="action">The action that will occur when the user hits Enter on the control. Pass null to use the current default action.</param>
 /// <param name="valueChangedAction">The action that will occur when the value is changed. Pass null for no action.</param>
 /// <param name="pageModificationValue"></param>
 public static CheckboxSetup Create(
     DisplaySetup displaySetup = null, ElementClassSet classes = null, SpecifiedValue <FormAction> action = null, FormAction valueChangedAction = null,
     PageModificationValue <bool> pageModificationValue = null)
 {
     return(new CheckboxSetup(displaySetup, false, classes, action, valueChangedAction, pageModificationValue));
 }
 /// <summary>
 /// Creates a setup object for a read-only radio button.
 /// </summary>
 /// <param name="displaySetup"></param>
 /// <param name="classes">The classes on the control.</param>
 public static RadioButtonSetup CreateReadOnly(DisplaySetup displaySetup = null, ElementClassSet classes = null)
 {
     return(new RadioButtonSetup(displaySetup, true, classes, null, null));
 }
 /// <summary>
 /// Creates a setup object for a standard radio button.
 /// </summary>
 /// <param name="displaySetup"></param>
 /// <param name="classes">The classes on the control.</param>
 /// <param name="action">The action that will occur when the user hits Enter on the control. Pass null to use the current default action.</param>
 /// <param name="pageModificationValue"></param>
 public static RadioButtonSetup Create(
     DisplaySetup displaySetup = null, ElementClassSet classes = null, SpecifiedValue <FormAction> action = null,
     PageModificationValue <bool> pageModificationValue = null)
 {
     return(new RadioButtonSetup(displaySetup, false, classes, action, pageModificationValue));
 }