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

java.lang.Object
  extended by javax.rad.genui.UIResource<UI>
Type Parameters:
UI - the corresponding UI Resource.
All Implemented Interfaces:
IResource
Direct Known Subclasses:
UICellFormat, UIComponent, UICursor, UIDimension, UIInsets, UILayout, UIPoint, UIRectangle

public abstract class UIResource<UI extends IResource>
extends Object
implements IResource

Platform and technology independent wrapper for IFactory Resource.


Field Summary
protected  UI uiResource
          The IFactory Resource.
 
Constructor Summary
protected UIResource(UI pUIResource)
          Constructs a new UIResource.
 
Method Summary
 boolean equals(Object pObject)
          
 Object getObject(String pObjectName)
          Get the specific Object.
 Collection<String> getObjectNames()
          Gets a Collection of all object names that are currently stored as property on this resource.
 Object getResource()
          Gets the original resource corresponding with this wrapper object.
 UI getUIResource()
          Gets the UI resource corresponding with this wrapper object.
 int hashCode()
          
 Object putObject(String pObjectName, Object pObject)
          Puts the specific property.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uiResource

protected UI extends IResource uiResource
The IFactory Resource.

Constructor Detail

UIResource

protected UIResource(UI pUIResource)
Constructs a new UIResource.

Parameters:
pUIResource - the IFactory Resource.
Method Detail

getResource

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

Specified by:
getResource in interface IResource
Returns:
the original resource

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

getUIResource

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

Returns:
the original resource

getObject

public Object getObject(String pObjectName)
Get the specific Object.

Parameters:
pObjectName - the property name.
Returns:
the property value.
See Also:
getObjectNames(), putObject(String, Object)

getObjectNames

public Collection<String> getObjectNames()
Gets a Collection of all object names that are currently stored as property on this resource. Returns an empty Collection if there are no objects put. The returned Collection is a copy of the original collection of names.

Returns:
the Collection of all object names. If there are no objects put, returns an empty Collection.
See Also:
getObject(String), putObject(String, Object)

putObject

public Object putObject(String pObjectName,
                        Object pObject)
Puts the specific property.

Parameters:
pObjectName - the property name.
pObject - the property values.
Returns:
the old pObject.
See Also:
getObject(String), getObjectNames()


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.