1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.browsing.ui.common;
14 import org.simantics.browsing.ui.content.Labeler;
15 import org.simantics.utils.datastructures.ArrayMap;
18 * Reusable standard key objects for idenfitying columns in {@link Labeler}
21 * @author Tuukka Lehtonen
23 * @see Labeler#getLabels()
24 * @see Labeler#getRuntimeLabels()
26 public final class ColumnKeys {
28 // Use these for single-column tree views
30 public static final String SINGLE = "single";
33 * Use with {@link ArrayMap} in {@link Labeler} implementations.
35 public static final String[] KEYS_SINGLE = { SINGLE };
37 // Use these for tree-table style multicolumn views
39 public static final String PROPERTY = "Property";
41 public static final String EXPRESSION = "Expression";
43 public static final String VALUE = "Value";
45 public static final String DISPLAY_PROPERTY = "HasDisplayProperty";
46 public static final String DISPLAY_VALUE = "HasDisplayValue";
47 public static final String DISPLAY_UNIT = "HasDisplayUnit";
51 * Use with {@link ArrayMap} in {@link Labeler} implementations.
53 public static final String[] KEYS_PROPERTY_VALUE = { PROPERTY, VALUE };