当前位置: 首页>>代码示例>>Java>>正文


Java IUniqueIndexLayer类代码示例

本文整理汇总了Java中org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer的典型用法代码示例。如果您正苦于以下问题:Java IUniqueIndexLayer类的具体用法?Java IUniqueIndexLayer怎么用?Java IUniqueIndexLayer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IUniqueIndexLayer类属于org.eclipse.nebula.widgets.nattable.layer包,在下文中一共展示了IUniqueIndexLayer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JoSelectionLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
JoSelectionLayer(final IUniqueIndexLayer underlyingLayer) {
    super(underlyingLayer);

    unregisterCommandHandler(selectCellCommandHandler.getCommandClass());
    selectCellCommandHandler = new JoSelectCellCommandHandler(this);
    registerCommandHandler(selectCellCommandHandler);
}
 
开发者ID:jo-source,项目名称:jo-widgets,代码行数:8,代码来源:JoSelectionLayer.java

示例2: SelectionExampleBodyLayerStack

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
public SelectionExampleBodyLayerStack(IUniqueIndexLayer underlyingLayer) {
    this.columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
    this.columnHideShowLayer = new ColumnHideShowLayer(this.columnReorderLayer);

    // No autoconfig on selection layer
    this.selectionLayer = new SelectionLayer(this.columnHideShowLayer, false);

    this.viewportLayer = new ViewportLayer(this.selectionLayer);
    setUnderlyingLayer(this.viewportLayer);

    registerCommandHandler(new CopyDataCommandHandler(this.selectionLayer));
}
 
开发者ID:xored,项目名称:q7.quality.mockups,代码行数:13,代码来源:SelectionExampleBodyLayerStack.java

示例3: LayerColumnFillLayout

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * 
 *
 * @param underlyingDataLayer
 * @param config
 * @param context
 * @param equalWidth
 */
