public class SkinResourcePack extends java.lang.Object implements org.osgi.framework.BundleActivator, SkinPack
RESOURCE_NAME_DEFAULT_VALUE
RESOURCE_NAME
Constructor and Description |
---|
SkinResourcePack() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Iterator<java.lang.String> |
findResourcePaths(java.lang.String path,
java.lang.String pattern)
Finds all properties files for the given path in this bundle.
|
java.util.Map<java.lang.String,java.lang.String> |
getColorResources()
Returns a Map, containing all [key, value] pairs for color
resource pack.
|
java.lang.String |
getDescription()
Returns the description of this resource pack.
|
java.util.Map<java.lang.String,java.lang.String> |
getImageResources()
Returns a Map, containing all [key, value] pairs for image
resource pack.
|
java.lang.String |
getName()
Returns the name of this resource pack.
|
java.util.Map<java.lang.String,java.lang.String> |
getResources()
Returns a Map, containing all [key, value] pairs for this
resource pack.
|
java.util.Map<java.lang.String,java.lang.String> |
getSettingsResources()
Returns a Map, containing all [key, value] pairs for color
resource pack.
|
java.util.Map<java.lang.String,java.lang.String> |
getStyleResources()
Returns a Map, containing all [key, value] pairs for style
resource pack.
|
void |
start(org.osgi.framework.BundleContext bc)
Starts the bundle.
|
void |
stop(org.osgi.framework.BundleContext bc)
Stops the bundle.
|
public void start(org.osgi.framework.BundleContext bc) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bc
- BundleContextjava.lang.Exception
- -public void stop(org.osgi.framework.BundleContext bc) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bc
- BundleContextjava.lang.Exception
- -public java.util.Map<java.lang.String,java.lang.String> getImageResources()
getImageResources
in interface SkinPack
public java.util.Map<java.lang.String,java.lang.String> getStyleResources()
getStyleResources
in interface SkinPack
public java.util.Map<java.lang.String,java.lang.String> getColorResources()
getColorResources
in interface SkinPack
public java.util.Map<java.lang.String,java.lang.String> getSettingsResources()
getSettingsResources
in interface SkinPack
public java.util.Map<java.lang.String,java.lang.String> getResources()
getResources
in interface ResourcePack
public java.lang.String getName()
getName
in interface ResourcePack
public java.lang.String getDescription()
getDescription
in interface ResourcePack
protected static java.util.Iterator<java.lang.String> findResourcePaths(java.lang.String path, java.lang.String pattern)
path
- the path pointing to the properties files.pattern
- the pattern for properties files
(ex. "colors-*.properties")
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.