*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlPanelBarItem comp = (HtmlPanelBarItem) component;
if (this._contentClass != null) {
if (this._contentClass.isLiteralText()) {
try {
java.lang.String __contentClass = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._contentClass.getExpressionString(),
java.lang.String.class);
comp.setContentClass(__contentClass);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("contentClass", this._contentClass);
}
}
if (this._contentStyle != null) {
if (this._contentStyle.isLiteralText()) {
try {
java.lang.String __contentStyle = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._contentStyle.getExpressionString(),
java.lang.String.class);
comp.setContentStyle(__contentStyle);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("contentStyle", this._contentStyle);
}
}
if (this._headerClass != null) {
if (this._headerClass.isLiteralText()) {
try {
java.lang.String __headerClass = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._headerClass.getExpressionString(),
java.lang.String.class);
comp.setHeaderClass(__headerClass);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("headerClass", this._headerClass);
}
}
if (this._headerClassActive != null) {
if (this._headerClassActive.isLiteralText()) {
try {
java.lang.String __headerClassActive = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._headerClassActive.getExpressionString(),
java.lang.String.class);
comp.setHeaderClassActive(__headerClassActive);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("headerClassActive", this._headerClassActive);
}
}
if (this._headerStyle != null) {
if (this._headerStyle.isLiteralText()) {
try {
java.lang.String __headerStyle = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._headerStyle.getExpressionString(),
java.lang.String.class);
comp.setHeaderStyle(__headerStyle);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("headerStyle", this._headerStyle);
}
}
if (this._headerStyleActive != null) {
if (this._headerStyleActive.isLiteralText()) {
try {
java.lang.String __headerStyleActive = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._headerStyleActive.getExpressionString(),
java.lang.String.class);
comp.setHeaderStyleActive(__headerStyleActive);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("headerStyleActive", this._headerStyleActive);
}
}
if (this._label != null) {
if (this._label.isLiteralText()) {
try {
java.lang.String __label = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._label.getExpressionString(),
java.lang.String.class);
comp.setLabel(__label);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("label", this._label);
}
}
if (this._name != null) {
if (this._name.isLiteralText()) {
try {
java.lang.Object __name = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._name.getExpressionString(),
java.lang.Object.class);
comp.setName(__name);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("name", this._name);
}
}
if (this._onenter != null) {
if (this._onenter.isLiteralText()) {
try {
java.lang.String __onenter = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onenter.getExpressionString(),
java.lang.String.class);
comp.setOnenter(__onenter);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onenter", this._onenter);
}
}
if (this._onleave != null) {
if (this._onleave.isLiteralText()) {
try {
java.lang.String __onleave = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onleave.getExpressionString(),
java.lang.String.class);
comp.setOnleave(__onleave);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onleave", this._onleave);