Default Map Editor

The Default Map Editor can be used to create and modify the key/value pairs. It allows for different types to be combined in one map type definition.

Editor Definition

Name

Default Map Editor

ID

com.hybris.cockpitng.editor.defaultmap

Description

This editor is used to create and modify key/value pairs.

The following types can be used:

  • java.lang.String

  • java.lang.Boolean

  • java.util.Date

  • java.lang.Double

  • java.lang.Integer

  • java.lang.Long

You can combine different types into the same Map type definition. For example, you can use Map(java.lang.String,java.util.Date).

Type

Map<?, ?>

Author

SAP

Editor Preview

The Default Map Editor enables you to add, modify or remove key/Value pairs.

To create a new key/Value pair, click the Add new item button.

Enter a value or choose it from the available keys list.

Define a value.

The currently defined key/Value pairs.

Settings

You can configure the editor using the custom-attributes element in the ZULfile of your widget. The following attributes are supported:

  • confirmDelete: Defines if a confirmation popup should be displayed when deleting a value from the map.

  • pageSize: Defines the size of a page.

  • pagingMold: Defines the mold of paging. It can be default (equal to ZK's os) or advanced (equal to ZK's default). If no value is given, the default mold is used.

The following example creates a map editor with page size of 4, default paging mold, and no confirmation on delete.

widgetid.zul

<editor id="listEditorOsMold" type="Map(java.lang.String, java.lang.String)">
	<custom-attributes confirmDelete="false" pageSize="4" pagingMold="default"/>
</editor>