本文整理汇总了Java中com.vmware.vim25.PropertyChangeOp类的典型用法代码示例。如果您正苦于以下问题:Java PropertyChangeOp类的具体用法?Java PropertyChangeOp怎么用?Java PropertyChangeOp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PropertyChangeOp类属于com.vmware.vim25包,在下文中一共展示了PropertyChangeOp类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private void updateValues(String[] props, Object[] vals, PropertyChange propchg)
{
for (int i = 0; i < props.length; i++)
{
if (propchg.getName().lastIndexOf(props[i]) >= 0)
{
if (propchg.getOp() == PropertyChangeOp.remove)
{
vals[i] = "";
}
else
{
vals[i] = propchg.getVal();
}
}
}
}
示例2: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
for (int i = 0; i < props.length; i++) {
if (propchg.getName().equals(props[i])) {
if (propchg.getOp() == PropertyChangeOp.REMOVE) {
vals[i] = null;
} else {
vals[i] = propchg.getVal();
}
}
}
}
示例3: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private void updateValues(String[] props, Object[] vals,
PropertyChange propchg) {
for (int findi = 0; findi < props.length; findi++) {
if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
if (propchg.getOp() == PropertyChangeOp.REMOVE) {
vals[findi] = "";
} else {
vals[findi] = propchg.getVal();
}
}
}
}
示例4: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
for (int findi = 0; findi < props.length; findi++) {
if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
vals[findi] = propchg.getOp() == PropertyChangeOp.REMOVE ? Constants.EMPTY : propchg.getVal();
}
}
}
示例5: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
for (int findi = 0; findi < props.length; findi++) {
if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
if (propchg.getOp() == PropertyChangeOp.REMOVE) {
vals[findi] = "";
} else {
vals[findi] = propchg.getVal();
}
}
}
}
示例6: updateValues
import com.vmware.vim25.PropertyChangeOp; //导入依赖的package包/类
private static void updateValues(String[] props, Object[] vals, PropertyChange propertyChange) {
for (int findi = 0; findi < props.length; findi++) {
if (propertyChange.getName().lastIndexOf(props[findi]) >= 0) {
if (propertyChange.getOp() == PropertyChangeOp.REMOVE) {
vals[findi] = "";
} else {
vals[findi] = propertyChange.getVal();
}
}
}
}