org.relayirc.swingutil
Class GuiObject

java.lang.Object
  |
  +--org.relayirc.swingutil.GuiObject
Direct Known Subclasses:
GuiChannel, GuiServer, GuiUser

public class GuiObject
extends java.lang.Object

Gui object for use in Swing lists, trees, etc.

Version:
$Revision: 1.6.2.4 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Original Code: Relay-JFC Chat Client
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson
See Also:
GuiListCellRenderer

Constructor Summary
GuiObject(java.lang.String stringValue, java.lang.Object object)
           
GuiObject(java.lang.String stringValue, java.lang.Object object, javax.swing.Icon icon)
           
 
Method Summary
 javax.swing.Icon getIcon()
           
 java.lang.Object getObject()
           
 java.lang.String getString()
           
 void setIcon(javax.swing.Icon icon)
           
 void setObject(java.lang.Object object)
           
 void setString(java.lang.String stringValue)
           
 void setStringLength(int len)
          Sets the length of strings returned by toString().
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuiObject

public GuiObject(java.lang.String stringValue,
                 java.lang.Object object)

GuiObject

public GuiObject(java.lang.String stringValue,
                 java.lang.Object object,
                 javax.swing.Icon icon)
Method Detail

setStringLength

public void setStringLength(int len)
Sets the length of strings returned by toString(). Set to -1 to disable. Only allows length > 3.

getIcon

public javax.swing.Icon getIcon()

setIcon

public void setIcon(javax.swing.Icon icon)

setObject

public void setObject(java.lang.Object object)

getObject

public java.lang.Object getObject()

setString

public void setString(java.lang.String stringValue)

getString

public java.lang.String getString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object