package com.acme.resource.bundle;


import java.awt.Color;

import java.util.ListResourceBundle;


public class VisualResourceBundle extends ListResourceBundle
{

    @Override
    protected Object[][] getContents()
    {
        return contents;
    }

    private Object[][] contents = {
        // {"color_selectedbackground", new Color(115,145,250)},
        { "color_selectedbackground", new Color(145, 175, 255) }, 
        { "color_stdbackground_blue", new Color(225, 225, 235) },
        { "color_stdbackground", new Color(212, 208, 200) }, 
        { "color_mainwindow", new Color(240, 240, 240) }, 
        { "color_stdfont", new Color(0, 0, 240) },
        { "color_component", new Color(255, 255, 255) },
        { "color_disabledcomponent", new Color(225, 225, 235) }, 
        { "color_disabledfont", new Color(150, 150, 170) },
        { "claim", "/adf/appimages/claim.png" }, 
        { "detail_header", "/adf/appimages/detail_header.png" }, 
        { "download_file_small", "/adf/appimages/download_file_small.png" }, 
        { "download_file", "/adf/appimages/download_file.png" }, 
        { "upload_file_16", "/adf/appimages/upload_file_16.png" }, 
        { "upload_file", "/adf/appimages/upload_file.png" }, 
        { "header_bg", "/adf/appimages/header_bg.png" }, 
        { "release", "/adf/appimages/release.png" }, 
        { "greenwarn", "/adf/appimages/greenwarn.png" }, 
        { "orangewarn", "/adf/appimages/orangewarn.png" }, 
        { "bluewarn", "/adf/appimages/bluewarn.png" }, 
        { "redwarn", "/adf/appimages/redwarn.png" }, 
        { "yellowwarn", "/adf/appimages/yellowwarn.png" }, 
        { "process24", "/adf/appimages/process24.png" },
        { "process16", "/adf/appimages/process16.png" }, 
        { "sil_buton", "/adf/appimages/sil_buton.png" }, 
        { "uye_ekle_pasif", "/adf/appimages/uye_ekle_pasif.png" },
        { "uye_ekle", "/adf/appimages/uye_ekle.png" },
        { "task_completed", "/adf/appimages/task_completed.png" },
        { "task_initiated", "/adf/appimages/task_initiated.png" },
        { "task_released", "/adf/appimages/task_released.png" },
        { "task_updated", "/adf/appimages/task_updated.png" }, 
        { "task_acquired", "/adf/appimages/task_completed.png" },
        { "show_doc_revision", "/adf/appimages/show_doc_revision.png" },
        { "remove", "/adf/appimages/remove.png" }, 
        { "tlb_btn_refresh", "/adf/appimages/refresh.png" }, 
        { "tlb_btn_add", "/adf/appimages/tlb_btn_add.png" }, 
        { "tlb_btn_remove", "/adf/appimages/tlb_btn_remove.png" }, 
        { "tlb_btn_close", "/adf/appimages/tlb_btn_close.png" }, 
        { "tlb_btn_copy", "/adf/appimages/tlb_btn_copy.png" }, 
        { "tlb_btn_history", "/adf/appimages/tlb_btn_history.png" }, 
        { "tlb_btn_paste", "/adf/appimages/tlb_btn_paste.png" }, 
        { "tlb_btn_previous", "/adf/appimages/tlb_btn_previous.png" }, 
        { "tlb_btn_print", "/adf/appimages/tlb_btn_print.png" }, 
        { "tlb_btn_next", "/adf/appimages/tlb_btn_next.png" }, 
        { "tlb_btn_save", "/adf/appimages/tlb_btn_save.png" }, 
        { "tlb_btn_search", "/adf/appimages/tlb_btn_search.png" }, 
        { "tlb_btn_load", "/adf/appimages/tlb_btn_load.png" }, 
        };


    public static String createRichImageURL(String path)
    {
        //InputStream asStream = VisualResourceBundle.class.getResourceAsStream("/com/arsivist/resource/appimages/" + path);
        String imgURI=null;

        try
        {
            imgURI = VisualResourceBundle.class.getResource("//" + path).toString();
        }
        catch (Exception e)
        {
            e.printStackTrace();
            return null;
        }
        return imgURI;
    }
}
