Examples of HyperlinkEditorDialog


Examples of org.pentaho.reporting.designer.core.editor.drilldown.HyperlinkEditorDialog

    final List<Element> visualElements = model.getSelectedElementsOfType(Element.class);
    final EditableStyleSheet styleSheet = EditableStyleSheet.create(visualElements);

    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final HyperlinkEditorDialog dialog = createDialog(window);

    final Map<StyleKey,Expression> styleExpressions;
    if (visualElements.size() != 1)
    {
      styleExpressions = null;
    }
    else
    {
      styleExpressions = visualElements.get(0).getStyleExpressions();
    }

    final ElementFormatUndoEntry.EditResult result =
        dialog.performEdit(getReportDesignerContext(), styleSheet, styleExpressions);
    if (result == null)
    {
      return;
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.drilldown.HyperlinkEditorDialog

    getActiveContext().getUndo().addChange(ActionMessages.getString("EditHyperlinkAction.UndoName"), undoEntry);
  }

  protected HyperlinkEditorDialog createDialog(final Window window)
  {
    final HyperlinkEditorDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new HyperlinkEditorDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new HyperlinkEditorDialog((JFrame) window);
    }
    else
    {
      dialog = new HyperlinkEditorDialog();
    }
    return dialog;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.drilldown.HyperlinkEditorDialog

    final EditableStyleSheet styleSheet = createEditableStyleForSelection(visualElements);

    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    final HyperlinkEditorDialog dialog = createDialog(window);

    final Map styleExpressions;
    if (visualElements.length != 1)
    {
      styleExpressions = null;
    }
    else
    {
      styleExpressions = visualElements[0].getStyleExpressions();
    }

    final ElementFormatUndoEntry.EditResult result =
        dialog.performEdit(getReportDesignerContext(), styleSheet, styleExpressions);
    if (result == null)
    {
      return;
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.drilldown.HyperlinkEditorDialog

    return styleSheet;
  }

  protected HyperlinkEditorDialog createDialog(final Window window)
  {
    final HyperlinkEditorDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new HyperlinkEditorDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new HyperlinkEditorDialog((JFrame) window);
    }
    else
    {
      dialog = new HyperlinkEditorDialog();
    }
    LibSwingUtil.centerDialogInParent(dialog);
    return dialog;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.