public class IconManager extends java.lang.Object implements XMLable
构造器和说明 |
---|
IconManager() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
addIcon(Icon icon,
boolean cover)
添加图标
|
java.lang.Object |
clone() |
boolean |
contains(java.lang.String name)
是否含有图标
添加图标 然后再判断图标存在不存在:
Icon i = new Icon("aa", ImageIO.read(new File("c:/a.jpg")));
IconManager.getIconManager().addIcon(i, true);
System.out.println(IconManager.getIconManager().contains("aa"));
|
byte[] |
getAllInOneImageBytes(java.lang.String servletURL) |
java.lang.String |
getCssFile(java.lang.String servletURL,
BrowserProvider browser) |
java.lang.String |
getCssInfo(java.lang.String name,
java.lang.String servletURL)
这里实际上就是把classname传给button,假如图标没画进去就没classname
|
java.awt.Image |
getDefaultIconImage(Icon icon) |
Icon |
getIcon(java.lang.Object obj) |
int |
getIconCount() |
java.awt.Image |
getIconImage(java.lang.String name) |
byte[] |
getIconImage4Web(java.lang.String servletURL,
java.lang.String urlName) |
static IconManager |
getIconManager()
获取图标管理类
|
java.lang.Object[] |
getIconNames() |
static long |
getLastModified() |
static boolean |
isCssChange()
css是否改变
|
boolean |
isSystemIcon(java.lang.String name)
是否是系统图标
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
refreshCss()
重置css
|
boolean |
removeIcon(java.lang.String name)
移除图标
|
static void |
setCssChange(boolean cssChange) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public static final java.lang.String XML_TAG
public static final Icon SUBMIT
public static final Icon SUBMITALL
public static final Icon SUBMITFORCILY
public static final Icon FIRST
public static final Icon PREVIOUS
public static final Icon NEXT
public static final Icon LAST
public static final Icon RELOAD
public static final Icon PAGESETUP
public static final Icon FLASHPRINT
public static final Icon PDFPRINT
public static final Icon APPLETPRINT
public static final Icon PDF
public static final Icon EXCEL
public static final Icon WORD
public static final Icon IMAGE
public static final Icon HTML
public static final Icon BMP
public static final Icon JPG
public static final Icon GIF
public static final Icon PNG
public static final Icon PRINT
public static final Icon EXPORT
public static final Icon EMAIL
public static final Icon FROZEN
public static final Icon DEFAULT
public static final Icon DELETECOLUMN
public static final Icon DELETEROW
public static final Icon APPENDCOLUMN
public static final Icon APPENDROW
public static final Icon VERIFY
public static final Icon WRITEOFFLINE
public static final Icon CLEAR
public static final Icon UNDO
public static final Icon REDO
public static final Icon VIEWPROCESS
public static final Icon ADD
public static final Icon DELETE
public static final Icon OK
public static final Icon PREVIEW
public static final Icon EDIT
public static final Icon SORT
public static final Icon ASCEND
public static final Icon DESCEND
public static final Icon FILTER
public static final Icon SETPRINTEROFFSET
public static final Icon FORM_PREVIOUS
public static final Icon FORM_NEXT
public static final Icon STASH
public static final Icon CLEARSTASH
public static final Icon CUSTOMIZEEXCEL
public static final Icon LABEL
public static final Icon FINANCE
public static final Icon FUND
public static final Icon LINK
public static final Icon LIST
public static final Icon HOMEPAGE
public static final Icon USER
public static final Icon OVERVIEW
public static final java.lang.String OP
public static final int DEFAULT_ICONWIDTH
public static final int DEFAULT_ICONHEIGHT
public static final java.lang.String ICONRESOURCE
public static IconManager getIconManager()
public void refreshCss()
public java.lang.String getCssInfo(java.lang.String name, java.lang.String servletURL)
name
- 图标名称servletURL
- servlet路径public java.lang.String getCssFile(java.lang.String servletURL, BrowserProvider browser)
public static long getLastModified()
public static boolean isCssChange()
public static void setCssChange(boolean cssChange)
public byte[] getAllInOneImageBytes(java.lang.String servletURL)
public byte[] getIconImage4Web(java.lang.String servletURL, java.lang.String urlName)
public boolean contains(java.lang.String name)
name
- 名称public boolean addIcon(Icon icon, boolean cover)
icon
- 图标cover
- 是否覆盖原有iconpublic boolean removeIcon(java.lang.String name)
name
- 名称public int getIconCount()
public boolean isSystemIcon(java.lang.String name)
name
- 名称public java.awt.Image getIconImage(java.lang.String name)
public java.awt.Image getDefaultIconImage(Icon icon)
public Icon getIcon(java.lang.Object obj) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public java.lang.Object[] getIconNames()
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常