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

de.tsl2.nano.bean.def.IPresentableColumn Maven / Gradle / Ivy

Go to download

TSL2 Framework Descriptor (currency-handling, generic formatter, descriptors for beans, collections, actions and values)

There is a newer version: 2.5.1
Show newest version
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: Thomas Schneider
 * created on: Jul 4, 2013
 * 
 * Copyright: (c) Thomas Schneider 2013, all rights reserved
 */
package de.tsl2.nano.bean.def;

import de.tsl2.nano.action.IAction;

/**
 * Extends the {@link IColumn} to have a member of {@link IPresentable} for layouting in a table - this may differ from
 * attribute presentation.
 * 
 * @author Thomas Schneider
 * @version $Revision$
 */
public interface IPresentableColumn extends IColumn {
    /**
     * getSortingAction
     * 
     * @return action to sort the column
     */
    IAction getSortingAction(final IBeanCollector collector);

    /**
     * if true and {@link #getSummary()} is empty, the table presenting this column should summarize all number values
     * of this column
     * 
     * @return
     */
    boolean isStandardSummary();

    /**
     * getSummary
     * 
     * @return a summary expression to be shown to the foot of a table. overwrites {@link #isStandardSummary()}.
     */
    IValueExpression getSummary();

    /**
     * extending layout informations for a table column
     */
    IPresentable getPresentable();

    /**
     * setPresentable
     * 
     * @param presentable
     */
    void setPresentable(IPresentable presentable);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy