Adds the Component Widget to the engine.

        :return: Method success.
        :rtype: bool
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
1000103
def addLineWidget( self, query = None ):
        
        widget = XQueryLineWidget(self)
        widget.setTerms(sorted(self._rules.keys()))
        widget.setQuery(query)
        
        index = self._container.layout().count() - 1
        self._container.layout().insertWidget(index, widget)
        
        widget.addRequested.connect(     self.addLineWidget )
        widget.removeRequested.connect(  self.removeLineWidget )
        
        # update the remove enabled options for these widgets
        self.updateRemoveEnabled()
408359
def create_widget(self):
        
        d = self.declaration
        self.widget = SeekBar(self.get_context(), None,
                              d.style or '@attr/seekBarStyle')
415637
def build_components(widget_list):
  '''
  
  '''
  required_args, optional_args  = partition(widget_list, is_required)
  checkbox_args, general_args = partition(map(build_widget, optional_args), is_checkbox)

  required_args = map(build_widget, required_args)
  optional_args = general_args + checkbox_args

  return ComponentList(required_args, optional_args)
64858
def __view_add_actions(self):
        

        self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.ComponentsManagerUi|Activate Component(s)",
            slot=self.__view_activate_components_action__triggered))
        self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.ComponentsManagerUi|Deactivate Component(s)",
            slot=self.__view_deactivate_components_action__triggered))

        separator_action = QAction(self.Components_Manager_Ui_treeView)
        separator_action.setSeparator(True)
        self.Components_Manager_Ui_treeView.addAction(separator_action)

        self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.ComponentsManagerUi|Reload Component(s)",
            slot=self.__view_reload_components_action__triggered))

        separator_action = QAction(self.Components_Manager_Ui_treeView)
        separator_action.setSeparator(True)
        self.Components_Manager_Ui_treeView.addAction(separator_action)
370793
def create_widget(self):
        
        d = self.declaration
        style = d.style if d.style else (
            '@attr/borderlessButtonStyle' if d.flat else '@attr/buttonStyle')
        self.widget = Button(self.get_context(), None, style)
640728
def addChild(self, item):
        
        super(XGanttWidgetItem, self).addChild(item)
        
        item.sync()
41599
def create_widget(self):
        
        d = self.declaration
        self.widget = Icon(self.get_context(), None, d.style)
319233
def create_widget(self):
        
        d = self.declaration
        self.widget = RadioButton(self.get_context(), None,
                                  d.style or '@attr/radioButtonStyle')
672507
private void buildUI() {
		add(new WSkipLinks());

		// the application header
		add(headerPanel);
		headerPanel.add(new UtilityBar());
		headerPanel.add(new WHeading(HeadingLevel.H1, "WComponents"));

		// mainPanel holds the menu and the actual example.
		add(mainPanel);
		mainPanel.add(menuPanel);
		mainPanel.add(exampleSection);

		// An application footer?
		WPanel footer = new WPanel(WPanel.Type.FOOTER);
		footer.add(lastLoaded);
		add(footer);
		add(new WAjaxControl(menuPanel.getTree(), new AjaxTarget[]{menuPanel.getMenu(), exampleSection}));
	}
1020918
def register_widget(widget):
    
    if widget in registry:
        raise WidgetAlreadyRegistered(
            _('The widget %s has already been registered.') % widget.__name__)
    registry.append(widget)
4045
def create_widget(self):
        
        d = self.declaration
        self.dialog = Dialog(self.get_context(), d.style)
1246631
def create_widget(self):
        
        d = self.declaration
        self.widget = GridLayout(self.get_context(), None, d.style)
87568
def create_widget(self):
        
        d = self.declaration
        self.widget = View(self.get_context(), None, d.style)
366214
def create_widget(self):
        
        d = self.declaration
        button_type = UIButton.UIButtonTypeSystem if d.flat else UIButton.UIButtonTypeRoundedRect
        self.widget = UIButton(buttonWithType=button_type)
496458
def enable(self):
        
        self._enabled = True
        for child in self.children:
            if isinstance(child, (Container, Widget)):
                child.enable()
449258
def init_widget(self):
        
        #: Add a ActivityLifecycleListener to update the application state
        activity = self.widget
        activity.addActivityLifecycleListener(activity.getId())
        activity.onActivityLifecycleChanged.connect(
            self.on_activity_lifecycle_changed)

        #: Add BackPressedListener to trigger the event
        activity.addBackPressedListener(activity.getId())
        activity.onBackPressed.connect(self.on_back_pressed)

        #: Add ConfigurationChangedListener to trigger the event
        activity.addConfigurationChangedListener(activity.getId())
        activity.onConfigurationChanged.connect(self.on_configuration_changed)