}
public static SampleTreeNode[] getSampleArray() {
return new SampleTreeNode[] {
// MapWidget samples:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupLayers(),
"[ISOMORPHIC]/geomajas/osgeo/layer.png", "Layers", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().osmTitle(),
"[ISOMORPHIC]/geomajas/osgeo/layer-raster.png", OpenStreetMapSample.OSM_TITLE, "Layers",
OpenStreetMapSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().googleTitle(),
"[ISOMORPHIC]/geomajas/osgeo/layer-raster.png", GoogleSample.TITLE, "Layers",
GoogleSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().wmsTitle(),
"[ISOMORPHIC]/geomajas/osgeo/layer-wms.png", WmsSample.WMS_TITLE, "Layers", WmsSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().geoTitle(),
"[ISOMORPHIC]/geomajas/osgeo/layer-vector.png", GeoToolsSample.TITLE, "Layers",
GeoToolsSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupMap(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", "MapWidget", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().navigationTitle(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", NavigationSample.TITLE, "MapWidget",
NavigationSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().crsTitle(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", CrsSample.TITLE, "MapWidget",
CrsSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().unitTypesTitle(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", UnitTypesSample.TITLE, "MapWidget",
UnitTypesSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().maxBoundsToggleTitle(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", MaxBoundsToggleSample.TITLE,
"MapWidget", MaxBoundsToggleSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().panScaleToggleTitle(),
"[ISOMORPHIC]/geomajas/example/images/silk/world.png", PanScaleToggleSample.TITLE, "MapWidget",
PanScaleToggleSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().renderingTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", RenderingSample.TITLE, "MapWidget",
RenderingSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().screenWorldTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", WorldScreenSample.TITLE, "MapWidget",
WorldScreenSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().overviewMapTitle(),
"[ISOMORPHIC]/geomajas/osgeo/region.png", OverviewMapSample.TITLE, "MapWidget",
OverviewMapSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().layerOpacityTitle(),
"[ISOMORPHIC]/geomajas/osgeo/layer-raster.png", LayerOpacitySample.TITLE, "MapWidget",
LayerOpacitySample.FACTORY),
// Editing:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupEditing(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", "GeoGraphicEditing", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().editPointLayerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", EditPointLayerSample.TITLE, "GeoGraphicEditing",
EditPointLayerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editLineLayerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", EditLineLayerSample.TITLE, "GeoGraphicEditing",
EditLineLayerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editPolygonLayerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", EditPolygonLayerSample.TITLE, "GeoGraphicEditing",
EditPolygonLayerSample.FACTORY),
// new SampleTreeNode(I18nProvider.getSampleMessages().editMultiPointLayerTitle(),
// "[ISOMORPHIC]/geomajas/osgeo/edit.png", EditMultiPointLayerSample.TITLE, "GeoGraphicEditing",
// EditMultiPointLayerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editMultiLineLayerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", EditMultiLineLayerSample.TITLE, "GeoGraphicEditing",
EditMultiLineLayerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editMultiPolygonLayerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/edit.png", EditMultiPolygonLayerSample.TITLE, "GeoGraphicEditing",
EditMultiPolygonLayerSample.FACTORY),
// LayerTree & Legend samples:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupLayerTree(),
"[ISOMORPHIC]/geomajas/osgeo/mapset.png", "Layertree", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().layertreeTitle(),
"[ISOMORPHIC]/geomajas/osgeo/mapset.png", LayertreeSample.TITLE, "Layertree",
LayertreeSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().legendTitle(),
"[ISOMORPHIC]/geomajas/osgeo/legend-add.png", LegendSample.TITLE, "Layertree",
LegendSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().layerOrderTitle(),
"[ISOMORPHIC]/geomajas/osgeo/mapset.png", LayerOrderSample.TITLE, "Layertree",
LayerOrderSample.FACTORY),
// Attribute samples:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupAttributes(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", "FeatureListGridGroup", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().fltTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", FeatureListGridSample.TITLE, "FeatureListGridGroup",
FeatureListGridSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().searchTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", SearchSample.TITLE, "FeatureListGridGroup",
SearchSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().search2Title(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", AttributeSearchSample.TITLE, "FeatureListGridGroup",
AttributeSearchSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editableGridTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", EditableGridSample.TITLE, "FeatureListGridGroup",
EditableGridSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().editAttributeTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", EditAttributeSample.TITLE, "FeatureListGridGroup",
EditAttributeSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().attributeIncludeInFormTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", AttributeIncludeInFormSample.TITLE,
"FeatureListGridGroup", AttributeIncludeInFormSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().attributeCustomTypeTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", AttributeCustomTypeSample.TITLE,
"FeatureListGridGroup", AttributeCustomTypeSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().attributeCustomFormTitle(),
"[ISOMORPHIC]/geomajas/osgeo/table.png", AttributeCustomFormSample.TITLE,
"FeatureListGridGroup", AttributeCustomFormSample.FACTORY),
// Map controller:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupMapController(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", "MapController", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().customControllerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", CustomControllerSample.TITLE, "MapController",
CustomControllerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().controllerOnElementTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", ControllerOnElementSample.TITLE, "MapController",
ControllerOnElementSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().rectangleControllerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", RectangleControllerSample.TITLE, "MapController",
RectangleControllerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().circleControllerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", CircleControllerSample.TITLE, "MapController",
CircleControllerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().fallbackControllerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", FallbackControllerSample.TITLE, "MapController",
FallbackControllerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().mouseMoveListenerTitle(),
"[ISOMORPHIC]/geomajas/silk/monitor.png", MouseMoveListenerSample.TITLE, "MapController",
MouseMoveListenerSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().multipleListenersTitle(),
"[ISOMORPHIC]/geomajas/silk/monitor.png", MultipleListenersSample.TITLE, "MapController",
MultipleListenersSample.FACTORY),
// Plug-ins
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupPlugins(),
"[ISOMORPHIC]/geomajas/silk/plugin.png", "Plugins", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().defaultPrintControllerTitle(),
"[ISOMORPHIC]/geomajas/osgeo/print.png", DefaultPrintingSample.TITLE, "Plugins",
DefaultPrintingSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().geocoderTitle(),
"[ISOMORPHIC]/geomajas/osgeo/show.png", GeocoderSample.TITLE, "Plugins",
GeocoderSample.FACTORY),
// Toolbar and controllers:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupToolbarAndControllers(),
"[ISOMORPHIC]/geomajas/osgeo/zoom-in.png", "ToolbarAndControllers", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().toolbarNavigationTitle(),
"[ISOMORPHIC]/geomajas/osgeo/pan.png", ToolbarNavigationSample.TITLE, "ToolbarAndControllers",
ToolbarNavigationSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().toolbarSelectionTitle(),
"[ISOMORPHIC]/geomajas/osgeo/select.png", ToolbarSelectionSample.TITLE,
"ToolbarAndControllers", ToolbarSelectionSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().toolbarMeasureTitle(),
"[ISOMORPHIC]/geomajas/osgeo/length-measure.png", ToolbarMeasureSample.TITLE,
"ToolbarAndControllers", ToolbarMeasureSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().toolbarFeatureInfoTitle(),
"[ISOMORPHIC]/geomajas/osgeo/info.png", ToolbarFeatureInfoSample.TITLE,
"ToolbarAndControllers", ToolbarFeatureInfoSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().scaleSelectDefaultTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", ScaleSelectDefaultSample.TITLE,
"ToolbarAndControllers", ScaleSelectDefaultSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().scaleSelectCustomTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", ScaleSelectCustomSample.TITLE,
"ToolbarAndControllers", ScaleSelectCustomSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().customToolbarToolsTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", CustomToolbarToolsSample.TITLE,
"ToolbarAndControllers", CustomToolbarToolsSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().customToolbarTitle(),
"[ISOMORPHIC]/geomajas/osgeo/tools.png", CustomToolbarSample.TITLE, "ToolbarAndControllers",
CustomToolbarSample.FACTORY),
// Security samples:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupSecurity(),
"[ISOMORPHIC]/geomajas/silk/key.png", "Security", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().loginTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", LoginSample.LOGIN_TITLE, "Security",
LoginSample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().layerSecurityTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", LayerSecuritySample.LAYER_SECUTIRY_TITLE,
"Security", LayerSecuritySample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().filterSecurityTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", FilterSecuritySample.TITLE, "Security",
FilterSecuritySample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().attributeSecurityTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", AttributeSecuritySample.TITLE, "Security",
AttributeSecuritySample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().commandSecurityTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", CommandSecuritySample.TITLE, "Security",
CommandSecuritySample.FACTORY),
new SampleTreeNode(I18nProvider.getSampleMessages().toolSecurityTitle(),
"[ISOMORPHIC]/geomajas/staticsecurity/key_go.png", ToolSecuritySample.TITLE, "Security",
ToolSecuritySample.FACTORY),
// MapWidget samples:
new SampleTreeNode(I18nProvider.getSampleMessages().treeGroupGeneral(),
"[ISOMORPHIC]/geomajas/osgeo/settings.png", "General", "topLevel"),
new SampleTreeNode(I18nProvider.getSampleMessages().serverErrorTitle(),
"[ISOMORPHIC]/geomajas/osgeo/help-contents.png", ServerErrorSample.TITLE, "General",
ServerErrorSample.FACTORY) };
}