/* * Copyright (c) 2010, Michael Grossmann * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the jo-widgets.org nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. */ package org.jowidgets.impl.image; import org.jowidgets.api.image.IconsSmall; import org.jowidgets.common.image.IImageRegistry; import org.jowidgets.common.image.IconsCommon; import org.jowidgets.common.image.IconsSmallCommon; public class DefaultIconsRegisterService extends ImageConstantRegisterService { public DefaultIconsRegisterService(final IImageRegistry imageRegistry) { super("org/jowidgets/impl/images/icons/", imageRegistry); } public void registerImages() { registerImage(IconsSmall.EMPTY, "empty.png"); registerImage(IconsSmall.OK, "ok.png"); registerImage(IconsSmall.OK_GREYED, "ok_greyed.png"); registerImage(IconsSmall.POPUP_ARROW, "popup_arrow.png"); registerImage(IconsCommon.FALLBACK_INFO, "empty.png"); registerImage(IconsCommon.FALLBACK_ERROR, "empty.png"); registerImage(IconsCommon.FALLBACK_QUESTION, "empty.png"); registerImage(IconsCommon.FALLBACK_WARNING, "empty.png"); registerImage(IconsSmallCommon.CLOSE, "close.png"); registerImage(IconsSmallCommon.CLOSE_MOUSEOVER, "close_mouseover.png"); registerImage(IconsSmall.NAVIGATION_FIRST_TINY, "nav_first_tiny.gif"); registerImage(IconsSmall.NAVIGATION_FIRST2_TINY, "nav_first2_tiny.gif"); registerImage(IconsSmall.NAVIGATION_NEXT_TINY, "nav_next_tiny.gif"); registerImage(IconsSmall.NAVIGATION_STOP_TINY, "nav_stop_tiny.gif"); registerImage(IconsSmall.NAVIGATION_PAUSE_TINY, "nav_pause_tiny.gif"); registerImage(IconsSmall.NAVIGATION_PREVIOUS_TINY, "nav_prev_tiny.gif"); registerImage(IconsSmall.NAVIGATION_LAST_TINY, "nav_last_tiny.gif"); registerImage(IconsSmall.NAVIGATION_LAST2_TINY, "nav_last2_tiny.gif"); registerImage(IconsSmall.NAVIGATION_FORWARD_TINY, "nav_forward_tiny.gif"); registerImage(IconsSmall.NAVIGATION_BACKWARD_TINY, "nav_backward_tiny.gif"); registerImage(IconsSmall.MOVE_UP, "move_up.gif"); registerImage(IconsSmall.MOVE_DOWN, "move_down.gif"); registerImage(IconsSmall.TABLE_SORT_DESC, "table_sort_desc.gif"); registerImage(IconsSmall.TABLE_SORT_ASC, "table_sort_asc.gif"); registerImage(IconsSmall.TABLE_SORT_FILTER_DESC, "table_sort_filter_desc.gif"); registerImage(IconsSmall.TABLE_SORT_FILTER_ASC, "table_sort_filter_asc.gif"); registerImage(IconsSmall.TABLE_FILTER, "table_filter.gif"); registerImage(IconsSmall.EXPAND_DOWN, "expand_down.png"); registerImage(IconsSmall.EXPAND_UP, "expand_up.png"); registerImage(IconsSmall.ADD, "add.gif"); registerImage(IconsSmall.ADD_GREEN, "add_green.gif"); registerImage(IconsSmall.ADD_ALL, "add_all.gif"); registerImage(IconsSmall.SUB, "sub.gif"); registerImage(IconsSmall.DELETE, "delete.gif"); registerImage(IconsSmall.DELETE_TINY, "delete_tiny.png"); registerImage(IconsSmall.DELETE_GREY_TINY, "delete_grey_tiny.png"); registerImage(IconsSmall.SETTINGS, "settings.gif"); registerImage(IconsSmall.COPY, "copy.png"); registerImage(IconsSmall.PASTE, "paste.png"); registerImage(IconsSmall.EDIT, "edit.png"); registerImage(IconsSmall.FOLDER, "folder.png"); registerImage(IconsSmall.PAGE_WHITE, "page_white.png"); registerImage(IconsSmall.DISK, "disk.png"); registerImage(IconsSmall.CANCEL, "cancel.png"); registerImage(IconsSmall.REFRESH, "refresh.png"); registerImage(IconsSmall.UNDO, "undo.png"); registerImage(IconsSmall.FILTER, "filter.png"); registerImage(IconsSmall.FILTER_INCLUDING, "filter_including.png"); registerImage(IconsSmall.FILTER_EXCLUDING, "filter_excluding.png"); registerImage(IconsSmall.FILTER_EDIT, "filter_edit.png"); registerImage(IconsSmall.FILTER_DELETE, "filter_delete.png"); registerImage(IconsSmall.EXPAND_ALL, "expand_all.png"); registerImage(IconsSmall.COLLAPSE_ALL, "collapse_all.png"); registerImage(IconsSmall.EXPAND_COLLAPSE_ALL, "expand_collapse_all.png"); registerImage(IconsSmall.EXPAND_ALL_CHECKED, "expand_all_checked.png"); registerImage(IconsSmall.CHECK_ALL, "check_all.png"); registerImage(IconsSmall.UNCHECK_ALL, "uncheck_all.png"); registerImage(IconsSmall.WAIT_1, "wait_1.png"); registerImage(IconsSmall.WAIT_2, "wait_2.png"); registerImage(IconsSmall.WAIT_3, "wait_3.png"); registerImage(IconsSmall.WAIT_4, "wait_4.png"); } }