javax.rad.genui
Class UIFactoryResource<UI extends IResource>

java.lang.Object
  extended by javax.rad.genui.UIResource<UI>
      extended by javax.rad.genui.UIFactoryResource<UI>
Type Parameters:
UI - the resource type
All Implemented Interfaces:
IResource
Direct Known Subclasses:
UIColor, UIFont, UIImage

public class UIFactoryResource<UI extends IResource>
extends UIResource<UI>

The UIFactoryResource holds the resource per factory. It creates a resource copy if the resource was initialized as static resource.


Field Summary
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
UIFactoryResource(UI pResource)
          Creates a new instance of UIFactoryResource.
 
Method Summary
 Object getResource()
          Gets the original resource corresponding with this wrapper object.
 UI getUIResource()
          Gets the UI resource corresponding with this wrapper object.
 
Methods inherited from class javax.rad.genui.UIResource
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIFactoryResource

public UIFactoryResource(UI pResource)
Creates a new instance of UIFactoryResource.

Parameters:
pResource - the resource
Method Detail

getResource

public final Object getResource()
Gets the original resource corresponding with this wrapper object.

Specified by:
getResource in interface IResource
Overrides:
getResource in class UIResource<UI extends IResource>
Returns:
the original resource

getUIResource

public final UI getUIResource()
Gets the UI resource corresponding with this wrapper object.

Overrides:
getUIResource in class UIResource<UI extends IResource>
Returns:
the original resource


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.