Example usage for org.springframework.beans.support MutableSortDefinition MutableSortDefinition

List of usage examples for org.springframework.beans.support MutableSortDefinition MutableSortDefinition

Introduction

In this page you can find the example usage for org.springframework.beans.support MutableSortDefinition MutableSortDefinition.

Prototype

public MutableSortDefinition() 

Source Link

Document

Create an empty MutableSortDefinition, to be populated via its bean properties.

Usage

From source file:com.aw.swing.mvp.binding.component.support.ColumnInfo.java

public ColumnInfo setAsSorted(boolean ascending) {
    sortDefinition = new MutableSortDefinition();
    ((MutableSortDefinition) sortDefinition).setProperty(fieldName);
    ((MutableSortDefinition) sortDefinition).setAscending(ascending);
    return this;
}