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