ru.goodidea.df.dictionary.constraint
Class CommonConstraint

java.lang.Object
  extended by ru.goodidea.df.dictionary.constraint.CommonConstraint
All Implemented Interfaces:
java.io.Serializable, XMLable, XMLFillable
Direct Known Subclasses:
Constraint

public class CommonConstraint
extends java.lang.Object
implements java.io.Serializable, XMLable

See Also:
Serialized Form

Field Summary
protected  boolean editable
           
protected  Field field
           
protected  boolean nullable
           
protected  boolean required
           
protected  boolean visible
           
 
Fields inherited from interface ru.goodidea.df.xml.XMLFillable
ATTRIBUTE_HEIGHT, ATTRIBUTE_WIDTH, ATTRIBUTE_X, ATTRIBUTE_Y
 
Constructor Summary
CommonConstraint()
           
 
Method Summary
 void applyConstraint(javax.swing.JComponent component)
           
 void fillXML(org.w3c.dom.Element root)
           
 Field getField()
           
 boolean isEditable()
           
 boolean isNullable()
           
 boolean isRequired()
           
 boolean isVisible()
           
 void restoreXML(org.w3c.dom.Element root)
           
 void setEditable(boolean editable)
           
 void setField(Field field)
           
 void setNullable(boolean nullable)
           
 void setRequired(boolean required)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullable

protected boolean nullable

visible

protected boolean visible

required

protected boolean required

field

protected Field field

editable

protected boolean editable
Constructor Detail

CommonConstraint

public CommonConstraint()
Method Detail

isNullable

public boolean isNullable()

setNullable

public void setNullable(boolean nullable)

isVisible

public boolean isVisible()

applyConstraint

public void applyConstraint(javax.swing.JComponent component)

setVisible

public void setVisible(boolean visible)

isRequired

public boolean isRequired()

setRequired

public void setRequired(boolean required)

getField

public Field getField()

setField

public void setField(Field field)

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean editable)

fillXML

public void fillXML(org.w3c.dom.Element root)
Specified by:
fillXML in interface XMLFillable

restoreXML

public void restoreXML(org.w3c.dom.Element root)
Specified by:
restoreXML in interface XMLable


Copyright © 2009. All Rights Reserved.