Package org.pentaho.reporting.designer.core.editor.format

Examples of org.pentaho.reporting.designer.core.editor.format.ConditionalVisibilityDialog


    }


    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final ConditionalVisibilityDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new ConditionalVisibilityDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new ConditionalVisibilityDialog((JFrame) window);
    }
    else
    {
      dialog = new ConditionalVisibilityDialog();
    }

    final Expression oldExpression = visualElements.get(0).getStyleExpression(ElementStyleKeys.VISIBLE);
    dialog.setReportDesignerContext(getReportDesignerContext());
    final Expression expression = dialog.performEdit(oldExpression);
    if (expression != null)
    {
      visualElements.get(0).setStyleExpression(ElementStyleKeys.VISIBLE, expression.getInstance());
    }
  }
View Full Code Here


    }


    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    final ConditionalVisibilityDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new ConditionalVisibilityDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new ConditionalVisibilityDialog((JFrame) window);
    }
    else
    {
      dialog = new ConditionalVisibilityDialog();
    }

    final Expression oldExpression = visualElements[0].getStyleExpression(ElementStyleKeys.VISIBLE);
    dialog.setReportDesignerContext(getReportDesignerContext());
    final Expression expression = dialog.performEdit(oldExpression);
    if (expression != null)
    {
      visualElements[0].setStyleExpression(ElementStyleKeys.VISIBLE, expression.getInstance());
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.format.ConditionalVisibilityDialog

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.