Stores the widget values in the JAR package.
496571
@Override
	protected void updateModel() {
		super.updateModel();

		String comboText= fAntScriptNamesCombo.getText();
		IPath path= Path.fromOSString(comboText);
		if (path.segmentCount() > 0 && ensureAntScriptFileIsValid(path.toFile()) && path.getFileExtension() == null)
			path= path.addFileExtension(ANTSCRIPT_EXTENSION);

		fAntScriptLocation= getAbsoluteLocation(path);
	}
404089
@SuppressWarnings("unchecked")
    @Override
    public void setValue(Object value) throws WidgetException {
        try {
            if (value instanceof String) {
                selectSingle((String) value);
            } else if (value instanceof List<?>) {
                selectMultiple((List<String>) value);
            } else {
                throw new WidgetRuntimeException(
                        "Invalid type. 'value' must be either 'String' type of 'List<String>'.", getByLocator());
            }
        } catch (Exception e) {
            throw new WidgetException("Error while selecting option on select", getByLocator(), e);
        }
    }
375980
def set_widgets(self):
        """"""
        if self.parent.aggregation_layer:
            aggr = self.parent.aggregation_layer.name()
        else:
            aggr = self.tr('no aggregation')

        html = self.tr('Please ensure the following information '
                       'is correct and press Run.')

        # TODO: update this to use InaSAFE message API rather...
        html += '<br/><table cellspacing="4">'
        html += ('<tr>'
                 '  <td><b>%s</b></td><td></td><td>%s</td>'
                 '</tr><tr>'
                 '  <td><b>%s</b></td><td></td><td>%s</td>'
                 '</tr><tr>'
                 '  <td><b>%s</b></td><td></td><td>%s</td>'
                 '</tr><tr>'
                 '  <td colspan="3"></td>'
                 '</tr>' % (
                     self.tr('hazard layer').capitalize().replace(
                         ' ', '&nbsp;'),
                     self.parent.hazard_layer.name(),
                     self.tr('exposure layer').capitalize().replace(
                         ' ', '&nbsp;'),
                     self.parent.exposure_layer.name(),
                     self.tr('aggregation layer').capitalize().replace(
                         ' ', '&nbsp;'), aggr))

        self.lblSummary.setText(html)
523913
@Override
    public void setValue(Object value) throws WidgetException {
        try {
            if (value instanceof String) {
                type((String) value);
            } else {
                throw new WidgetRuntimeException("Invalid type. 'value' must be a 'String' type", getByLocator());
            }

        } catch (Exception e) {
            throw new WidgetException("Error while typing " + value, getByLocator(), e);
        }
    }
18975
async def _storeAppt(self, appt):
        '''  '''
        await self._hivedict.set(appt.iden, appt.pack())
510275
public MainFrame put(Widget widget) {
		widget.addTo(user);
		content = widget != null ? widget.getID() : -1;
		this.sendElement();
		return this;
	}
129959
protected final void attach(Attachable widget) {
		if (user != null) {
			widget.addTo(user);
		} else {
			if (waitingForUser == null) waitingForUser = new LinkedList<Attachable>();
			waitingForUser.add(widget);
		}
	}
1341797
@Api
	public void initializeList(Collection<SearchWidget> searchWidgets) {
		LinkedHashMap<String, String> values = new LinkedHashMap<String, String>();
		for (SearchWidget searchWidget : searchWidgets) {
			values.put(searchWidget.getSearchWidgetId(), searchWidget.getName());
		}
		selectSearch.setValueMap(values);
		this.searchWidgets.addAll(searchWidgets);
	}
1295285
public int put(Widget widget, String name) {
		if (widget == null) return -1;
		attach(widget);
		for (int i = 0; i < content.length; ++i)
			if (content[i] == null) {
				content[i] = new Tab(widget, name);
				this.sendElement();
				return i;
			}
		throw new IndexOutOfBoundsException();
		//return -1;
	}
780481
def _set(self, name, value):
        ""
        return self.widget(self.widget_element._set(name, value))
6178
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) {

                Map<String, CmsPair<String, Boolean>> entries = new HashMap<String, CmsPair<String, Boolean>>();
                String label = "Select";
                if (widgetParams.containsKey("label")) {
                    label = widgetParams.get("label");
                    widgetParams.remove("label");
                }
                for (Map.Entry<String, String> entry : widgetParams.entrySet()) {
                    entries.put(entry.getKey(), CmsPair.create(entry.getValue(), Boolean.FALSE));
                }
                CmsMultiSelectCell cell = new CmsMultiSelectCell(entries);
                cell.setOpenerText(label);
                CmsMultiSelectBox box = new CmsMultiSelectBox();
                box.addOption(cell);
                return box;
            }
        });
    }
1045992
def init_widget(self):
        
        super(AndroidTextClock, self).init_widget()
        d = self.declaration
        if d.format_12_hour:
            self.set_format_12_hour(d.format_12_hour)
        if d.format_24_hour:
            self.set_format_24_hour(d.format_24_hour)
        if d.time_zone:
            self.set_time_zone(d.time_zone)
1191440
def _apply_properties(widget, properties={}):
    
    with widget.hold_sync():
        for key, value in properties.items():
            setattr(widget, key, value)
1260547
def setWidget(self, widget, index=0, row=None,
                  col=0, rowspan=1, colspan=1):
        
        if row is None:
            row = self.currentRow
        self.currentRow = max(row + 1, self.currentRow)
        if index > len(self.widgets) - 1:
            # add new widget
            self.widgets.append(widget)
        else:  # change existing widget
            self.layout.removeWidget(self.widgets[index])
            self.widgets[index] = widget
        self.layout.addWidget(widget, row, col, rowspan, colspan)
        self.raiseOverlay()
146248
def widgets(self):
        """"""
        w = []
        for i in range(self.count()):
            w.append(self.widget(i))
        return w
801679
@Override
    protected void defineWidgets() {

        super.defineWidgets();

        addWidget(new CmsWidgetDialogParameter(m_module, "resources", PAGES[0], new CmsVfsFileWidget()));
        addWidget(new CmsWidgetDialogParameter(m_module, "excludeResources", PAGES[0], new CmsVfsFileWidget()));
    }
170230
private void initialize(Locale locale) {

        // start with a new instance of the widgets and unique widgets
        m_widgets = new HashMap<String, I_CmsWidget>(25);
        m_uniqueWidgets = new ArrayList<I_CmsWidget>(12);
        m_values = new HashMap<String, I_CmsXmlContentValue>(25);
        // store Locale to use when collecting the widgets
        m_locale = locale;
    }