if (value != null)
{
if (isValueReference(value))
{
ValueBinding binding = createValueBinding(value);
command.setValueBinding(
"value",
binding);
}
else
{
command.setValue(value);
}
}
if (accesskey != null)
{
if (isValueReference(accesskey))
{
ValueBinding binding = createValueBinding(accesskey);
command.setValueBinding(
"accesskey",
binding);
}
else
{
command.getAttributes().put(
"accesskey",
accesskey);
}
}
if (dir != null)
{
if (isValueReference(dir))
{
ValueBinding binding = createValueBinding(dir);
command.setValueBinding(
"dir",
binding);
}
else
{
command.getAttributes().put(
"dir",
dir);
}
}
if (lang != null)
{
if (isValueReference(lang))
{
ValueBinding binding = createValueBinding(lang);
command.setValueBinding(
"lang",
binding);
}
else
{
command.getAttributes().put(
"lang",
lang);
}
}
if (tabindex != null)
{
if (isValueReference(tabindex))
{
ValueBinding binding = createValueBinding(tabindex);
command.setValueBinding(
"tabindex",
binding);
}
else
{
command.getAttributes().put(
"tabindex",
tabindex);
}
}
if (title != null)
{
if (isValueReference(title))
{
ValueBinding binding = createValueBinding(title);
command.setValueBinding(
"title",
binding);
}
else
{
command.getAttributes().put(
"title",
title);
}
}
if (style != null)
{
if (isValueReference(style))
{
ValueBinding binding = createValueBinding(style);
command.setValueBinding(
"style",
binding);
}
else
{
command.getAttributes().put(
"style",
style);
}
}
if (styleClass != null)
{
if (isValueReference(styleClass))
{
ValueBinding binding = createValueBinding(styleClass);
command.setValueBinding(
"styleClass",
binding);
}
else
{
command.getAttributes().put(
"styleClass",
styleClass);
}
}
if (absolute != null)
{
if (isValueReference(absolute))
{
ValueBinding binding = createValueBinding(absolute);
command.setValueBinding(
"absolute",
binding);
}
else
{
command.getAttributes().put(
"absolute",
absolute);
}
}
if (actionClose != null)
{
if (isValueReference(actionClose))
{
final MethodBinding binding = this.createMethodBinding(
actionClose,
new Class[0]);
command.setActionClose(binding);
}
else
{
throw new IllegalStateException("Invalid actionClose." + actionClose);
}
}
if (actionOpen != null)
{
if (isValueReference(actionOpen))
{
final MethodBinding binding = this.createMethodBinding(
actionOpen,
new Class[0]);
command.setActionOpen(binding);
}
else
{
throw new IllegalStateException("Invalid actionOpen." + actionOpen);
}
}
if (center != null)
{
if (isValueReference(center))
{
ValueBinding binding = createValueBinding(center);
command.setValueBinding(
"center",
binding);
}
else
{
command.getAttributes().put(
"center",
center);
}
}
if (immediate != null)
{
if (isValueReference(immediate))
{
ValueBinding binding = createValueBinding(immediate);
command.setValueBinding(
"immediate",
binding);
}
else
{
command.getAttributes().put(
"immediate",
immediate);
}
}
if (height != null)
{
if (isValueReference(height))
{
ValueBinding binding = createValueBinding(height);
command.setValueBinding(
"height",
binding);
}
else
{
command.getAttributes().put(
"height",
height);
}
}
if (width != null)
{
if (isValueReference(width))
{
ValueBinding binding = createValueBinding(width);
command.setValueBinding(
"width",
binding);
}
else
{
command.getAttributes().put(
"width",
width);
}
}
if (mouseHorizPos != null)
{
if (isValueReference(mouseHorizPos))
{
ValueBinding binding = createValueBinding(mouseHorizPos);
command.setValueBinding(
"mouseHorizPos",
binding);
}
else
{
command.getAttributes().put(
"mouseHorizPos",
mouseHorizPos);
}
}
if (mouseVertPos != null)
{
if (isValueReference(mouseVertPos))
{
ValueBinding binding = createValueBinding(mouseVertPos);
command.setValueBinding(
"mouseVertPos",
binding);
}
else
{
command.getAttributes().put(
"mouseVertPos",
mouseVertPos);
}
}
if (styleClassFrame != null)
{
if (isValueReference(styleClassFrame))
{
ValueBinding binding = createValueBinding(styleClassFrame);
command.setValueBinding(
"styleClassFrame",
binding);
}
else
{
command.getAttributes().put(
"styleClassFrame",
styleClassFrame);
}
}
if (styleFrame != null)
{
if (isValueReference(styleFrame))
{
ValueBinding binding = createValueBinding(styleFrame);
command.setValueBinding(
"styleFrame",
binding);
}
else
{
command.getAttributes().put(
"styleFrame",
styleFrame);
}
}
if (scrolling != null)
{
if (isValueReference(scrolling))
{
ValueBinding binding = createValueBinding(scrolling);
command.setValueBinding(
"scrolling",
binding);
}
else