本文整理匯總了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();
}
}
示例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();
}
}
示例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);
}
}
示例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)));
}
示例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()));
}
}