com.partnersoft.gui
Class IconField

java.lang.Object
  extended by com.partnersoft.gui.IconField
All Implemented Interfaces:
GUIField

public class IconField
extends java.lang.Object
implements GUIField

An icon-selection field. The data stored is the name of an image from an ImageFactory.

Copyright 2006 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
IconField()
           
 
Method Summary
 void doAction()
          This does different things depending on the field; for example in a text field it indicates return was hit.
 javax.swing.JComponent getGUI()
          Returns the GUI component for this field.
 boolean getShowName()
           
 java.lang.Object getValue()
          Returns the current value for this field.
 void setFixedHeight(int newHeight)
           
 void setFixedWidth(int newWidth)
           
 void setImagePath(java.lang.String imagePath)
           
 void setShowName(boolean tizit)
           
 void setValue(java.lang.Object newValue)
          Sets the current value for this field.
 void valueChanged(java.lang.Object newValue)
          When the value changes, this is run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconField

public IconField()
Method Detail

setImagePath

public void setImagePath(java.lang.String imagePath)

doAction

public void doAction()
Description copied from interface: GUIField
This does different things depending on the field; for example in a text field it indicates return was hit.

Specified by:
doAction in interface GUIField

getGUI

public javax.swing.JComponent getGUI()
Description copied from interface: GUIField
Returns the GUI component for this field.

Specified by:
getGUI in interface GUIField

getValue

public java.lang.Object getValue()
Description copied from interface: GUIField
Returns the current value for this field.

Specified by:
getValue in interface GUIField

setValue

public void setValue(java.lang.Object newValue)
Description copied from interface: GUIField
Sets the current value for this field.

Specified by:
setValue in interface GUIField

valueChanged

public void valueChanged(java.lang.Object newValue)
Description copied from interface: GUIField
When the value changes, this is run. Use as a more convenient form of event handling.

Specified by:
valueChanged in interface GUIField

getShowName

public boolean getShowName()

setShowName

public void setShowName(boolean tizit)

setFixedWidth

public void setFixedWidth(int newWidth)

setFixedHeight

public void setFixedHeight(int newHeight)