blob: b48f53993788c183fc2fbf240b2e24380462a1ad [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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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
}