本文整理汇总了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);
}
示例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));
}
示例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));
}
示例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);
}
示例5: JoColumnReorderLayer
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
public JoColumnReorderLayer(final IUniqueIndexLayer underlyingLayer) {
super(underlyingLayer);
}
示例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();
}
示例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);
}
示例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;
}
示例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));
}
示例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;
}
示例11: getBodyDataLayer
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
* Returns the body data layer.
*
* @return
*/
public IUniqueIndexLayer getBodyDataLayer() {
return bodyDataLayer;
}
示例12: getColumnHeaderDataLayer
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
* Returns the column header layer.
*
* @return
*/
public IUniqueIndexLayer getColumnHeaderDataLayer() {
return columnHeaderDataLayer;
}
示例13: getCornerDataLayer
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
* Returns the corner data layer.
*
* @return
*/
public IUniqueIndexLayer getCornerDataLayer() {
return cornerDataLayer;
}
示例14: getRowHeaderDataLayer
import org.eclipse.nebula.widgets.nattable.layer.IUniqueIndexLayer; //导入依赖的package包/类
/**
* Returns the row header layer.
*
* @return
*/
public IUniqueIndexLayer getRowHeaderDataLayer() {
return rowHeaderDataLayer;
}
示例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;
}