Creates the list of widgets for this dialog.<p>
169227
@Override
    protected void defineWidgets() {

        // initialize the user object to use for the dialog
        initFileInfo();

        setKeyPrefix(KEY_PREFIX);

        addWidget(new CmsWidgetDialogParameter(this, "path", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(this, "title", PAGES[0], new CmsDisplayWidget()));
    }
961492
private List<CmsSelectWidgetOption> getProjectSelections() {

        List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
        List<CmsProject> projects = null;
        try {
            projects = OpenCms.getOrgUnitManager().getAllAccessibleProjects(getCms(), "", true);
        } catch (CmsException e) {
            return result;
        }

        boolean first = true;
        for (CmsProject project : projects) {
            if (!project.getName().equals(CmsProject.ONLINE_PROJECT_NAME)) {
                first = false;
                result.add(new CmsSelectWidgetOption(project.getName(), first, project.getName()));
            }
        }
        return result;
    }
1020450
def create_widget(self):
        
        d = self.declaration
        self.widget = LinearLayout(self.get_context(), None, d.style)
968923
private function createEmbeddedWidgets()
    {
        if (!$this->widgets_created) {
            $this->enter_another_link = new SwatToolLink();
            $this->enter_another_link->parent = $this;
            $this->enter_another_link->stock_id = 'add';
            $this->enter_another_link->classes[] =
                'swat-table-view-input-row-add';

            $this->widgets_created = true;
        }
    }
125433
private CmsListItemWidget createListWidget(CmsGalleryFolderEntry galleryFolder) {

        String title;
        if (galleryFolder.getOwnProperties().containsKey(CmsClientProperty.PROPERTY_TITLE)) {
            title = galleryFolder.getOwnProperties().get(CmsClientProperty.PROPERTY_TITLE).getStructureValue();
        } else {
            title = CmsResource.getName(galleryFolder.getSitePath());
            if (title.endsWith("/")) {
                title = title.substring(0, title.length() - 1);
            }
        }
        CmsListInfoBean infoBean = new CmsListInfoBean(title, galleryFolder.getSitePath(), null);
        CmsListItemWidget result = new CmsGalleryListItemWidget(infoBean);
        result.setIcon(galleryFolder.getIconClasses());
        result.addIconClickHandler(new ClickHandler() {

            public void onClick(ClickEvent event) {

                CmsSitemapView.getInstance().getController().loadPath(
                    getSitePath(),
                    new AsyncCallback<CmsClientSitemapEntry>() {

                        public void onFailure(Throwable caught) {

                            // nothing to do

                        }

                        public void onSuccess(CmsClientSitemapEntry entry) {

                            showGallery(entry);
                        }
                    });
            }
        });
        if ((CmsSitemapView.getInstance().getController().getEntryById(galleryFolder.getStructureId()) == null)
            || CmsSitemapView.getInstance().getController().getEntryById(galleryFolder.getStructureId()).isEditable()) {
            result.addTitleStyleName(I_CmsSitemapLayoutBundle.INSTANCE.sitemapItemCss().itemTitle());
            result.setTitleEditable(true);
            result.setTitleEditHandler(new I_CmsTitleEditHandler() {

                /**
                 * @see org.opencms.gwt.client.ui.CmsListItemWidget.I_CmsTitleEditHandler#handleEdit(org.opencms.gwt.client.ui.input.CmsLabel, com.google.gwt.user.client.ui.TextBox)
                 */
                public void handleEdit(final CmsLabel titleLabel, final TextBox box) {

                    CmsSitemapView.getInstance().getController().loadPath(
                        getSitePath(),
                        new AsyncCallback<CmsClientSitemapEntry>() {

                            public void onFailure(Throwable caught) {

                                // nothing to do
                            }

                            public void onSuccess(CmsClientSitemapEntry editEntry) {

                                CmsGalleryTreeItem.this.handleEdit(editEntry, box.getText());
                                box.removeFromParent();
                                titleLabel.setVisible(true);
                            }
                        });
                }
            });
        }
        return result;
    }
613663
@Override
    protected void defineWidgets() {

        initModule();

        addWidget(new CmsWidgetDialogParameter(m_exportpoint, "uri", PAGES[0], new CmsDisplayWidget()));
        addWidget(
            new CmsWidgetDialogParameter(m_exportpoint, "configuredDestination", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(m_exportpoint, "destinationPath", PAGES[0], new CmsDisplayWidget()));

    }
118786
private void addToolbarButtons() {

        Button add = CmsToolBar.createButton(
            FontOpenCms.WAND,
            CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_CREATE_NEW_TYPE_0));
        add.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                Window window = CmsBasicDialog.prepareWindow(DialogWidth.max);
                CmsNewResourceTypeDialog dialog = new CmsNewResourceTypeDialog(window, CmsResourceTypeApp.this);
                CmsMoveResourceTypeDialog moduleDialog = new CmsMoveResourceTypeDialog(dialog);
                window.setContent(moduleDialog);
                window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_RESOURCETYPE_CREATE_NEW_TYPE_0));
                A_CmsUI.get().addWindow(window);
            }
        });
        m_uiContext.addToolbarButton(add);

    }
