Search in sources :

Example 21 with NumberValues

use of org.eclipse.nebula.widgets.nattable.dataset.NumberValues in project nebula.widgets.nattable by eclipse.

the class _802_CalculatingGridExample method createNumberValues.

private NumberValues createNumberValues() {
    NumberValues nv = new NumberValues();
    // the value which should be used as 100%
    nv.setColumnOneNumber(100);
    // the value 1 for calculation
    nv.setColumnTwoNumber(20);
    // the value 2 for calculation
    nv.setColumnThreeNumber(30);
    // the NumberValues object
    return nv;
}
Also used : NumberValues(org.eclipse.nebula.widgets.nattable.dataset.NumberValues)

Example 22 with NumberValues

use of org.eclipse.nebula.widgets.nattable.dataset.NumberValues in project nebula.widgets.nattable by eclipse.

the class _803_CachedCalculatingGridExample method createNumberValues.

private NumberValues createNumberValues() {
    NumberValues nv = new NumberValues();
    // the value which should be used as 100%
    nv.setColumnOneNumber(100);
    // the value 1 for calculation
    nv.setColumnTwoNumber(20);
    // the value 2 for calculation
    nv.setColumnThreeNumber(30);
    // the NumberValues object
    return nv;
}
Also used : NumberValues(org.eclipse.nebula.widgets.nattable.dataset.NumberValues)

Aggregations

NumberValues (org.eclipse.nebula.widgets.nattable.dataset.NumberValues)22 ArrayList (java.util.ArrayList)10 NatTable (org.eclipse.nebula.widgets.nattable.NatTable)6 DefaultNatTableStyleConfiguration (org.eclipse.nebula.widgets.nattable.config.DefaultNatTableStyleConfiguration)6 IConfigRegistry (org.eclipse.nebula.widgets.nattable.config.IConfigRegistry)5 IDataProvider (org.eclipse.nebula.widgets.nattable.data.IDataProvider)5 ListDataProvider (org.eclipse.nebula.widgets.nattable.data.ListDataProvider)5 ReflectiveColumnPropertyAccessor (org.eclipse.nebula.widgets.nattable.data.ReflectiveColumnPropertyAccessor)5 ConfigRegistry (org.eclipse.nebula.widgets.nattable.config.ConfigRegistry)4 HashMap (java.util.HashMap)3 ViewportLayer (org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer)3 GridLayout (org.eclipse.swt.layout.GridLayout)3 Composite (org.eclipse.swt.widgets.Composite)3 CompositeLayer (org.eclipse.nebula.widgets.nattable.layer.CompositeLayer)2 DataLayer (org.eclipse.nebula.widgets.nattable.layer.DataLayer)2 FixedSummaryRowLayer (org.eclipse.nebula.widgets.nattable.summaryrow.FixedSummaryRowLayer)2 Map (java.util.Map)1 AbstractRegistryConfiguration (org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration)1 PositionCoordinate (org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate)1 AutomaticSpanningDataProvider (org.eclipse.nebula.widgets.nattable.data.AutomaticSpanningDataProvider)1