Package org.pentaho.reporting.designer.core.util.table

Examples of org.pentaho.reporting.designer.core.util.table.CustomPropertyEditorDialog$ValidationHandler


    if("Resource".equals(data.getValueRole()) == false) // NON-NLS
    {
      return;
    }

    final CustomPropertyEditorDialog editorDialog;
    final Component window = getReportDesignerContext().getParent();
   
    if (window instanceof Frame)
    {
      editorDialog = new CustomPropertyEditorDialog((Frame) window);
    }
    else if (window instanceof Dialog)
    {
      editorDialog = new CustomPropertyEditorDialog((Dialog) window);
    }
    else
    {
      editorDialog = new CustomPropertyEditorDialog();
    }
    editorDialog.setTitle(ActionMessages.getString("EditContentRefAction.Text"));
    final ResourcePropertyEditor propertyEditor = new ResourcePropertyEditor(getActiveContext());
    propertyEditor.setValue
            (element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE));
    if (editorDialog.performEdit(propertyEditor))
    {
      element.setAttribute
              (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, propertyEditor.getValue());
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.util.table.CustomPropertyEditorDialog$ValidationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.