/** * {@inheritDoc} */ @Override public void valueChange(ValueChangeEvent evt) { gate.setModel(evt.getNewValue()); }
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() != null) { viewComponent.setToolTipText(evt.getNewValue().toString()); } else { viewComponent.setToolTipText(null); } } });
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() != null) { ((TitledBorder) border).setTitle(evt.getNewValue().toString()); } else { ((TitledBorder) border).setTitle(""); } } });
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() instanceof byte[]) { getConnectedJComponent().setDecorated( ((byte[]) evt.getNewValue()).length > 0); } else { getConnectedJComponent().setDecorated(evt.getNewValue() != null); } } });
public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() instanceof byte[]) { getConnectedSComponent().setDecorated( ((byte[]) evt.getNewValue()).length > 0); } else { getConnectedSComponent().setDecorated(evt.getNewValue() != null); } } });
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() != null) { viewComponent.setForeground(createColor(evt.getNewValue().toString())); } else { viewComponent.setForeground(null); } } });
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() != null) { viewComponent.setBackground(createColor(evt.getNewValue().toString())); } else { viewComponent.setBackground(null); } } });
@Override public void valueChange(ValueChangeEvent evt) { if (evt.getNewValue() != null) { viewComponent.setFont(createFont(evt.getNewValue().toString(), defaultFont)); } else { viewComponent.setFont(defaultFont); } } });
/** * {@inheritDoc} */ public void valueChange(final ValueChangeEvent evt) { Collection<?> oldCollection = (Collection<?>) evt.getOldValue(); Collection<?> newCollection = (Collection<?>) evt.getNewValue(); int oldCollectionSize = 0; int newCollectionSize = 0; if (oldCollection != null) { oldCollectionSize = oldCollection.size(); } if (newCollection != null) { newCollectionSize = newCollection.size(); } if (newCollectionSize > oldCollectionSize) { fireIntervalAdded(CollectionConnectorListModel.this, oldCollectionSize, newCollectionSize); for (int index = oldCollectionSize; index < newCollectionSize; index++) { bindChildConnector(index); } } else if (newCollectionSize < oldCollectionSize) { fireIntervalRemoved(CollectionConnectorListModel.this, oldCollectionSize, newCollectionSize); } } }
@Override public void run() { Collection<?> oldCollection = (Collection<?>) evt.getOldValue(); Collection<?> newCollection = (Collection<?>) evt.getNewValue(); int oldCollectionSize = 0; int newCollectionSize = 0; if (oldCollection != null) { oldCollectionSize = oldCollection.size(); } if (newCollection != null) { newCollectionSize = newCollection.size(); } if (newCollectionSize > oldCollectionSize) { fireIntervalAdded(CollectionConnectorListModel.this, oldCollectionSize, newCollectionSize); for (int index = oldCollectionSize; index < newCollectionSize; index++) { bindChildConnector(index); } } else if (newCollectionSize < oldCollectionSize) { fireIntervalRemoved(CollectionConnectorListModel.this, oldCollectionSize, newCollectionSize); } } });
@Override public void valueChange(ValueChangeEvent evt) { viewComponent.setIcon(getIconFactory() .getIcon(propertyDescriptor.getIconImageURL(String.valueOf(evt.getNewValue())), getEnumerationIconDimension(propertyViewDescriptor))); } });
if (evt.getNewValue() instanceof Collection<?>) { newCollection = new ArrayList<Object>((Collection<?>) evt .getNewValue());
/** * {@inheritDoc} */ public void valueChange(ValueChangeEvent evt) { Collection<?> oldCollection = null; if (evt.getOldValue() instanceof Collection<?>) { oldCollection = (Collection<?>) evt.getOldValue(); } Collection<?> newCollection = (Collection<?>) evt.getNewValue(); int oldCollectionSize = 0; int newCollectionSize = 0; if (oldCollection != null) { oldCollectionSize = oldCollection.size(); } if (newCollection != null) { newCollectionSize = newCollection.size(); } if (newCollectionSize > oldCollectionSize) { fireTableRowsInserted(oldCollectionSize, newCollectionSize - 1); for (int row = oldCollectionSize; row < newCollectionSize; row++) { bindChildRowConnector(row); } } else if (newCollectionSize < oldCollectionSize) { fireTableRowsDeleted(newCollectionSize, oldCollectionSize - 1); } } }
public void valueChange(ValueChangeEvent evt) { ((SLabel) viewComponent).setIcon(getIconFactory().getIcon( propertyDescriptor.getIconImageURL(String.valueOf(evt .getNewValue())), getIconFactory().getTinyIconSize())); } });
setConnectorValue(evt.getNewValue()); if (!ObjectUtils.equals(potentiallyChangedValue, evt.getNewValue())) {
if (connectorPath != null) { Collection<?> oldCollection = (Collection<?>) evt.getOldValue(); Collection<?> newCollection = (Collection<?>) evt.getNewValue(); int oldCollectionSize = 0; int newCollectionSize = 0;
if (connectorPath != null) { Collection<?> oldCollection = (Collection<?>) evt.getOldValue(); Collection<?> newCollection = (Collection<?>) evt.getNewValue(); int oldCollectionSize = 0; int newCollectionSize = 0;