edu.stanford.smi.protege.widget.NumericMaximumWidget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protege Show documentation
Show all versions of protege Show documentation
Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.
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