|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.AbstractUIScheme<javax.swing.Icon,DockIcon,DockIconBridge>
bibliothek.gui.dock.util.icon.AbstractIconScheme
bibliothek.gui.dock.util.icon.DefaultIconScheme
public class DefaultIconScheme
This default implementation of an UIScheme for Icons reads an ini-file
which consists of "key=icon-path" pairs, and loads all the icons described in that
ini file when needed.
| Nested Class Summary | |
|---|---|
static class |
DefaultIconScheme.IconResource
A helper class describing a source for icons |
| Constructor Summary | |
|---|---|
DefaultIconScheme(DockController controller,
DefaultIconScheme.IconResource... resources)
Creates a new scheme loading icons from all the specified resources. |
|
DefaultIconScheme(java.lang.String file,
java.lang.ClassLoader loader,
DockController controller)
Creates a new scheme loading first the contents of the ini file file and
then the icons that are found by analyzing the content of file. |
|
DefaultIconScheme(java.lang.String file,
DockController controller)
Creates a new scheme loading first the contents of the ini file file and
then the icons that are found by analyzing the content of file. |
|
| Method Summary | |
|---|---|
protected void |
changed(java.lang.String id,
javax.swing.Icon icon)
Called if property accessed through a PropertyKey changed its value. |
DockIconBridge |
getBridge(Path name,
UIProperties<javax.swing.Icon,DockIcon,DockIconBridge> properties)
Creates the UIBridge that handles resources of type name. |
javax.swing.Icon |
getResource(java.lang.String name,
UIProperties<javax.swing.Icon,DockIcon,DockIconBridge> properties)
Creates the resource with name name. |
| Methods inherited from class bibliothek.gui.dock.util.icon.AbstractIconScheme |
|---|
install, link, uninstall, unlink |
| Methods inherited from class bibliothek.gui.dock.util.AbstractUIScheme |
|---|
addListener, fire, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIconScheme(java.lang.String file,
DockController controller)
file and
then the icons that are found by analyzing the content of file.
file - the file to readcontroller - the DockController in whose realm this scheme will be used
public DefaultIconScheme(java.lang.String file,
java.lang.ClassLoader loader,
DockController controller)
file and
then the icons that are found by analyzing the content of file.
file - the file to readloader - the ClassLoader whose ClassLoader.getResource(String) method
will be used to load any filescontroller - the DockController in whose realm this scheme will be used
@Todo(priority=MAJOR,
compatibility=BREAK_MINOR,
target=VERSION_1_1_1,
description="get rid of the Overflow-menu-icon")
public DefaultIconScheme(DockController controller,
DefaultIconScheme.IconResource... resources)
controller - the DockController in whose realm this scheme will be usedresources - a list of files with "key=path" lines telling key and path of the icons to load. If a key
appears more than once, then the last occurance of the key wins| Method Detail |
|---|
public DockIconBridge getBridge(Path name,
UIProperties<javax.swing.Icon,DockIcon,DockIconBridge> properties)
UISchemeUIBridge that handles resources of type name.
name - the name of the bridgeproperties - the map that will use the resource
null if this scheme does not know name
public javax.swing.Icon getResource(java.lang.String name,
UIProperties<javax.swing.Icon,DockIcon,DockIconBridge> properties)
UISchemename. This method may be called often
and should complete quickly.
name - the name of some resourceproperties - the map that will use the resource
null if this scheme does not know name
protected void changed(java.lang.String id,
javax.swing.Icon icon)
AbstractIconSchemePropertyKey changed its value.
changed in class AbstractIconSchemeid - the identifier of the value that changedicon - the new value, can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||