58683
@Override
    protected void defineWidgets() {

        super.defineWidgets();

        // widgets to display
        // indexsource data (first block)
        addWidget(new CmsWidgetDialogParameter(m_indexsource, "name", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(m_indexsource, "indexerClassName", PAGES[0], new CmsDisplayWidget()));

        // resources block
        addWidget(
            new CmsWidgetDialogParameter(
                m_indexsource.getResourcesNames(),
                "resourcesNames",
                "/",
                PAGES[0],
                new CmsVfsFileWidget(false, ""),
                1,
                10));
    }
552761
@Override
    protected void defineWidgets() {

        // initialize the user object to use for the dialog
        initGroupObject();
        setKeyPrefix(KEY_PREFIX);

        // widgets to display
        if ((m_group.getId() == null) && isEditable(m_group)) {
            addWidget(new CmsWidgetDialogParameter(this, "name", PAGES[0], new CmsInputWidget()));
        } else {
            addWidget(new CmsWidgetDialogParameter(this, "name", PAGES[0], new CmsDisplayWidget()));
        }
        if (isEditable(m_group)) {
            addWidget(new CmsWidgetDialogParameter(this, "description", PAGES[0], new CmsTextareaWidget()));
            addWidget(new CmsWidgetDialogParameter(this, "assignedOu", PAGES[0], new CmsDisplayWidget()));
            addWidget(new CmsWidgetDialogParameter(m_group, "enabled", PAGES[0], new CmsCheckboxWidget()));
        } else {
            addWidget(new CmsWidgetDialogParameter(this, "description", PAGES[0], new CmsDisplayWidget()));
            addWidget(new CmsWidgetDialogParameter(this, "assignedOu", PAGES[0], new CmsDisplayWidget()));
            addWidget(new CmsWidgetDialogParameter(m_group, "enabled", PAGES[0], new CmsDisplayWidget()));
        }
    }
680544
def _makeTextWidgets(self):
        
        self.textWidget = urwid.Text(self.text)
        return [self.textWidget]
1057237
def create_widget(self):
        
        d = self.declaration
        self.widget = FrameLayout(self.get_context(), None, d.style)
81521
private List buildResourceTypeSelectWidgetList() {

        List fileFormats = new ArrayList();
        // get all OpenCms resource types
        List resourceTypes = OpenCms.getResourceManager().getResourceTypes();
        // put for every resource type type id and name into list object for select widget
        Iterator iter = resourceTypes.iterator();
        while (iter.hasNext()) {
            I_CmsResourceType type = (I_CmsResourceType)iter.next();
            // only xml resource types
            if (type.isDirectEditable() && !type.getTypeName().toUpperCase().equals("JSP")) {
                CmsSelectWidgetOption option = new CmsSelectWidgetOption(
                    new Integer(type.getTypeId()).toString(),
                    false,
                    type.getTypeName());
                fileFormats.add(option);
            }
        }
        return fileFormats;
    }
109651
def widgets(self):
        
        customization = self.activity._json_data.get('customization')

        if customization and "ext" in customization.keys():
            return customization['ext']['widgets']
        else:
            return []
567917
public static void initClass() {

        // registers a factory for creating new instances of this widget
        CmsWidgetFactoryRegistry.instance().registerFactory(WIDGET_TYPE, new I_CmsFormWidgetFactory() {

            /**
             * @see org.opencms.gwt.client.ui.input.form.I_CmsFormWidgetFactory#createWidget(java.util.Map, com.google.common.base.Optional)
             */
            public I_CmsFormWidget createWidget(Map<String, String> widgetParams, Optional<String> defaultValue) {

                return new CmsLinkSelector();
            }
        });
    }
320674
@Override
    protected void defineWidgets() {

        // initialize the object to use for the dialog
        initLoginMessageObject();

        setKeyPrefix(KEY_PREFIX);

        // required to read the default values for the optional context parameters for the widgets
        CmsLoginMessage def = new CmsLoginMessage();

        addWidget(new CmsWidgetDialogParameter(m_loginMessage, "enabled", PAGES[0], new CmsCheckboxWidget()));
        addWidget(new CmsWidgetDialogParameter(m_loginMessage, "message", PAGES[0], new CmsTextareaWidget()));
        addWidget(new CmsWidgetDialogParameter(m_loginMessage, "loginForbidden", PAGES[0], new CmsCheckboxWidget()));
        addWidget(
            new CmsWidgetDialogParameter(
                m_loginMessage,
                "timeStart",
                String.valueOf(def.getTimeStart()),
                PAGES[0],
                new CmsCalendarWidget(),
                0,
                1));
        addWidget(
            new CmsWidgetDialogParameter(
                m_loginMessage,
                "timeEnd",
                String.valueOf(def.getTimeEnd()),
                PAGES[0],
                new CmsCalendarWidget(),
                0,
                1));
    }
165598
@Override
    protected void defineWidgets() {

        setKeyPrefix(KEY_PREFIX);

        // default value is 30 minutes ago
        setTime("" + (System.currentTimeMillis() - (30 * 60 * 1000L)));
        // widgets to display
        addWidget(new CmsWidgetDialogParameter(this, "time", PAGES[0], new CmsCalendarWidget()));
    }
1260478
@Override
    protected void defineWidgets() {

        // initialize the scheduled job object to use for the dialog
        initScheduledJobObject();

        // required to read the default values for the optional context parameters for the widgets
        CmsContextInfo dC = new CmsContextInfo();

        // add current server time
        addWidget(new CmsWidgetDialogParameter(this, "serverTime", PAGES[0], new CmsDisplayWidget()));
        // widgets to display on the first dialog page
        addWidget(new CmsWidgetDialogParameter(m_jobInfo, "jobName", PAGES[0], new CmsInputWidget()));
        addWidget(
            new CmsWidgetDialogParameter(m_jobInfo, "className", PAGES[0], new CmsComboWidget(getComboClasses())));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "cronExpression",
                PAGES[0],
                new CmsComboWidget(getComboCronExpressions())));
        addWidget(new CmsWidgetDialogParameter(m_jobInfo, "reuseInstance", PAGES[0], new CmsCheckboxWidget()));
        addWidget(new CmsWidgetDialogParameter(m_jobInfo, "active", PAGES[0], new CmsCheckboxWidget()));
        addWidget(
            new CmsWidgetDialogParameter(m_jobInfo, "contextInfo.userName", PAGES[0], new CmsUserWidget(null, null)));
        addWidget(new CmsWidgetDialogParameter(m_jobInfo, "contextInfo.projectName", PAGES[0], new CmsInputWidget()));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "contextInfo.siteRoot",
                dC.getSiteRoot(),
                PAGES[0],
                new CmsVfsFileWidget(),
                0,
                1));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "contextInfo.requestedUri",
                dC.getRequestedUri(),
                PAGES[0],
                new CmsVfsFileWidget(),
                0,
                1));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "contextInfo.localeName",
                dC.getLocaleName(),
                PAGES[0],
                new CmsInputWidget(),
                0,
                1));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "contextInfo.encoding",
                dC.getEncoding(),
                PAGES[0],
                new CmsInputWidget(),
                0,
                1));
        addWidget(
            new CmsWidgetDialogParameter(
                m_jobInfo,
                "contextInfo.remoteAddr",
                dC.getRemoteAddr(),
                PAGES[0],
                new CmsInputWidget(),
                0,
                1));

        // widget to display on the second dialog page
        addWidget(new CmsWidgetDialogParameter(m_jobInfo, "parameters", PAGES[1], new CmsInputWidget()));
    }