-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example project - minor improvements
- Loading branch information
1 parent
1297e35
commit 697e685
Showing
45 changed files
with
660 additions
and
925 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 3 additions & 10 deletions
13
...m/giffing/wicket/spring/boot/example/repository/services/customer/CustomerRepository.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
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
3 changes: 3 additions & 0 deletions
3
.../giffing/wicket/spring/boot/example/repository/services/customer/specs/CustomerSpecs.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
12 changes: 12 additions & 0 deletions
12
...giffing/wicket/spring/boot/example/web/assets/base/CustomStylesCssRessourceReference.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,12 @@ | ||
package com.giffing.wicket.spring.boot.example.web.assets.base; | ||
|
||
import org.apache.wicket.request.resource.CssResourceReference; | ||
|
||
public class CustomStylesCssRessourceReference extends CssResourceReference { | ||
|
||
public static final CustomStylesCssRessourceReference INSTANCE = new CustomStylesCssRessourceReference(); | ||
|
||
public CustomStylesCssRessourceReference() { | ||
super(CustomStylesCssRessourceReference.class, "custom.css"); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
...ng/wicket/spring/boot/example/web/assets/base/FixBootstrapStylesCssResourceReference.java
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ring/boot/example/web/assets/base/fix.css → ...g/boot/example/web/assets/base/custom.css
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.navbar { | ||
--bs-navbar-padding-x: 1; | ||
} | ||
|
||
.items { | ||
padding-right: 5px; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ain/java/com/giffing/wicket/spring/boot/example/web/general/action/panel/ActionPanel.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 |
---|---|---|
@@ -1 +1 @@ | ||
<wicket:panel><span wicket:id="items"><span wicket:id="item" /></span></wicket:panel> | ||
<wicket:panel><span wicket:id="items" class="items"><span wicket:id="item" /></span></wicket:panel> |
26 changes: 11 additions & 15 deletions
26
...ain/java/com/giffing/wicket/spring/boot/example/web/general/action/panel/ActionPanel.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 |
---|---|---|
@@ -1,29 +1,25 @@ | ||
package com.giffing.wicket.spring.boot.example.web.general.action.panel; | ||
|
||
import java.util.List; | ||
|
||
import com.giffing.wicket.spring.boot.example.web.general.action.panel.items.AbstrractActionItem; | ||
import de.agilecoders.wicket.core.markup.html.bootstrap.list.BootstrapListView; | ||
import org.apache.wicket.markup.html.list.ListItem; | ||
import org.apache.wicket.markup.html.list.ListView; | ||
import org.apache.wicket.markup.html.panel.Panel; | ||
|
||
import com.giffing.wicket.spring.boot.example.web.general.action.panel.items.AbstrractActionItem; | ||
import java.util.List; | ||
|
||
public class ActionPanel extends Panel { | ||
|
||
|
||
|
||
public ActionPanel(String id, List<AbstrractActionItem> items) { | ||
super(id); | ||
ListView<AbstrractActionItem> listItems = new ListView<AbstrractActionItem>("items", items) { | ||
add(new BootstrapListView<>("items", items) { | ||
|
||
@Override | ||
protected void populateItem(ListItem<AbstrractActionItem> item) { | ||
item.add(item.getModel().getObject()); | ||
} | ||
@Override | ||
protected void populateItem(ListItem<AbstrractActionItem> item) { | ||
item.add(item.getModel().getObject()); | ||
} | ||
|
||
|
||
}; | ||
add(listItems); | ||
}); | ||
} | ||
|
||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...ing/wicket/spring/boot/example/web/general/action/panel/items/AbstractActionItemLink.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<wicket:panel> | ||
<a wicket:id="link"> | ||
<span aria-hidden="true" wicket:id="icon-type"></span> | ||
<span aria-hidden="true" wicket:id="icon"></span> | ||
</a> | ||
</wicket:panel> |
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
2 changes: 1 addition & 1 deletion
2
...ffing/wicket/spring/boot/example/web/general/action/panel/items/links/ActionItemLink.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<wicket:panel> | ||
<a wicket:id="link"> | ||
<span aria-hidden="true" wicket:id="icon-type"></span> | ||
<span aria-hidden="true" wicket:id="icon"></span> | ||
</a> | ||
</wicket:panel> |
7 changes: 3 additions & 4 deletions
7
...ffing/wicket/spring/boot/example/web/general/action/panel/items/links/ActionItemLink.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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package com.giffing.wicket.spring.boot.example.web.general.action.panel.items.links; | ||
|
||
import de.agilecoders.wicket.core.markup.html.bootstrap.image.Icon; | ||
import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType; | ||
import org.apache.wicket.behavior.AttributeAppender; | ||
import org.apache.wicket.markup.html.WebMarkupContainer; | ||
import org.apache.wicket.markup.html.link.AbstractLink; | ||
import org.apache.wicket.model.IModel; | ||
|
||
import com.giffing.wicket.spring.boot.example.web.general.action.panel.items.AbstrractActionItem; | ||
import com.giffing.wicket.spring.boot.example.web.general.icons.IconType; | ||
|
||
public class ActionItemLink extends AbstrractActionItem { | ||
|
||
public ActionItemLink(IModel<String> label, IconType iconType, AbstractLink link) { | ||
add(link); | ||
WebMarkupContainer webMarkupContainer = new WebMarkupContainer("icon-type"); | ||
webMarkupContainer.add(new AttributeAppender("class", "fa-solid fa-" + iconType.getCssName())); | ||
link.add(webMarkupContainer); | ||
link.add(new Icon("icon", iconType)); | ||
} | ||
|
||
} |
7 changes: 3 additions & 4 deletions
7
...om/giffing/wicket/spring/boot/example/web/general/action/panel/items/yesno/YesNoLink.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
24 changes: 0 additions & 24 deletions
24
...mple/src/main/java/com/giffing/wicket/spring/boot/example/web/general/icons/IconType.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.