public LayerColumnFillLayout(IUniqueIndexLayer underlyingDataLayer, 
                             CTConfiguration config, 
                             CTContext context,
                             boolean equalWidth) {
    super(underlyingDataLayer, config, context);
    this.equalWidth = equalWidth;
    this.addConfiguration(new StyleConfigurationFillLayout(config));
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:17,代码来源:LayerColumnFillLayout.java

示例4: LayerBody

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Creates a new instance.
 *
 * @param dataProvider
 * @param config
 * @param context
 */
public LayerBody(IDataProvider dataProvider, CTConfiguration config, CTContext context) {
    super(config, context);
    
    dataLayer = new DataLayer(dataProvider);

    selectionLayer = new LayerSelection(dataLayer, config);
    selectionLayer.addConfiguration(new StyleConfigurationSelection(config));
    IUniqueIndexLayer layer = selectionLayer;
    
    switch(config.getColumnHeaderLayout()){
        case CTConfiguration.COLUMN_HEADER_LAYOUT_FILL:
            layer = new LayerColumnFillLayout(layer, config, context);
            break;
        case CTConfiguration.COLUMN_HEADER_LAYOUT_FILL_EQUAL:
            layer = new LayerColumnFillLayout(layer, config, context, true);
            break;
    }
 
    switch(config.getRowHeaderLayout()){
        case CTConfiguration.ROW_HEADER_LAYOUT_FILL:
            layer = new LayerRowFillLayout(layer, config, context);
            break;
    }
    
    viewportLayer = new LayerViewport(layer, context);
    setUnderlyingLayer(viewportLayer);
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:35,代码来源:LayerBody.java

示例5: JoColumnReorderLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
public JoColumnReorderLayer(final IUniqueIndexLayer underlyingLayer) {
    super(underlyingLayer);
}
 
开发者ID:jo-source,项目名称:jo-widgets,代码行数:4,代码来源:JoColumnReorderLayer.java

示例6: DataTableResizeColumnAction

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Construct
 * @param bodyDataLayer
 */
public DataTableResizeColumnAction(IUniqueIndexLayer bodyDataLayer) {
    this.bodyDataLayer = bodyDataLayer;
    this.noOpResizeAction = new NoOpMouseAction();
    this.defaultResizeAction = new AutoResizeColumnAction();
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:10,代码来源:DataTableResizeColumnAction.java

示例7: init

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Initialize.
 *
 * @param bodyDataLayer
 * @param columnHeaderDataLayer
 * @param rowHeaderDataLayer
 * @param cornerDataLayer
 * @param parent
 */
protected void init(final IUniqueIndexLayer bodyDataLayer,
                    IUniqueIndexLayer columnHeaderDataLayer,
                    IUniqueIndexLayer rowHeaderDataLayer,
                    IUniqueIndexLayer cornerDataLayer,
                    Control parent) {
    // Body
    this.bodyDataLayer = bodyDataLayer;
    DataTableBodyLayerStack bodyLayer = new DataTableBodyLayerStack(bodyDataLayer, table, context, parent);

    SelectionLayer selectionLayer = bodyLayer.getSelectionLayer();

    // Column header
    this.columnHeaderDataLayer = columnHeaderDataLayer;
    ILayer columnHeaderLayer = new ColumnHeaderLayer(columnHeaderDataLayer, bodyLayer, selectionLayer);
    
    // Configure the column resize action
    ((ColumnHeaderLayer) columnHeaderLayer).addConfiguration(new AbstractUiBindingConfiguration() {
        @Override
        public void configureUiBindings(UiBindingRegistry paramUiBindingRegistry) {
            paramUiBindingRegistry.registerFirstDoubleClickBinding(new ColumnResizeEventMatcher(SWT.NONE,
                                                                                                GridRegion.COLUMN_HEADER,
                                                                                                MouseEventMatcher.LEFT_BUTTON),
                                                                   new DataTableResizeColumnAction(bodyDataLayer));
        }
    });

    // Row header
    this.rowHeaderDataLayer = rowHeaderDataLayer;
    ILayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer, bodyLayer, selectionLayer);
    bodyLayer.setRowHeaderLayer(rowHeaderLayer);
    
    // Corner
    this.cornerDataLayer = cornerDataLayer;
    ILayer cornerLayer = new CornerLayer(cornerDataLayer, rowHeaderLayer, columnHeaderLayer);

    // Attach the listeners
    for (ILayerListener listener : context.getListeners()) {
        selectionLayer.addLayerListener(listener);
    }

    setBodyLayer(bodyLayer);
    setColumnHeaderLayer(columnHeaderLayer);
    setRowHeaderLayer(rowHeaderLayer);
    setCornerLayer(cornerLayer);
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:55,代码来源:DataTableGridLayer.java

示例8: DataTableFillLayout

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * 
 *
 * @param parent
 * @param underlyingDataLayer
 * @param context
 * @param bodyLayerStack
 */
public DataTableFillLayout(Control parent, IUniqueIndexLayer underlyingDataLayer, DataTableContext context, DataTableBodyLayerStack bodyLayerStack) {
    super(underlyingDataLayer);
    this.context = context;
    this.addConfiguration(new DataTableFillLayoutStyle(parent));
    this.bodyLayerStack = bodyLayerStack;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:15,代码来源:DataTableFillLayout.java

示例9: DataTableBodyLayerStack

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Creates a new instance.
 *
 * @param underlyingLayer
 * @param table
 * @param context
 * @param parent
 */
public DataTableBodyLayerStack(IUniqueIndexLayer underlyingLayer, NatTable table, DataTableContext context, Control parent) {
    this.selectionLayer = new DataTableSelectionLayer(underlyingLayer, context);
    this.viewportLayer = new DataTableViewportLayer(new DataTableFillLayout(parent, selectionLayer, context, this), context);
    this.setUnderlyingLayer(viewportLayer);
    this.setConfigLabelAccumulator(new DataTableConfigLabelAccumulator(table, context));
    this.registerCommandHandler(new CopyDataCommandHandler(selectionLayer));
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:16,代码来源:DataTableBodyLayerStack.java

示例10: DataTableSelectionLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Creates a new instance.
 *
 * @param underlyingLayer
 * @param context
 */
public DataTableSelectionLayer(IUniqueIndexLayer underlyingLayer, DataTableContext context) {
    super(underlyingLayer);
    this.context = context;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:11,代码来源:DataTableSelectionLayer.java

示例11: getBodyDataLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Returns the body data layer.
 *
 * @return
 */
public IUniqueIndexLayer getBodyDataLayer() {
    return bodyDataLayer;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:9,代码来源:DataTableGridLayer.java

示例12: getColumnHeaderDataLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Returns the column header layer.
 *
 * @return
 */
public IUniqueIndexLayer getColumnHeaderDataLayer() {
    return columnHeaderDataLayer;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:9,代码来源:DataTableGridLayer.java

示例13: getCornerDataLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Returns the corner data layer.
 *
 * @return
 */
public IUniqueIndexLayer getCornerDataLayer() {
    return cornerDataLayer;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:9,代码来源:DataTableGridLayer.java

示例14: getRowHeaderDataLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * Returns the row header layer.
 *
 * @return
 */
public IUniqueIndexLayer getRowHeaderDataLayer() {
    return rowHeaderDataLayer;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:9,代码来源:DataTableGridLayer.java

示例15: DataTableViewportLayer

import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
 * 
 *
 * @param underlyingLayer
 * @param context
 */
public DataTableViewportLayer(IUniqueIndexLayer underlyingLayer, DataTableContext context) {
    super(underlyingLayer);
    this.context = context;
}
 
开发者ID:arx-deidentifier,项目名称:arx,代码行数:11,代码来源:DataTableViewportLayer.java


注:本文中的org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。