Search in sources :

Example 6 with UIModeList

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

the class ModeListRenderer method encodeEnd.

/**
 * @see javax.faces.render.Renderer#encodeEnd(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
 */
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered()) {
        return;
    }
    ResponseWriter out = context.getResponseWriter();
    // end outer table
    UIModeList list = (UIModeList) component;
    if (list.isHorizontal()) {
        out.write("</tr>");
    }
    out.write("</table>");
    if (list.isMenu()) {
        // close menu hidden div section
        out.write("</div>");
    }
}
Also used : ResponseWriter(javax.faces.context.ResponseWriter) UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 7 with UIModeList

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

the class UsersDialog method viewModeChanged.

public void viewModeChanged(ActionEvent event) {
    UIModeList viewList = (UIModeList) event.getComponent();
    // update view mode from user selection
    setViewMode(viewList.getValue().toString());
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 8 with UIModeList

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

the class TrashcanDialog method userFilterChanged.

/**
 * Action handler called when the User filter is changed by the user
 */
public void userFilterChanged(ActionEvent event) {
    UIModeList filterComponent = (UIModeList) event.getComponent();
    property.setUserFilter(filterComponent.getValue().toString());
    contextUpdated();
    property.setShowItems(true);
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 9 with UIModeList

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

the class RulesDialog method filterModeChanged.

public void filterModeChanged(ActionEvent event) {
    UIModeList viewList = (UIModeList) event.getComponent();
    this.filterModeMode = viewList.getValue().toString();
    // force the list to be re-queried when the page is refreshed
    if (this.richList != null) {
        this.richList.setValue(null);
    }
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 10 with UIModeList

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

the class ForumsBean method forumViewModeChanged.

/**
 * Change the current forum view mode based on user selection
 *
 * @param event      ActionEvent
 */
public void forumViewModeChanged(ActionEvent event) {
    UIModeList viewList = (UIModeList) event.getComponent();
    // get the view mode ID
    String viewMode = viewList.getValue().toString();
    // push the view mode into the lists
    setForumViewMode(viewMode);
    // get the default for the forum page
    this.forumPageSize = this.viewsConfig.getDefaultPageSize(PAGE_NAME_FORUM, this.forumViewMode);
    if (logger.isDebugEnabled())
        logger.debug("Set default forum page size to: " + this.forumPageSize);
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Aggregations

UIModeList (org.alfresco.web.ui.common.component.UIModeList)20 ResponseWriter (javax.faces.context.ResponseWriter)5 UIComponent (javax.faces.component.UIComponent)3 UIListItems (org.alfresco.web.ui.common.component.UIListItems)3 Collection (java.util.Collection)2 Iterator (java.util.Iterator)2 FacesContext (javax.faces.context.FacesContext)2 UIListItem (org.alfresco.web.ui.common.component.UIListItem)2 Map (java.util.Map)1 MethodBinding (javax.faces.el.MethodBinding)1 ValueBinding (javax.faces.el.ValueBinding)1 AlfrescoRuntimeException (org.alfresco.error.AlfrescoRuntimeException)1 AccessDeniedException (org.alfresco.repo.security.permissions.AccessDeniedException)1 InvalidNodeRefException (org.alfresco.service.cmr.repository.InvalidNodeRefException)1