proper.gui.experiment
Class BuilderParameter

java.lang.Object
  extended by proper.gui.experiment.BuilderParameter

public class BuilderParameter
extends java.lang.Object

This class is just a container for values for fields in the Builder.

Version:
$Revision: 1.2 $
Author:
FracPete

Constructor Summary
BuilderParameter(javax.swing.JComponent component, java.lang.String label, boolean optional, javax.swing.JComponent useComponent, boolean use, java.lang.String value, java.lang.String parameter)
          initializes the object
 
Method Summary
 javax.swing.JComponent getComponent()
          returns the component
 java.lang.String getLabel()
          returns the label for the component
 java.lang.String getParameter()
          returns the command line parameter
 javax.swing.JComponent getUseComponent()
          returns the component that is for checking the "use"
 java.lang.String getValue()
          returns the default value of the field
 boolean isOptional()
          returns whether it is an optional field
 boolean isUsed()
          returns whether the component is used normally
 java.lang.String toString()
          returns the container in a string representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuilderParameter

public BuilderParameter(javax.swing.JComponent component,
                        java.lang.String label,
                        boolean optional,
                        javax.swing.JComponent useComponent,
                        boolean use,
                        java.lang.String value,
                        java.lang.String parameter)
initializes the object

Parameters:
component - the component that is displayed
label - the label for this component
optional - whether this is an optional component
useComponent - the "Checkbox" that controls whether this parameter appears in the XML or not
use - the default of the CheckBox
value - the default value of the component
parameter - the command line parameter (w/o "-")
Method Detail

getComponent

public javax.swing.JComponent getComponent()
returns the component


isOptional

public boolean isOptional()
returns whether it is an optional field


getUseComponent

public javax.swing.JComponent getUseComponent()
returns the component that is for checking the "use"


isUsed

public boolean isUsed()
returns whether the component is used normally


getValue

public java.lang.String getValue()
returns the default value of the field


getParameter

public java.lang.String getParameter()
returns the command line parameter


getLabel

public java.lang.String getLabel()
returns the label for the component


toString

public java.lang.String toString()
returns the container in a string representation

Overrides:
toString in class java.lang.Object