to.etc.domui.parts
Class PartUtil

java.lang.Object
  extended by to.etc.domui.parts.PartUtil

public class PartUtil
extends java.lang.Object


Method Summary
static java.awt.Font getFont(java.lang.String family, java.lang.String styles, int size)
          Locates the optimal font in a font string.
static int getInt(IParameterInfo param, java.lang.String name, int def)
           
static IParameterInfo getParameters(java.lang.String in)
           
static java.lang.String getURI(java.lang.String in)
           
static java.awt.image.BufferedImage loadImage(DomApplication da, java.lang.String in, IResourceDependencyList rdl)
          Load an image, either thru a resource (when the part starts with RES) or as a webapp file.
static java.util.Properties loadProperties(DomApplication da, java.lang.String src, IResourceDependencyList rdl)
          Loads a properties file from a resource string.
static java.awt.Color makeColor(java.lang.String col)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInt

public static int getInt(IParameterInfo param,
                         java.lang.String name,
                         int def)

loadProperties

@Nonnull
public static java.util.Properties loadProperties(DomApplication da,
                                                          java.lang.String src,
                                                          IResourceDependencyList rdl)
                                           throws java.lang.Exception
Loads a properties file from a resource string.

Parameters:
da -
src -
Returns:
Throws:
java.lang.Exception

getURI

public static java.lang.String getURI(java.lang.String in)

getParameters

public static IParameterInfo getParameters(java.lang.String in)

loadImage

public static java.awt.image.BufferedImage loadImage(DomApplication da,
                                                     java.lang.String in,
                                                     @Nonnull
                                                     IResourceDependencyList rdl)
                                              throws java.lang.Exception
Load an image, either thru a resource (when the part starts with RES) or as a webapp file.

Parameters:
r -
image -
depset -
Returns:
Throws:
java.lang.Exception

makeColor

public static java.awt.Color makeColor(java.lang.String col)

getFont

public static java.awt.Font getFont(java.lang.String family,
                                    java.lang.String styles,
                                    int size)
Locates the optimal font in a font string.

Parameters:
family -
styles -
Returns: