Adds widget to page

@param widget Widget/container to present
@return This instance for chaining
510275
public MainFrame put(Widget widget) {
		widget.addTo(user);
		content = widget != null ? widget.getID() : -1;
		this.sendElement();
		return this;
	}
743413
public function addWidget(Widget $widget)
    {
        if (!$this->widgets->contains($widget)) {
            $this->widgets->add($widget);
        }

        return $this;
    }
841808
protected <W extends Widget> W widget(WidgetFactory<W> factory,
      WidgetInitializer<W> initializers) {
    return widget(get(0), factory, initializers);
  }
1177969
@Override
    protected void defineWidgets() {

        super.defineWidgets();

        // widgets to display
        // new indexsource
        addWidget(
            new CmsWidgetDialogParameter(this, "type", PAGES[0], new CmsSelectWidget(getTypeWidgetConfiguration())));
        addWidget(new CmsWidgetDialogParameter(m_mapping, "param", "", PAGES[0], new CmsInputWidget(), 0, 1));
        addWidget(new CmsWidgetDialogParameter(m_mapping, "defaultValue", "", PAGES[0], new CmsInputWidget(), 0, 1));
    }
1205907
def _add_widget(self, widget):
        
        widgets = self.widgets()
        widgets += [widget]
        self._save_customization(widgets)
995536
def add_view(self, *args, **kwargs):
        
        from .viewbox import ViewBox
        view = ViewBox(*args, **kwargs)
        return self.add_widget(view)
141341
def add_widget_to_content(self, widget):
        """"""
        self.__section_content_column.add_spacing(4)
        self.__section_content_column.add(widget)
1168125
def create_widget(self):
        
        self.widget = ViewPager(self.get_context())
        self.adapter = BridgedFragmentStatePagerAdapter()
129959
protected final void attach(Attachable widget) {
		if (user != null) {
			widget.addTo(user);
		} else {
			if (waitingForUser == null) waitingForUser = new LinkedList<Attachable>();
			waitingForUser.add(widget);
		}
	}
945174
public static function forWidget(Widget $widget): self
    {
        $values = StringUtil::deserialize($widget->bs_inputGroup, true);
        $helper = new static();

        foreach ($values as $entry) {
            if (!strlen($entry['addon'])) {
                continue;
            }

            if ($entry['position'] === 'after') {
                $helper->addAfter($entry['addon']);
            } else {
                $helper->addBefore($entry['addon']);
            }
        }

        return $helper;
    }
437294
def add(self, *widgets):
        '''
        
        '''
        for w in widgets:
            if is_widget(w):
                if w not in self.widgets:
                    self.widgets.add(w)
                    w.add_internal(self)
            elif is_container(w):
                if w not in self.containers:
                    self.containers.add(w)
                    w.add_internal(self)
            else:
                # If it isn't an iterable, we'll get an error here.
                # Desired effect.
                self.add(*w)
1042275
def add_widgets(self, *widgets_or_spacings):
        """"""
        layout = self.layout()
        for widget_or_spacing in widgets_or_spacings:
            if isinstance(widget_or_spacing, int):
                layout.addSpacing(widget_or_spacing)
            else:
                layout.addWidget(widget_or_spacing)
1350184
public <W extends Widget> Widgets widgets(WidgetFactory<W> factory,
      WidgetInitializer<W> initializers) {
    List<Element> result = new ArrayList<>();
    for (Element e : elements()) {
      W w = widget(e, factory, initializers);
      if (w != null) {
        result.add(w.getElement());
      }
    }
    return $(result).as(Widgets);
  }
488464
def create_widget(self):
        
        d = self.declaration
        self.widget = Flexbox(self.get_context(), None, d.style)
181767
def add_widget(self):
        

        LOGGER.debug("> Adding '{0}' Component Widget.".format(self.__class__.__name__))

        self.__preferences_manager.Others_Preferences_gridLayout.addWidget(self.TCP_Client_Ui_groupBox)

        return True
617954
public function addWidgets( $widget, $services )
    {
        foreach ( $services as $key => $description )
        {
            if ( null === $description || is_scalar( $description ) )
            {
                $service    = $key;
                $priority   = null === $description ? null : (int) $description;
            }
            else
            {
                if ( $description instanceof \Traversable )
                {
                    $description = iterator_to_array( $description );
                }
                else if ( ! $description instanceof \ArrayAccess )
                {
                    $description = (array) $description;
                }

                if ( ! isset( $description['service'] ) )
                {
                    continue;
                }

                $service = $description['service'];

                if ( isset( $description['priority'] ) )
                {
                    $priority = (int) $description['priority'];
                }
                else
                {
                    $priority = null;
                }
            }

            $this->addWidget( $widget, $service, $priority );
        }

        return $this;
    }
1057237
def create_widget(self):
        
        d = self.declaration
        self.widget = FrameLayout(self.get_context(), None, d.style)