當前位置: 首頁>>代碼示例>>Java>>正文


Java ValueChangeEvent.getProperty方法代碼示例

本文整理匯總了Java中com.vaadin.data.Property.ValueChangeEvent.getProperty方法的典型用法代碼示例。如果您正苦於以下問題:Java ValueChangeEvent.getProperty方法的具體用法?Java ValueChangeEvent.getProperty怎麽用?Java ValueChangeEvent.getProperty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.data.Property.ValueChangeEvent的用法示例。


在下文中一共展示了ValueChangeEvent.getProperty方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: valueChange

import com.vaadin.data.Property.ValueChangeEvent; //導入方法依賴的package包/類
@Override
public void valueChange(final ValueChangeEvent event) {

    if (!(event.getProperty() instanceof CheckBox)) {
        return;
    }

    notifyConfigurationChanged();

    final CheckBox checkBox = (CheckBox) event.getProperty();
    BooleanConfigurationItem configurationItem;

    if (actionAutocloseCheckBox.equals(checkBox)) {
        configurationItem = actionAutocloseConfigurationItem;
    } else {
        return;
    }

    if (checkBox.getValue()) {
        configurationItem.configEnable();
    } else {
        configurationItem.configDisable();
    }
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:25,代碼來源:RepositoryConfigurationView.java

示例2: valueChange

import com.vaadin.data.Property.ValueChangeEvent; //導入方法依賴的package包/類
@Override
public void valueChange(final ValueChangeEvent event) {

    if (!(event.getProperty() instanceof CheckBox)) {
        return;
    }

    notifyConfigurationChanged();

    final CheckBox checkBox = (CheckBox) event.getProperty();
    BooleanConfigurationItem configurationItem;

    if (gatewaySecTokenCheckBox.equals(checkBox)) {
        configurationItem = gatewaySecurityTokenAuthenticationConfigurationItem;
    } else if (targetSecTokenCheckBox.equals(checkBox)) {
        configurationItem = targetSecurityTokenAuthenticationConfigurationItem;
    } else if (certificateAuthCheckbox.equals(checkBox)) {
        configurationItem = certificateAuthenticationConfigurationItem;
    } else if (downloadAnonymousCheckBox.equals(checkBox)) {
        configurationItem = anonymousDownloadAuthenticationConfigurationItem;
    } else {
        return;
    }

    if (checkBox.getValue()) {
        configurationItem.configEnable();
    } else {
        configurationItem.configDisable();
    }
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:31,代碼來源:AuthenticationConfigurationView.java

示例3: projectSelectionListener

import com.vaadin.data.Property.ValueChangeEvent; //導入方法依賴的package包/類
protected void projectSelectionListener(ValueChangeEvent event) {
    CheckBox checkbox = (CheckBox) event.getProperty();
    String projectId = (String) checkbox.getData();
    OptionGroup optionGroup = projectVersionOptionGroups.get(projectId);
    if (checkbox.getValue() == false) {
        optionGroup.clear();
        optionGroup.setEnabled(false);
    } else {
        @SuppressWarnings("unchecked")
        Collection<String> projectVersionIds = (Collection<String>) optionGroup.getItemIds();
        Iterator<String> itr = projectVersionIds.iterator();
        optionGroup.select(itr.next());
        optionGroup.setEnabled(true);
    }
}
 
開發者ID:JumpMind,項目名稱:metl,代碼行數:16,代碼來源:EditReleasePackageDialog.java

示例4: valueChange

import com.vaadin.data.Property.ValueChangeEvent; //導入方法依賴的package包/類
@Override
public void valueChange(ValueChangeEvent event) {
	//TODO do better
	AbstractComponent component = (AbstractComponent) event.getProperty();
	VaadinDataObject dataObject = (VaadinDataObject) component.getData();
	listener.propertyChange(new PropertyChangeEvent(VaadinFormInstanceImpl.this, null, null, dataObject.getAccessor()
			.getFieldValue(VaadinFormInstanceImpl.this, component)));
}
 
開發者ID:frincon,項目名稱:abstractform,代碼行數:9,代碼來源:VaadinFormInstanceImpl.java

示例5: valueChange

import com.vaadin.data.Property.ValueChangeEvent; //導入方法依賴的package包/類
@Override
public void valueChange(ValueChangeEvent event) {
	if (event.getProperty() == table) {
		fireSelectionChange(new SelectionChangeEvent(this, getSelectedObjects().toArray()));
	}
}
 
開發者ID:frincon,項目名稱:openeos,代碼行數:7,代碼來源:AbstractVaadinTabImpl.java


注:本文中的com.vaadin.data.Property.ValueChangeEvent.getProperty方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。