All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.smi.protege.widget.NumericMaximumWidget Maven / Gradle / Ivy

Go to download

Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.

There is a newer version: 3.5.1
Show newest version
package edu.stanford.smi.protege.widget;

import edu.stanford.smi.protege.model.*;
import edu.stanford.smi.protege.resource.*;

/**
 * A slot widget for acquiring the maximum value for both integer and floating point slots.
 *
 * @author    Ray Fergerson 
 */
public class NumericMaximumWidget extends FloatFieldWidget {

    private static final long serialVersionUID = 8011573789074682964L;

    public static boolean isSuitable(Cls cls, Slot slot, Facet facet) {
        return slot.getName().equals(Model.Slot.NUMERIC_MAXIMUM);
    }
    
    public String getLabel() {
        return localizeStandardLabel(super.getLabel(), "Maximum", ResourceKey.NUMERIC_MAXIMUM_SLOT_WIDGET_LABEL);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy