Package wicket.contrib.tinymce4.settings

Examples of wicket.contrib.tinymce4.settings.Enum


  private Component modelValue;

  public InlineTinyMCEPage()
  {
    Form<Void> form = new Form<>("form");
    InPlaceEditComponent editableComponent = new InPlaceEditComponent("editableComponent",
        "<p><b>Click me</b> and <i>edit me</i> with <font color=\"red\">tinymce</font>. "
            + "This is a new feature introduced with version 4.</p>");
    form.add(editableComponent);
    form.add(modelValue = new Label("modelValue", editableComponent.getModel()));

    modelValue.setEscapeModelStrings(false);
    modelValue.setOutputMarkupId(true);

    form.add(new TinyMceAjaxButton("submit")
View Full Code Here


  public AjaxTinyMCEPage()
  {
    ta = new TextArea<String>("ta");
    ta.setVisible(false);
    ta.setOutputMarkupPlaceholderTag(true);
    ta.add(new TinyMceBehavior());
    add(ta);

    add(new AjaxLink<Void>("toggle")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  private static final long serialVersionUID = 1L;

  public SimpleTinyMCEPage()
  {
    TextArea textArea = new TextArea("ta", new Model(TEXT));
    textArea.add(new TinyMceBehavior());
    add(textArea);
  }
View Full Code Here

        "insertfile undo redo | styleselect | bold italic | image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | imageupload"));
    settings.addPlugins("imageupload");
    settings.addPlugins("image");
   
    TextArea<String> textArea = new TextArea<String>("ta", new Model<String>(TEXT));
    textArea.add(new TinyMceBehavior(settings));
   
    add(textArea);
    add(new ImageUploadPanel("uploadPanel"));
  }
View Full Code Here

        settings.addCustomSetting(styleFormats);
       
        //settings.addCustomSetting("content_css : \"../../../../../content.css\"");

    TextArea<String> textArea = new TextArea<String>("ta", new Model<String>(TEXT));
    textArea.add(new TinyMceBehavior(settings));
    add(textArea);
  }
View Full Code Here

    form.add(modelValue = new Label("modelValue", editableComponent.getModel()));

    modelValue.setEscapeModelStrings(false);
    modelValue.setOutputMarkupId(true);

    form.add(new TinyMceAjaxButton("submit")
    {
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
      {
        super.onSubmit(target, form);
View Full Code Here

   
    TextArea<String> textArea = new TextArea<String>("ta", new Model<String>(TEXT));
    textArea.add(new TinyMceBehavior(settings));
   
    add(textArea);
    add(new ImageUploadPanel("uploadPanel"));
  }
View Full Code Here

public class EnumTest
{
  @Test
  public void testEquals()
  {
    Enum enum1 = new Enum("enum1")
    {

      private static final long serialVersionUID = 1L;
    };
    Enum enum2 = new Enum("enum1")
    {

      private static final long serialVersionUID = 1L;
    };
    Enum enum3 = new Enum("enum3")
    {

      private static final long serialVersionUID = 1L;
    };
    Assert.assertEquals(enum1, enum1);
    Assert.assertEquals(enum1, enum2);
    Assert.assertEquals(enum2, enum1);
    Assert.assertFalse(enum1.equals(enum3));
    Assert.assertFalse(enum3.equals(enum1));
    Assert.assertFalse(enum1.equals(null));
    Assert.assertFalse(enum1.equals("enum1"));
  }
View Full Code Here

  }

  @Test
  public void testHashCode()
  {
    Enum enum1 = new Enum("enum1")
    {

      private static final long serialVersionUID = 1L;
    };
    Enum enum2 = new Enum("enum1")
    {

      private static final long serialVersionUID = 1L;
    };
    Enum enum3 = new Enum("enum3")
    {

      private static final long serialVersionUID = 1L;
    };
    Assert.assertEquals(enum1.hashCode(), enum1.hashCode());
    Assert.assertEquals(enum1.hashCode(), enum2.hashCode());
    Assert.assertFalse(enum1.hashCode() == enum3.hashCode());
  }
View Full Code Here

  }

  @Test(expected = IllegalArgumentException.class)
  public void testNotNull()
  {
    new Enum(null)
    {

      private static final long serialVersionUID = 1L;
    };
  }
View Full Code Here

TOP

Related Classes of wicket.contrib.tinymce4.settings.Enum

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.