Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.config.swing
Interface Field  view Field download Field.java


public interface Field

A Field is an interface for a visual representation of a Choice.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Method Summary
 javax.swing.JComponent getComponent()
          Get the actual component that we can add to a Panel.
 java.lang.String getValue()
          Return a string version of the current value
 void setOptions(java.lang.Object param)
          Some fields will need some extra info to display properly like the options in an options field.
 void setValue(java.lang.String value)
          Set the current value.
 

Method Detail

setOptions

public void setOptions(java.lang.Object param)
Some fields will need some extra info to display properly like the options in an options field. FieldMap calls this method with options provided by the choice.


getValue

public java.lang.String getValue()
Return a string version of the current value


setValue

public void setValue(java.lang.String value)
Set the current value.


getComponent

public javax.swing.JComponent getComponent()
Get the actual component that we can add to a Panel. (This can well be this in an implementation).