com.sibvisions.rad.ui.qt.impl
Class QtResource<R>

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<R>
Type Parameters:
R - encapsulated resource type
All Implemented Interfaces:
IResource
Direct Known Subclasses:
QtBorderLayout, QtCellFormat, QtColor, QtComponentBase, QtCursor, QtDimension, QtFlowLayout, QtFont, QtFormLayout, QtFormLayout.QtAnchor, QtFormLayout.QtConstraints, QtImage, QtInsets, QtNullLayout, QtPoint, QtRectangle

public class QtResource<R>
extends Object
implements IResource

A class to encapsulate any QT resource.


Field Summary
protected  R resource
          Encapsulated resource.
 
Constructor Summary
protected QtResource(R pResource)
          Creates an encapsulated instance of QtResource 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

QtResource

protected QtResource(R pResource)
Creates an encapsulated instance of QtResource 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.