com.notuvy.gui
Class FormField

java.lang.Object
  extended by com.notuvy.gui.FormField
Direct Known Subclasses:
FormField.Area, FormField.CheckBox, FormField.Choice, FormField.Field, FormField.Generic, FormField.Html, FormField.List

public abstract class FormField
extends Object

Represent a single field (label + component) in a form. It contains the information on how to render the component in a GridBag.

Author:
murali

Nested Class Summary
static class FormField.Area
           
static class FormField.CheckBox
           
static class FormField.Choice
           
static class FormField.Field
           
static class FormField.Generic
           
static class FormField.Html
           
static class FormField.List
           
 
Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
FormField(String pString, Font pFont, JComponent pComponent, double pVWeight, int pGridHeight, int pFill)
           
 
Method Summary
protected  void addComponent(JPanel pPanel, GridBagConstraints gbc)
           
 void addTo(JPanel pPanel, GridBagConstraints gbc)
           
 JComponent getComponent()
           
 int getFill()
           
 int getGridHeight()
           
 String getHelpText()
           
 JLabel getLabel()
           
protected abstract  Object getValue()
           
 double getVWeight()
           
protected  boolean isSeparatorAfter()
           
protected  void setHelpText(String pHelpText)
           
protected  void setSeparatorAfter(boolean pSeparatorAfter)
           
protected abstract  void setValue(Object pObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

FormField

public FormField(String pString,
                 Font pFont,
                 JComponent pComponent,
                 double pVWeight,
                 int pGridHeight,
                 int pFill)
Method Detail

getLabel

public JLabel getLabel()

getComponent

public JComponent getComponent()

getVWeight

public double getVWeight()

getGridHeight

public int getGridHeight()

getFill

public int getFill()

getHelpText

public String getHelpText()

isSeparatorAfter

protected boolean isSeparatorAfter()

setHelpText

protected void setHelpText(String pHelpText)

setSeparatorAfter

protected void setSeparatorAfter(boolean pSeparatorAfter)

addComponent

protected void addComponent(JPanel pPanel,
                            GridBagConstraints gbc)

addTo

public void addTo(JPanel pPanel,
                  GridBagConstraints gbc)

setValue

protected abstract void setValue(Object pObject)

getValue

protected abstract Object getValue()


Copyright © 2013. All Rights Reserved.