com.partnersoft.gui.forms
Class FormIconPicklistField

java.lang.Object
  extended by com.partnersoft.gui.forms.AbstractFormField<java.lang.String>
      extended by com.partnersoft.gui.forms.FormIconPicklistField
All Implemented Interfaces:
FormField<java.lang.String>

public class FormIconPicklistField
extends AbstractFormField<java.lang.String>

A FormField implemented with a JComboBox containing icons. Values are represented as the icon basenames, not the icons themselves.

Copyright 2004-2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.gui.forms.AbstractFormField
gui
 
Constructor Summary
FormIconPicklistField()
           
FormIconPicklistField(ImageFactory imageFactory)
           
 
Method Summary
 int getFixedHeight()
           
 int getFixedWidth()
           
 javax.swing.JComboBox getJComboBox()
           
 int getSelectedIndex()
           
 java.lang.String getValue()
          Returns the current value for this field.
 boolean isShowName()
           
 void setFixedHeight(int fixedHeight)
           
 void setFixedWidth(int fixedWidth)
           
 void setImageFactory(ImageFactory newImageFactory)
           
 void setModel(javax.swing.ComboBoxModel newModel)
           
 void setSelectedIndex(int newIndex)
           
 void setShowName(boolean showName)
           
 void setValue(java.lang.String newItem)
          Sets the current value for this field.
 
Methods inherited from class com.partnersoft.gui.forms.AbstractFormField
addFieldListener, doAction, fireActionRequested, fireValueChanged, getGui, isDisabled, removeFieldListener, setDisabled, setToolTipText, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormIconPicklistField

public FormIconPicklistField()

FormIconPicklistField

public FormIconPicklistField(ImageFactory imageFactory)
Method Detail

setModel

public void setModel(javax.swing.ComboBoxModel newModel)

getSelectedIndex

public int getSelectedIndex()

setSelectedIndex

public void setSelectedIndex(int newIndex)

getValue

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


setValue

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


setImageFactory

public void setImageFactory(ImageFactory newImageFactory)

getJComboBox

public javax.swing.JComboBox getJComboBox()

isShowName

public boolean isShowName()

setShowName

public void setShowName(boolean showName)

getFixedWidth

public int getFixedWidth()

setFixedWidth

public void setFixedWidth(int fixedWidth)

getFixedHeight

public int getFixedHeight()

setFixedHeight

public void setFixedHeight(int fixedHeight)