com.sibvisions.rad.ui.awt.impl
Class AwtResource<R>

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<R>
Type Parameters:
R - encapsulated resource type
All Implemented Interfaces:
IResource
Direct Known Subclasses:
AwtBorderLayout, AwtColor, AwtComponent, AwtCursor, AwtDimension, AwtFlowLayout, AwtFont, AwtFormLayout, AwtFormLayout.AwtAnchor, AwtFormLayout.AwtConstraints, AwtImage, AwtInsets, AwtPoint, AwtRectangle, SwingCellFormat, SwingImage

public class AwtResource<R>
extends Object
implements IResource

A class to encapsulate any AWT resource.


Field Summary
protected  R resource
          Encapsulated resource.
 
Constructor Summary
protected AwtResource(R pResource)
          Creates an encapsulated instance of AwtResource with the specified type R.
 
Method Summary
 boolean equals(Object pObject)
          
 R getResource()
          Gets the original resource corresponding with this wrapper object.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

resource

protected R resource
Encapsulated resource.

Constructor Detail

AwtResource

protected AwtResource(R pResource)
Creates an encapsulated instance of AwtResource with the specified type R.

Parameters:
pResource - base resource
Method Detail

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

getResource

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

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.