blob: a6f8b1051bcb75d05b11aa4b44425cfd798e149a [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.preferences.ui.component;
import org.eclipse.jface.preference.FieldEditor;
import org.eclipse.osbp.preferences.Preference;
public class Item {
protected final Preference fPreference;
protected final String fLabel;
protected final Type fType;
protected final boolean fEnabled;
protected FieldEditor fEditor;
protected final String[][] fNamesValues;
protected final String fSeparator;
public Item(String label) {
this(Type.LABEL, null, label);
}
public Item(Type type, Preference preference, String label) {
this(type, preference, label, true);
}
public Item(Type type, Preference preference, String label, String[][] namesValues) {
this(type, preference, label, true, namesValues);
}
public Item(Type type, Preference preference, String label, String[][] namesValues, String separator) {
this(type, preference, label, true, namesValues, separator);
}
public Item(Type type, Preference preference, String label, boolean enabled) {
this(type, preference, label, enabled, null);
}
public Item(Type type, Preference preference, String label, boolean enabled, String[][] namesValues) {
this(type, preference, label, enabled, namesValues, " ");
}
public Item(Type type, Preference preference, String label, boolean enabled, String[][] namesValues, String separator) {
fPreference = preference;
fLabel = label;
fType = type;
fEnabled = enabled;
fNamesValues = namesValues;
fSeparator = separator;
}
// public FieldEditor
}