001/* 002 * Copyright 2010 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.cms.clientsideelement.styles; 017 018import java.util.Collections; 019import java.util.List; 020import java.util.Map; 021 022/** 023 * Implementation that anwsers nothing 024 */ 025public class EmptyHTMLEditorStyleExtension implements HTMLEditorStyleExtensionPoint 026{ 027 private List<Style> _styles = Collections.emptyList(); 028 private StyleCategory _emptyStyleCategory = new StyleCategory(Collections.EMPTY_SET, Collections.EMPTY_SET, _styles); 029 030 @Override 031 public StyleCategory getPara(Map<String, Object> contextualParameters) 032 { 033 return _emptyStyleCategory; 034 } 035 036 @Override 037 public StyleCategory getTable(Map<String, Object> contextualParameters) 038 { 039 return _emptyStyleCategory; 040 } 041 042 @Override 043 public StyleCategory getImage(Map<String, Object> contextualParameters) 044 { 045 return _emptyStyleCategory; 046 } 047 048 @Override 049 public StyleCategory getLink(Map<String, Object> contextualParameters) 050 { 051 return _emptyStyleCategory; 052 } 053 054 @Override 055 public StyleCategory getOrderedList(Map<String, Object> contextualParameters) 056 { 057 return _emptyStyleCategory; 058 } 059 060 @Override 061 public StyleCategory getUnorderedList(Map<String, Object> contextualParameters) 062 { 063 return _emptyStyleCategory; 064 } 065}