You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.4 KiB
99 lines
2.4 KiB
package de.memtext.icons; |
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import de.memtext.util.IconUtils; |
|
|
|
/** |
|
* @author MB |
|
* |
|
changed xxx |
|
*/ |
|
public class MBStandardIcons { |
|
private static ImageIcon indexBox, newDoc, copyWin, searchWin, viewingGlass, table, delete, properties; |
|
|
|
private static ClassLoader cl; |
|
|
|
/** |
|
* Constructor for StandardIcons. |
|
*/ |
|
private MBStandardIcons() { |
|
|
|
} |
|
|
|
public static ImageIcon get(String name) { |
|
return IconUtils.get("de/memtext/icons/" + name); |
|
} |
|
|
|
static { |
|
MBStandardIcons s = new MBStandardIcons(); |
|
cl = s.getClass().getClassLoader(); |
|
copyWin = new ImageIcon(cl.getResource("de/memtext/icons/copyWindows.gif")); |
|
searchWin = new ImageIcon(cl.getResource("de/memtext/icons/searchWindows.gif")); |
|
viewingGlass = new ImageIcon(cl.getResource("de/memtext/icons/viewingGlass.gif")); |
|
table = new ImageIcon(cl.getResource("de/memtext/icons/table.gif")); |
|
newDoc = new ImageIcon(cl.getResource("de/memtext/icons/newDoc.gif")); |
|
delete = new ImageIcon(cl.getResource("de/memtext/icons/delete.gif")); |
|
properties = new ImageIcon(cl.getResource("de/memtext/icons/properties.gif")); |
|
indexBox = new ImageIcon(cl.getResource("de/memtext/icons/indexBox.gif")); |
|
} |
|
|
|
public static ImageIcon getEntry() { |
|
return new ImageIcon(cl.getResource("de/memtext/icons/entry.gif")); |
|
} |
|
|
|
public static ImageIcon getCopy() { |
|
return copyWin; |
|
} |
|
|
|
public static ImageIcon getSearch() { |
|
return searchWin; |
|
} |
|
|
|
public static ImageIcon getDelete() { |
|
return delete; |
|
} |
|
|
|
public static ImageIcon getPrint() { |
|
return new ImageIcon(cl.getResource("de/memtext/icons/print.gif")); |
|
|
|
|
|
} |
|
|
|
public static ImageIcon getProperties() { |
|
return properties; |
|
} |
|
|
|
/** |
|
* Returns the table. |
|
* @return ImageIcon |
|
*/ |
|
public static ImageIcon getTable() { |
|
return table; |
|
} |
|
|
|
/** |
|
* Returns the viewingGlass. |
|
* @return ImageIcon |
|
*/ |
|
public static ImageIcon getViewingGlass() { |
|
return viewingGlass; |
|
} |
|
|
|
/** |
|
* Returns the newDoc. |
|
* @return ImageIcon |
|
*/ |
|
public static ImageIcon getNewDoc() { |
|
return newDoc; |
|
} |
|
|
|
/** |
|
* Returns the indexBox. |
|
* @return ImageIcon |
|
*/ |
|
public static ImageIcon getIndexBox() { |
|
return indexBox; |
|
} |
|
|
|
}
|
|
|