Package chrriis.dj.nativeswing.swtimpl.components

Examples of chrriis.dj.nativeswing.swtimpl.components.HTMLEditorAdapter


//    optionMap.put("uiColor", "'#9AB8F3'");
//    optionMap.put("toolbarCanCollapse", "false");
    final JHTMLEditor htmlEditor = new JHTMLEditor(JHTMLEditor.HTMLEditorImplementation.CKEditor,
        JHTMLEditor.CKEditorOptions.setOptions(optionMap)
    );
    htmlEditor.addHTMLEditorListener(new HTMLEditorAdapter() {
      @Override
      public void saveHTML(HTMLEditorSaveEvent e) {
        JOptionPane.showMessageDialog(contentPane, "The data of the HTML editor could be saved anywhere...");
      }
    });
View Full Code Here


//    optionMap.put("language", "'de'");
    optionMap.put("plugins", "'table,paste,contextmenu,searchreplace'");
    final JHTMLEditor htmlEditor = new JHTMLEditor(JHTMLEditor.HTMLEditorImplementation.TinyMCE,
        JHTMLEditor.TinyMCEOptions.setOptions(optionMap)
    );
    htmlEditor.addHTMLEditorListener(new HTMLEditorAdapter() {
      @Override
      public void saveHTML(HTMLEditorSaveEvent e) {
        JOptionPane.showMessageDialog(contentPane, "The data of the HTML editor could be saved anywhere...");
      }
    });
View Full Code Here

      "['Link','Unlink','Anchor'],\n" +
      "['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak', '-', 'ShowBlocks'],\n" +
      "];\n" +
      "FCKConfig.ToolbarCanCollapse = false;\n";
    final JHTMLEditor htmlEditor = new JHTMLEditor(HTMLEditorImplementation.FCKEditor, JHTMLEditor.FCKEditorOptions.setCustomJavascriptConfiguration(configurationScript));
    htmlEditor.addHTMLEditorListener(new HTMLEditorAdapter() {
      @Override
      public void saveHTML(HTMLEditorSaveEvent e) {
        JOptionPane.showMessageDialog(contentPane, "The data of the HTML editor could be saved anywhere...");
      }
    });
View Full Code Here

    JPanel southPanel = new JPanel(new BorderLayout());
    JPanel dirtyPanel = new JPanel();
    dirtyPanel.setBorder(BorderFactory.createTitledBorder("Dirty State"));
    final JLabel dirtyLabel = new JLabel("Dirty: false");
    dirtyPanel.add(dirtyLabel);
    htmlEditor.addHTMLEditorListener(new HTMLEditorAdapter() {
      @Override
      public void notifyDirtyStateChanged(HTMLEditorDirtyStateEvent e) {
        dirtyLabel.setText("Dirty: " + e.isDirty());
      }
    });
View Full Code Here

TOP

Related Classes of chrriis.dj.nativeswing.swtimpl.components.HTMLEditorAdapter

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.