Exemplo n.º 1
0
 public TableLayout(Container container, Size size)
     : base(container != null ? container.Generator : Generator.Current, container, typeof(ITableLayout), false)
 {
     inner = (ITableLayout)Handler;
     this.Size = size;
     Initialize ();
     if (this.Container != null)
         this.Container.Layout = this;
 }
Exemplo n.º 2
0
 public TableLayout(Container container, Size size)
     : base(container != null ? container.Generator : Generator.Current, container, typeof(ITableLayout), false)
 {
     inner     = (ITableLayout)Handler;
     this.Size = size;
     Initialize();
     if (this.Container != null)
     {
         this.Container.Layout = this;
     }
 }
        private void Initialize()
        {
            var body = _properties.TableBody;

            if (body == null)
            {
                throw new ArgumentNullException("TableBody");
            }

            var style = _properties.TableStyle;

            if (style == null)
            {
                throw new ArgumentNullException("TableStyle");
            }

            var table        = new Table(style);
            var textRegistry = new TextAdapterRegistry();

            TableLayout = new TableLayout(table, textRegistry);
            Decorator   = GetComponent <ITableDecorator>();
        }
Exemplo n.º 4
0
 public Table(ISelenium selenium, ITableLayout layout, string id)
 {
     _selenium = selenium;
     _layout = layout;
     _id = id;
 }