-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple bug-fixes. VuePanel for panel based on Vue.js
- Loading branch information
1 parent
f93a577
commit af6403e
Showing
7 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.orienteer.vuecket; | ||
|
||
import java.util.Map; | ||
|
||
import org.apache.wicket.markup.html.GenericWebMarkupContainer; | ||
import org.apache.wicket.markup.html.panel.GenericPanel; | ||
import org.apache.wicket.model.IModel; | ||
import org.apache.wicket.request.resource.ResourceReference; | ||
import org.orienteer.vuecket.descriptor.IVueDescriptor; | ||
import org.orienteer.vuecket.descriptor.VueFileDescriptor; | ||
import org.orienteer.vuecket.descriptor.VueJsonDescriptor; | ||
import org.orienteer.vuecket.method.IVuecketMethod; | ||
|
||
/** | ||
* Wicket Component with prewired VueBehavior. It's absolutely optional to use this class or not. | ||
* @param <T> the type of the component's model object | ||
*/ | ||
public class VuePanel<T> extends GenericPanel<T> implements IVueComponent<VuePanel<T>> { | ||
|
||
private final VueBehavior vueBehavior; | ||
|
||
public VuePanel(String id) { | ||
this(id, null); | ||
} | ||
|
||
public VuePanel(String id, IModel<T> model) { | ||
super(id, model); | ||
add(vueBehavior = new VueBehavior()); | ||
} | ||
|
||
public VueBehavior getVueBehavior() { | ||
return vueBehavior; | ||
} | ||
|
||
@Override | ||
public VuePanel<T> getThisComponent() { | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters