com.taursys.swing
Class NullObject

java.lang.Object
  extended bycom.taursys.swing.NullObject

public class NullObject
extends java.lang.Object

NullObject is a placeholder for a null value. It has a two properties which are intended for display purposes.

Version:
1.0
Author:
Marty Phelan

Constructor Summary
NullObject()
          Constructs a new NullObject
 
Method Summary
 javax.swing.Icon getIcon()
          Get the icon value for this NullObject.
 java.lang.String getText()
          Get the text value for this NullObject.
 void setIcon(javax.swing.Icon icon)
          Set the icon value for this NullObject.
 void setText(java.lang.String text)
          Set the text value for this NullObject.
 java.lang.String toString()
          Get the String that represents this object (default is text).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullObject

public NullObject()
Constructs a new NullObject

Method Detail

setText

public void setText(java.lang.String text)
Set the text value for this NullObject. This is typically used as a display property.

Parameters:
text - the text value for this NullObject.

getText

public java.lang.String getText()
Get the text value for this NullObject. This is typically used as a display property.

Returns:
the text value for this NullObject.

setIcon

public void setIcon(javax.swing.Icon icon)
Set the icon value for this NullObject. This is typically used as a display property.

Parameters:
icon - the icon value for this NullObject.

getIcon

public javax.swing.Icon getIcon()
Get the icon value for this NullObject. This is typically used as a display property.

Returns:
the icon value for this NullObject.

toString

public java.lang.String toString()
Get the String that represents this object (default is text).

Returns:
the String that represents this object (default is text).


Copyright © 2007 Martin T Phelan. All Rights Reserved.