in jelly-tags/swing/src/main/java/org/apache/commons/jelly/tags/swing/impl/GridBagConstraintBean.java [262:303]
public void setBasedOn(GridBagConstraintBean from) {
if (!gridxSet && from.gridxSet) {
gridx = from.gridx;
this.gridxSet = true;
}
if (!gridySet && from.gridySet) {
gridy = from.gridy;
this.gridySet = true;
}
if (!gridwidthSet && from.gridwidthSet) {
gridwidth = from.gridwidth;
this.gridwidthSet = true;
}
if (!gridheightSet && from.gridheightSet) {
gridheight = from.gridheight;
this.gridheightSet = true;
}
if (!weightxSet && from.weightxSet) {
weightx = from.weightx;
this.weightxSet = true;
}
if (!weightySet && from.weightySet) {
weighty = from.weighty;
this.weightySet = true;
}
if (!ipadxSet && from.ipadxSet) {
ipadx = from.ipadx;
this.ipadxSet = true;
}
if (!ipadySet && from.ipadySet) {
ipady = from.ipady;
this.ipadySet = true;
}
if (!fillSet && from.fillSet) {
fill = from.fill;
this.fillSet = true;
}
if (!anchorSet && from.anchorSet) {
anchor = from.anchor;
this.anchorSet = true;
}
}