setNotDirty();
//Dump model
final Well dtreeWidget = new Well();
dtreeWidget.add( new Label( "Decision Tree" ) );
dtreeWidget.add( new Paragraph( "Package: " + model.getPackageName() ) );
dtreeWidget.add( new Paragraph( "Name: " + model.getTreeName() ) );
final TypeNode root = model.getRoot();
final Well typeWidget = new Well();
typeWidget.add( new Label( "Type" ) );
typeWidget.add( new Paragraph( "Class Name: " + root.getClassName() ) );
dtreeWidget.add( typeWidget );
for ( Node child : root.getChildren() ) {
final Well childWidget = new Well();
if ( child instanceof ConstraintNode ) {
childWidget.add( new Label( "Constraint" ) );
childWidget.add( new Paragraph( "Field: " + ( (ConstraintNode) child ).getFieldName() ) );
childWidget.add( new Paragraph( "Operator: " + ( (ConstraintNode) child ).getOperator() ) );
final Value value = ( (ConstraintNode) child ).getValue();
if ( value instanceof StringValue ) {
childWidget.add( new Paragraph( "Value: " + ( (StringValue) value ).getValue() ) );
} else if ( value instanceof IntegerValue ) {
childWidget.add( new Paragraph( "Value: " + ( (IntegerValue) value ).getValue() ) );
}
typeWidget.add( childWidget );
}
}
container.getElement().getStyle().setPadding( 10,