Skip to content

Commit 84828fd

Browse files
author
Matthew Broadhead
committed
update jsfdsl
1 parent fe272ff commit 84828fd

File tree

2 files changed

+30
-13
lines changed

2 files changed

+30
-13
lines changed

src/main/java/net/bootsfaces/component/openStreetMap/OpenStreetMap.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
import javax.faces.event.ListenersFor;
2626
import javax.faces.event.PostAddToViewEvent;
2727

28-
import java.util.Arrays;
29-
import java.util.Collection;
30-
import java.util.Collections;
31-
3228
import javax.el.ValueExpression;
3329
import javax.faces.component.FacesComponent;
3430
import javax.faces.component.UIComponent;
@@ -53,8 +49,8 @@ public class OpenStreetMap extends OpenStreetMapCore implements ClientBehaviorHo
5349

5450
public static final String DEFAULT_RENDERER = "net.bootsfaces.component.openStreetMap.OpenStreetMap";
5551

56-
private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("click",
57-
"dblclick", "dragstart", "dragover", "drop", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup"));
52+
// private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("click",
53+
// "dblclick", "dragstart", "dragover", "drop", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup"));
5854

5955
public OpenStreetMap() {
6056
setRendererType(DEFAULT_RENDERER);
@@ -90,13 +86,13 @@ public boolean getRendersChildren() {
9086
return true;
9187
}
9288

93-
public Collection<String> getEventNames() {
94-
return EVENT_NAMES;
95-
}
89+
// public Collection<String> getEventNames() {
90+
// return EVENT_NAMES;
91+
// }
9692

97-
public String getDefaultEventName() {
98-
return "click";
99-
}
93+
// public String getDefaultEventName() {
94+
// return "click";
95+
// }
10096

10197
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
10298
// if (isAutoUpdate()) {

xtext/BootsFaces.jsfdsl

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ widget navLink
16071607

16081608

16091609
widget navbarLinks
1610-
implemented_by net.bootsfaces.component.NavBarLinks
1610+
implemented_by net.bootsfaces.component.navBarLinks.NavBarLinks
16111611
has_tooltip
16121612
{
16131613
auto-update Boolean "Setting this flag updates the widget on every AJAX request."
@@ -1620,6 +1620,27 @@ widget navbarLinks
16201620
+contentDisabled
16211621
}
16221622

1623+
widget openStreetMap
1624+
implemented_by net.bootsfaces.component.openStreetMap.OpenStreetMap
1625+
{
1626+
center String "center"
1627+
marker String "marker"
1628+
popupMsg String "popupMsg"
1629+
zoom Integer "zoom"
1630+
width String "width"
1631+
height String "height"
1632+
minZoom Integer "minZoom"
1633+
maxZoom Integer "maxZoom"
1634+
dragging Boolean "dragging"
1635+
zoomControl Boolean "zoomControl"
1636+
zoomGlobal Boolean "zoomGlobal"
1637+
attribution String "attribution"
1638+
miniMap Boolean "miniMap"
1639+
miniMapWidth Integer "miniMapWidth"
1640+
miniMapHeight Integer "miniMapHeight"
1641+
miniMapPosition String "miniMapPosition"
1642+
urlTemplate String "urlTemplate"
1643+
}
16231644

16241645
widget panel
16251646
implemented_by net.bootsfaces.component.panel.Panel

0 commit comments

Comments
 (0)