Search in sources :

Example 11 with UIModeList

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

the class GroupsDialog 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 12 with UIModeList

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

the class UISidebar method encodeChildren.

@Override
public void encodeChildren(FacesContext context) throws IOException {
    if (!isRendered())
        return;
    if (getChildren().size() == 3) {
        ResponseWriter out = context.getResponseWriter();
        out.write("<table border='0' cellpadding='6' cellspacing='0' width='100%;'><tr><td>");
        // render the list
        UIModeList modeList = (UIModeList) getChildren().get(0);
        Utils.encodeRecursive(context, modeList);
        out.write("</td><td align='right'>");
        // render the actions
        UIActions actions = (UIActions) getChildren().get(1);
        Utils.encodeRecursive(context, actions);
        out.write("</td></tr></table>");
        // render the end of the header panel
        String cxPath = context.getExternalContext().getRequestContextPath();
        out.write("</td><td style='width: 5px; background-image: url(");
        out.write(cxPath);
        out.write("/images/parts/sidebar_top_grey_end.gif)' align='right' valign='top'>" + "<img src='");
        out.write(cxPath);
        out.write("/images/parts/sidebar_grey_03.gif' width='5' height='5' alt=''></td></tr>" + "</table><table cellspacing='0' cellpadding='0' width='100%'>" + "<tr><td width='100%' id='pluginBox'>");
        // render the plugin
        UIComponent plugin = (UIComponent) getChildren().get(2);
        Utils.encodeRecursive(context, plugin);
    }
}
Also used : ResponseWriter(javax.faces.context.ResponseWriter) UIComponent(javax.faces.component.UIComponent) UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 13 with UIModeList

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

the class AdvancedSearchDialog method savedSearchModeChanged.

/**
 * Change the current saved searches list mode based on user selection
 */
public void savedSearchModeChanged(ActionEvent event) {
    UIModeList savedModeList = (UIModeList) event.getComponent();
    // get the saved searches list mode
    String viewMode = savedModeList.getValue().toString();
    // persist
    properties.setSavedSearchMode(viewMode);
    // clear existing caches and values
    // the values will be re-queried when the client requests the saved searches list
    properties.getCachedSavedSearches().clear();
    properties.setSavedSearch(null);
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 14 with UIModeList

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

the class UserMembersBean method filterModeChanged.

// ------------------------------------------------------------------------------
// FilterViewSupport implementation
/**
 * @see org.alfresco.web.bean.dialog.FilterViewSupport#filterModeChanged(javax.faces.event.ActionEvent)
 */
public void filterModeChanged(ActionEvent event) {
    UIModeList viewList = (UIModeList) event.getComponent();
    setFilterMode(viewList.getValue().toString());
    // force the list to be re-queried when the page is refreshed
    if (this.usersRichList != null) {
        this.usersRichList.setValue(null);
    }
}
Also used : UIModeList(org.alfresco.web.ui.common.component.UIModeList)

Example 15 with UIModeList

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

the class TrashcanDialog method dateFilterChanged.

/**
 * Action handler called when the Date filter is changed by the user
 */
public void dateFilterChanged(ActionEvent event) {
    UIModeList filterComponent = (UIModeList) event.getComponent();
    property.setDateFilter(filterComponent.getValue().toString());
    contextUpdated();
    property.setShowItems(true);
}
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