|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JFCFactory
JFCFactory is an interface to object factories creating JFC widgets. The factories configure JFC widgets with localized resources based on the factory settings and additional constructor parameters. Factory implementations should accept at least a widget name and a resource bundle as constructor parameters.
| Method Summary | |
|---|---|
Border |
createEmptyBorder()
Creates an empty border of the size of the current spacing. |
Border |
createEmptyBorder(int top,
int left,
int bottom,
int right)
Creates an empty border of the specified size. |
Component |
createFiller(Dimension min,
Dimension pref,
Dimension max)
Creates a filler of the specified size. |
Component |
createGlue()
Creates glue. |
Component |
createHorizontalArea(int height)
Creates a horizontal area of the width of the current spacing. |
Component |
createHorizontalGlue()
Creates horizontal glue. |
Component |
createHorizontalStrut()
Creates a horizontal strut of the size of the current spacing. |
Component |
createRigidArea()
Creates a rigid area of the size of the current spacing. |
Component |
createRigidArea(Dimension dim)
Creates a rigid area with the specified dimensions. |
Component |
createRigidArea(int width,
int height)
Creates a rigid area of the specified size. |
Component |
createVerticalArea(int width)
Creates a vertical area of the height of the current spacing. |
Component |
createVerticalGlue()
Creates vertical glue. |
Component |
createVerticalStrut()
Creates a vertical strut of the size of the current spacing. |
Component |
findComponent(Container parent,
String path)
Finds the named component under the specified parent. |
Component |
findComponent(Container parent,
String path,
String className)
Finds the named component of the specified type under the specified parent. |
Component |
findComponent(String path)
Finds the named component. |
Component |
findComponent(String path,
String className)
Finds the named component of the specified type. |
Object |
getInstance(String className,
ObjectName loader,
String name,
Container parent)
Gets a new JFC instance for a specified parent by applying the named class loader. |
Object |
getInstance(String className,
ObjectName loader,
String name,
Container parent,
Object[] params,
String[] signature)
Gets a new JFC instance for a specified parent by applying constructor parameters and the named class loader. |
Object |
getInstance(String className,
ObjectName loader,
String name,
LookupResourceBundle bundle)
Gets a new JFC instance with specified resources by applying the named class loader. |
Object |
getInstance(String className,
ObjectName loader,
String name,
LookupResourceBundle bundle,
Object[] params,
String[] signature)
Gets a new JFC instance with specified resources by applying constructor parameters and the named class loader. |
Object |
getInstance(String className,
String name,
Container parent)
Gets a new JFC instance for a specified parent. |
Object |
getInstance(String className,
String name,
Container parent,
Object[] params,
String[] signature)
Gets a new JFC instance for a specified parent by applying constructor parameters. |
Object |
getInstance(String className,
String name,
LookupResourceBundle bundle)
Gets a new JFC instance with specified resources. |
Object |
getInstance(String className,
String name,
LookupResourceBundle bundle,
Object[] params,
String[] signature)
Gets a new JFC instance with specified resources by applying constructor parameters. |
String |
getResource(String resource,
Component component,
Container parent)
Gets the specified resource of the named component from the resource hierarchy. |
String |
getResource(String resource,
Component component,
LookupResourceBundle bundle)
Gets the specified resource of the named component from the resource bundle. |
ObjectName |
getResourceFinderName()
Gets the the resource finder of this factory. |
int |
getSpacing()
Gets the current spacing between components. |
void |
resetSystemLookAndFeel()
Resets the system specific look-and-feel. |
void |
setResourceFinderName(ObjectName finder)
Sets the resource finder of this factory. |
void |
setSpacing(int space)
Sets the current spacing between components. |
| Methods inherited from interface org.norther.tammi.core.base.ObjectFactory |
|---|
getInstance, getInstance, getInstance, getInstance, isLoaderSupported |
| Method Detail |
|---|
ObjectName getResourceFinderName()
void setResourceFinderName(ObjectName finder)
finder - the object name of the resource finder or a query.
String getResource(String resource,
Component component,
LookupResourceBundle bundle)
resource - the name of the resource.component - the named component.bundle - the resource bundle.
String getResource(String resource,
Component component,
Container parent)
resource - the name of the resource.component - the named component.parent - the parent of the component.
Object getInstance(String className,
String name,
Container parent)
throws ConstructionException
className - the class name of the component.name - the name of the component.parent - the parent of the component.
ConstructionException - if construction fails.
Object getInstance(String className,
String name,
LookupResourceBundle bundle)
throws ConstructionException
className - the class name of the component.name - the name of the component.bundle - the resource bundle.
ConstructionException - if construction fails.
Object getInstance(String className,
String name,
Container parent,
Object[] params,
String[] signature)
throws ConstructionException
className - the class name of the component.name - the name of the component.parent - the parent of the component.params - the parameters.signature - the signature.
ConstructionException - if construction fails.
Object getInstance(String className,
String name,
LookupResourceBundle bundle,
Object[] params,
String[] signature)
throws ConstructionException
className - the class name of the component.name - the name of the component.bundle - the resource bundle.params - the parameters.signature - the signature.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader,
String name,
Container parent)
throws ConstructionException
className - the class name of the component.loader - the class loader to apply.name - the name of the component.parent - the parent of the component.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader,
String name,
LookupResourceBundle bundle)
throws ConstructionException
className - the class name of the component.loader - the class loader to apply.name - the name of the component.bundle - the resource bundle.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader,
String name,
Container parent,
Object[] params,
String[] signature)
throws ConstructionException
className - the class name of the component.loader - the class loader to apply.name - the name of the component.parent - the parent of the component.params - the parameters.signature - the signature.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader,
String name,
LookupResourceBundle bundle,
Object[] params,
String[] signature)
throws ConstructionException
className - the class name of the component.loader - the class loader to apply.name - the name of the component.bundle - the resource bundle.params - the parameters.signature - the signature.
ConstructionException - if construction fails.int getSpacing()
void setSpacing(int space)
space - the spacing.Border createEmptyBorder()
Border createEmptyBorder(int top,
int left,
int bottom,
int right)
top - the top width.left - the left width.bottom - the bottom width.right - the right width.
Component createHorizontalStrut()
Component createVerticalStrut()
Component createRigidArea()
Component createRigidArea(Dimension dim)
dim - the dimensions.
Component createRigidArea(int width,
int height)
width - the width.height - the height.
Component createHorizontalArea(int height)
height - the height of the area.
Component createVerticalArea(int width)
width - the width of the area.
Component createFiller(Dimension min,
Dimension pref,
Dimension max)
min - the minimum size.pref - the preferred size.max - the maximum size.
Component createGlue()
Component createHorizontalGlue()
Component createVerticalGlue()
Component findComponent(String path)
path - the name path of the component.
Component findComponent(String path,
String className)
path - the name path of the component.className - the class name of the component.
Component findComponent(Container parent,
String path)
parent - the parent of the component.path - the name path of the component.
Component findComponent(Container parent,
String path,
String className)
parent - the parent of the component.path - the name path of the component.className - the class name of the component.
void resetSystemLookAndFeel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||