Search in sources :

Example 1 with UIPanel

use of org.alfresco.web.ui.common.component.UIPanel in project acs-community-packaging by Alfresco.

the class PanelTag method setProperties.

/**
 * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
 */
protected void setProperties(UIComponent component) {
    super.setProperties(component);
    setStringProperty(component, "label", this.label);
    setStringProperty(component, "border", this.border);
    setBooleanProperty(component, "progressive", this.progressive);
    setStringProperty(component, "bgcolor", this.bgcolor);
    setStringProperty(component, "titleBorder", this.titleBorder);
    setStringProperty(component, "titleBgcolor", this.titleBgcolor);
    setStringProperty(component, "expandedTitleBorder", this.expandedTitleBorder);
    setBooleanProperty(component, "expanded", this.expanded);
    setStringProperty(component, "facetsId", this.facetsId);
    if (expandedActionListener != null) {
        if (isValueReference(expandedActionListener)) {
            MethodBinding vb = getFacesContext().getApplication().createMethodBinding(expandedActionListener, ACTION_CLASS_ARGS);
            ((UIPanel) component).setExpandedActionListener(vb);
        } else {
            throw new FacesException("Expanded Action listener method binding incorrectly specified: " + expandedActionListener);
        }
    }
}
Also used : UIPanel(org.alfresco.web.ui.common.component.UIPanel) MethodBinding(javax.faces.el.MethodBinding) FacesException(javax.faces.FacesException)

Aggregations

FacesException (javax.faces.FacesException)1 MethodBinding (javax.faces.el.MethodBinding)1 UIPanel (org.alfresco.web.ui.common.component.UIPanel)1