failTransferCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setFailOnError( failTransferCheckBox.isSelected() );
}
}
} );
setNullCheckBox = new JCheckBox( "Set null on missing source", false );
setNullCheckBox.setToolTipText( "Will set target to null if source is missing or null" );
setNullCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setSetNullOnMissingSource( setNullCheckBox.isSelected() );
}
}
} );
transferTextContentCheckBox = new JCheckBox( "Transfer text content", false );
transferTextContentCheckBox.setToolTipText( "Will only transfer text content of source/target elements" );
transferTextContentCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setTransferTextContent( transferTextContentCheckBox.isSelected() );
}
}
} );
ignoreEmptyCheckBox = new JCheckBox( "Ignore empty/missing values", false );
ignoreEmptyCheckBox.setToolTipText( "Will not transfer empty or missing values" );
ignoreEmptyCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setIgnoreEmpty( ignoreEmptyCheckBox.isSelected() );
}
}
} );
transferAllCheckBox = new JCheckBox( "Transfer to all", false );
transferAllCheckBox.setToolTipText( "Will transfer to all matching target selections" );
transferAllCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setTransferToAll( transferAllCheckBox.isSelected() );
}
}
} );
useXQueryCheckBox = new JCheckBox( "Use XQuery", false );
useXQueryCheckBox.setToolTipText( "Interprets the source xpath as an XQuery expression" );
useXQueryCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setUseXQuery( useXQueryCheckBox.isSelected() );
}
}
} );
entitizeCheckBox = new JCheckBox( "Entitize transferred value(s)", false );
entitizeCheckBox.setToolTipText( "Entitize transferred values when possible" );
entitizeCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setEntitize( entitizeCheckBox.isSelected() );
}
}
} );
transferChildNodesCheckBox = new JCheckBox( "Transfer Child Nodes", false );
transferChildNodesCheckBox
.setToolTipText( "Transfers child nodes of specified source node to children of specified target" );
transferChildNodesCheckBox.addChangeListener( new ChangeListener()
{
public void stateChanged( ChangeEvent e )
{
PropertyTransfer currentTransfer = getCurrentTransfer();
if( currentTransfer != null )
{
currentTransfer.setTransferChildNodes( transferChildNodesCheckBox.isSelected() );
}
}
} );
panel.add( failTransferCheckBox );