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());
}
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);
}
}
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);
}
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);
}
}
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);
}
Aggregations