/** * Sets the visible value of the property. * <p>The value of the select is the selected item id.</p> * Sets the value to the underlying {@link ComboBox}. */ @Override public void setValue(Object newValue) { if (newValue == null) { return; } combobox.setValue(newValue); }
public void setValue(String value) { filter.setValue(value); }
@Override public void addNewItem(String newItemCaption) { addKnownFacetName(newItemCaption); filter.setValue(newItemCaption); } });
@Override public void addNewItem(String newItemCaption) { if (!field.containsId(newItemCaption)) { field.addItem(newItemCaption); field.setValue(newItemCaption); } } });
@Override public void addNewItem(String newItemCaption) { if (!combo.containsId(newItemCaption)) { combo.addItem(newItemCaption); combo.setValue(newItemCaption); } } });
@Override protected void setValue(Object value) throws MException { ((ComboBox)getComponentEditor()).setValue(MCast.toString(value)); }
@Override public Void visit(ChildEdge edge) { m_typeSelect.setValue(EdgeType.CHILD_SERVICE); m_childServiceComponent.setValue(edge.getChild()); m_childServiceComponent.setEnabled(false); return null; }
/** * Sets the combo value. * * @param value the new combo value */ protected void setComboValue(String value) { boolean comboState = combo.isReadOnly(); combo.setReadOnly(false); if (!combo.containsId(value)) { combo.addItem(value); } combo.setValue(value); if (comboState) combo.setReadOnly(true); }
@Override public Void visit(IpServiceEdge edge) { m_typeSelect.setValue(EdgeType.IP_SERVICE); for (IpService ipService : (Collection<IpService>) m_ipServiceComponent.getItemIds()) { if (ipService.getId() == edge.getIpService().getId()) { m_ipServiceComponent.setValue(ipService); break; } } m_friendlyNameField.setValue(edge.getFriendlyName()); m_ipServiceComponent.setEnabled(false); return null; }
@Override public void pageChanged(PagedTableChangeEvent event) { if (!inMiddleOfValueChange) { inMiddleOfValueChange = true; first.setEnabled(container.getStartIndex() > 0); previous.setEnabled(container.getStartIndex() > 0); next.setEnabled(container.getStartIndex() < container.getRealSize() - getPageLength()); last.setEnabled(container.getStartIndex() < container.getRealSize() - getPageLength()); currentPageTextField.setValue(String.valueOf(getCurrentPage())); totalPagesLabel.setValue(Integer.toString(getTotalAmountOfPages())); itemsPerPageSelect.setValue(getPageLength()); inMiddleOfValueChange = false; } } });
cb.setValue(value);
parentSelect.setNullSelectionAllowed(true); fillParentSelect(); parentSelect.setValue(folder.getParent()); layout.addComponent(parentSelect); presentation.setNullSelectionAllowed(true); fillPresentations(presentations); presentation.setValue(((SearchFolder) folder).getPresentation()); layout.addComponent(presentation); } else if (((SearchFolder) folder).getPresentation() != null) {