final ElementStyleSheet editableStyleSheet = getStyleSheet();
final StyleKey[] definedKeys = editableStyleSheet.getDefinedPropertyNamesArray();
for (int i = 0; i < definedKeys.length; i++)
{
final StyleKey key = definedKeys[i];
if (key == null)
{
continue;
}
final Object value = editableStyleSheet.getStyleProperty(key);
for (int j = 0; j < visualElements.length; j++)
{
final Element element = visualElements[j];
final ElementStyleSheet elementStyleSheet = element.getStyle();
if (ObjectUtilities.equal(value, elementStyleSheet.getStyleProperty(key)) == false)
{
elementStyleSheet.setStyleProperty(key, value);
}
}
}
final Map resultExpressions = getStyleExpressions();
final Iterator iterator = resultExpressions.entrySet().iterator();
while (iterator.hasNext())
{
final Map.Entry entry = (Map.Entry) iterator.next();
final StyleKey key = (StyleKey) entry.getKey();
final Expression value = (Expression) entry.getValue();
for (int j = 0; j < visualElements.length; j++)
{
final Element element = visualElements[j];