Search in sources :

Example 1 with UIShelf

use of org.alfresco.web.ui.repo.component.shelf.UIShelf in project acs-community-packaging by Alfresco.

the class ShelfTag method setProperties.

/**
 * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
 */
protected void setProperties(UIComponent component) {
    super.setProperties(component);
    setStringProperty(component, "groupPanel", this.groupPanel);
    setStringProperty(component, "groupBgcolor", this.groupBgcolor);
    setStringProperty(component, "selectedGroupPanel", this.selectedGroupPanel);
    setStringProperty(component, "selectedGroupBgcolor", this.selectedGroupBgcolor);
    setStringProperty(component, "innerGroupPanel", this.innerGroupPanel);
    setStringProperty(component, "innerGroupBgcolor", this.innerGroupBgcolor);
    if (this.groupExpandedActionListener != null) {
        if (isValueReference(this.groupExpandedActionListener)) {
            MethodBinding vb = getFacesContext().getApplication().createMethodBinding(this.groupExpandedActionListener, ACTION_CLASS_ARGS);
            ((UIShelf) component).setGroupExpandedActionListener(vb);
        } else {
            throw new FacesException("Shelf Group Expanded Action listener method binding incorrectly specified: " + this.groupExpandedActionListener);
        }
    }
}
Also used : UIShelf(org.alfresco.web.ui.repo.component.shelf.UIShelf) MethodBinding(javax.faces.el.MethodBinding) FacesException(javax.faces.FacesException)

Aggregations

FacesException (javax.faces.FacesException)1 MethodBinding (javax.faces.el.MethodBinding)1 UIShelf (org.alfresco.web.ui.repo.component.shelf.UIShelf)1