@Override
    public Stream<Item> fieldsFor(T document) {
        final ObservableList<OrderType> alternatives = 
            FXCollections.observableArrayList(OrderType.values());
        
        return Stream.of(
            new ChoiceBoxItem<>(
                "Order Type",
                document.orderTypeProperty(),
                alternatives,
                "The order in which elements will be considered.",
                editor -> ItemUtil.lockDecorator(editor, document, ItemUtil.DATABASE_RELATION_TOOLTIP)
                
            )
        );
    }
@author Simon Jonasson
@param <T>  the document type
@since 3.0.0
tool-parent/tool-propertyeditor/src/main/java/com/speedment/tool/propertyeditor/editor/OrderTypePropertyEditor.java