com.partnersoft.gui.forms
Class FormIconField

java.lang.Object
  extended by com.partnersoft.gui.forms.AbstractFormField
      extended by com.partnersoft.gui.forms.FormIconField
All Implemented Interfaces:
FormField

public class FormIconField
extends AbstractFormField

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

Copyright 2006-2008 Partner Software, Inc.

Version:
$Id: IconField.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.gui.forms.AbstractFormField
gui
 
Constructor Summary
FormIconField()
           
 
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()
           
 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 com.partnersoft.gui.forms.AbstractFormField
addFieldListener, fireActionRequested, fireValueChanged, getGui, isDisabled, removeFieldListener, setDisabled, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormIconField

public FormIconField()
Method Detail

setImagePath

public void setImagePath(java.lang.String imagePath)

doAction

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

Specified by:
doAction in interface FormField
Overrides:
doAction in class AbstractFormField

getGUI

public javax.swing.JComponent getGUI()

getValue

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


setValue

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


valueChanged

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

Specified by:
valueChanged in interface FormField
Overrides:
valueChanged in class AbstractFormField

getShowName

public boolean getShowName()

setShowName

public void setShowName(boolean tizit)

setFixedWidth

public void setFixedWidth(int newWidth)

setFixedHeight

public void setFixedHeight(int newHeight)