Package org.wicketstuff.console.groovy

Examples of org.wicketstuff.console.groovy.GroovyScriptEnginePanel


  {
    ScriptEnginePanel enginePanel;
    switch (lang)
    {
      case GROOVY :
        enginePanel = new GroovyScriptEnginePanel(wicketId, store);
        break;
      case CLOJURE :
        enginePanel = new ClojureScriptEnginePanel(wicketId, store);
        break;
      case SCALA :
View Full Code Here


  }

  @Test
  public void test_rendersSuccessfully_Groovy()
  {
    tester.startComponent(new GroovyScriptEnginePanel("foo"));
    tester.startComponent(new GroovyScriptEngineWithTemplatesPanel("foo",
      new PackagedScriptTemplates()));
    tester.startComponent(new GroovyScriptEngineWindow("foo"));
    tester.startComponent(new GroovyScriptEngineWithTemplatesWindow("foo", null,
      new PackagedScriptTemplates()));
View Full Code Here

  public GroovyEngineTestPage()
  {
    store = new PackagedScriptTemplates();

    final GroovyScriptEnginePanel enginePanel = new GroovyScriptEnginePanel("scriptPanel")
    {

      private static final long serialVersionUID = 1L;

      @Override
      protected void addControls(final RepeatingView controls)
      {
        super.addControls(controls);

        final Label label = new Label(controls.newChildId(), "Favorites:");
        label.add(new AttributeAppender("style", Model.of("color:#ddd;")));
        controls.add(label);

        int i = 0;
        for (final ScriptTemplate template : store.findAll(Lang.GROOVY))
        {
          final QuickAction action = new QuickAction(controls.newChildId(), this,
            new StoredScriptTemplateModel(store, template), i++);
          controls.add(action);

        }
      }

    };

    enginePanel.setOutputMarkupId(true);
    add(enginePanel);
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.console.groovy.GroovyScriptEnginePanel

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.