-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
grabslu
committed
Nov 1, 2016
1 parent
963efc6
commit d994fd9
Showing
12 changed files
with
125 additions
and
26 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
15 changes: 15 additions & 0 deletions
15
licket-framework/src/main/java/org/licket/core/view/hippo/vue/annotation/OnVueMounted.java
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,15 @@ | ||
package org.licket.core.view.hippo.vue.annotation; | ||
|
||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* @author activey | ||
*/ | ||
@Target(METHOD) | ||
@Retention(RUNTIME) | ||
public @interface OnVueMounted { | ||
} |
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
33 changes: 33 additions & 0 deletions
33
...semanticui/src/main/java/org/licket/semantic/component/modal/AbstractSemanticUIModal.java
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,33 @@ | ||
package org.licket.semantic.component.modal; | ||
|
||
import org.licket.core.module.application.LicketComponentModelReloader; | ||
import org.licket.core.view.container.AbstractLicketContainer; | ||
import org.licket.core.view.hippo.vue.annotation.VueComponentFunction; | ||
import org.licket.framework.hippo.BlockBuilder; | ||
|
||
import static org.licket.core.model.LicketModel.ofModelObject; | ||
import static org.licket.core.view.ComponentView.fromComponentContainerClass; | ||
import static org.licket.framework.hippo.ExpressionStatementBuilder.expressionStatement; | ||
import static org.licket.framework.hippo.FunctionCallBuilder.functionCall; | ||
|
||
/** | ||
* @author grabslu | ||
*/ | ||
public abstract class AbstractSemanticUIModal extends AbstractLicketContainer<ModalSettings> { | ||
|
||
public AbstractSemanticUIModal(String id, ModalSettings modalSettings, | ||
LicketComponentModelReloader modelReloader) { | ||
super(id, ModalSettings.class, ofModelObject(modalSettings), | ||
fromComponentContainerClass(AbstractSemanticUIModal.class), modelReloader); | ||
} | ||
|
||
@VueComponentFunction | ||
public final void show(BlockBuilder body) { | ||
body.appendStatement(expressionStatement(functionCall())); | ||
} | ||
|
||
@VueComponentFunction | ||
public final void hide(BlockBuilder body) { | ||
body.appendStatement(expressionStatement(functionCall())); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...et-module-semanticui/src/main/java/org/licket/semantic/component/modal/ModalSettings.java
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,7 @@ | ||
package org.licket.semantic.component.modal; | ||
|
||
/** | ||
* @author grabslu | ||
*/ | ||
public class ModalSettings { | ||
} |
17 changes: 17 additions & 0 deletions
17
...le-semanticui/src/main/java/org/licket/semantic/component/modal/ModalSettingsBuilder.java
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,17 @@ | ||
package org.licket.semantic.component.modal; | ||
|
||
/** | ||
* @author grabslu | ||
*/ | ||
public class ModalSettingsBuilder { | ||
|
||
public final ModalSettings build() { | ||
return new ModalSettings(); | ||
} | ||
|
||
private ModalSettingsBuilder() {} | ||
|
||
public static ModalSettingsBuilder builder() { | ||
return new ModalSettingsBuilder(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ticui/src/main/resources/org/licket/semantic/component/modal/AbstractSemanticUIModal.html
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,13 @@ | ||
<div class="ui modal"> | ||
<div class="header"> | ||
<slot name="header"> | ||
Modal header | ||
</slot> | ||
</div> | ||
<div class="content"> | ||
<slot>placeholder</slot> | ||
</div> | ||
<div class="actions" v-if="showActions"> | ||
<slot name="actions"></slot> | ||
</div> | ||
</div> |