Package com.smartgwt.client.data

Examples of com.smartgwt.client.data.SortSpecifier


    protected void configureTable() {
        List<ListGridField> fields = createFields();
        setListGridFields(fields.toArray(new ListGridField[fields.size()]));

        // explicitly sort on started time so the user can see the last operation at the top and is sorted descendingly
        SortSpecifier sortSpec = new SortSpecifier(AbstractOperationHistoryDataSource.Field.STARTED_TIME,
            SortDirection.DESCENDING);
        getListGrid().setSort(new SortSpecifier[] { sortSpec });

        addTableAction(MSG.common_button_delete(), getDeleteConfirmMessage(), ButtonColor.RED, new TableAction() {
            public boolean isEnabled(ListGridRecord[] selection) {
View Full Code Here


    private static final String FIELD_OBJECT = "object";

    private MessageCenterWindow window;

    public MessageCenterView() {
        super(MSG.view_messageCenter_messageTitle(), null, new SortSpecifier[] { new SortSpecifier(FIELD_TIME,
            SortDirection.DESCENDING) }, null, false);
        CoreGUI.getMessageCenter().addMessageListener(this);
    }
View Full Code Here

        listGrid.setHeight(300);
        listGrid.setDataSource(ItemSupplyXmlDS.getInstance());
        listGrid.setAutoFetchData(true);
        listGrid.setCanMultiSort(true);
        listGrid.setInitialSort(new SortSpecifier[]{
                new SortSpecifier("category", SortDirection.ASCENDING),
                new SortSpecifier("itemName", SortDirection.DESCENDING)
        });

        IButton button = new IButton("Multilevel Sort");
        button.setIcon("crystal/16/actions/sort_incr.png");
        button.setWidth(120);
View Full Code Here

    final String folderId = GWTSessionManager.get().getCurrentMailFolder().getId();
    boolean ascending = true;
    MessageListFields sortColumn = null;

    if ( request.getSortBy() != null && request.getSortBy().length > 0 ) {
      SortSpecifier sortSpec = request.getSortBy()[0];
      sortColumn = MessageListFields.valueOf( sortSpec.getField() );
      ascending = SortDirection.ASCENDING == sortSpec.getSortDirection();
    }

    MessageListFields[] searchFields = (MessageListFields[]) request
        .getAttributeAsObject( GWTConstants.PARAM_SEARCH_FIELDS );
    String[] searchValues = request.getAttributeAsStringArray( GWTConstants.PARAM_SEARCH_VALUES );
View Full Code Here

TOP

Related Classes of com.smartgwt.client.data.SortSpecifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.