本文整理了Java中org.eclipse.swt.widgets.TableColumn.getMoveable()
方法的一些代码示例,展示了TableColumn.getMoveable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.getMoveable()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:getMoveable
[英]Gets the moveable attribute. A column that is not moveable cannot be reordered by the user by dragging the header but may be reordered by the programmer.
[中]获取可移动属性。不可移动的列不能由用户通过拖动标题重新排序,但可以由程序员重新排序。
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* @param c
* @return
*/
private boolean getMoveable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getMoveable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getMoveable();
}
return false;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* @param c
* @return
*/
private boolean getMoveable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getMoveable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getMoveable();
}
return false;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* @param c
* @return
*/
private boolean getMoveable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getMoveable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getMoveable();
}
return false;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static void writeMoveable( final TableColumn column )
throws IOException
{
JSWriter writer = JSWriter.getWriterFor( column );
Boolean newValue = Boolean.valueOf( column.getMoveable() );
writer.set( PROP_MOVEABLE, "moveable", newValue, Boolean.FALSE );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
public void preserveValues( final Widget widget ) {
TableColumn column = ( TableColumn )widget;
ItemLCAUtil.preserve( column );
IWidgetAdapter adapter = WidgetUtil.getAdapter( column );
WidgetLCAUtil.preserveToolTipText( column, column.getToolTipText() );
TableLCAUtil.preserveAlignment( column );
adapter.preserve( PROP_Z_INDEX, new Integer( getZIndex( column ) ) );
adapter.preserve( PROP_LEFT, new Integer( getLeft( column ) ) );
adapter.preserve( PROP_WIDTH, new Integer( column.getWidth() ) );
adapter.preserve( PROP_SORT_DIRECTION, getSortDirection( column ) );
adapter.preserve( PROP_RESIZABLE,
Boolean.valueOf( column.getResizable() ) );
adapter.preserve( PROP_MOVEABLE,
Boolean.valueOf( column.getMoveable() ) );
adapter.preserve( PROP_SELECTION_LISTENERS,
Boolean.valueOf( SelectionEvent.hasListener( column ) ) );
WidgetLCAUtil.preserveCustomVariant( column );
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
try {
TableColumn column = table1.getColumn(0);
moveableColumns.setSelection (column.getMoveable());
resizableColumns.setSelection (column.getResizable());
} catch (IllegalArgumentException ex) {}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
@Override
public void preserveValues( TableColumn column ) {
WidgetLCAUtil.preserveToolTipText( column, column.getToolTipText() );
WidgetLCAUtil.preserveFont( column, getFont( column ) );
ItemLCAUtil.preserve( column );
preserveProperty( column, PROP_INDEX, getIndex( column ) );
preserveProperty( column, PROP_LEFT, getLeft( column ) );
preserveProperty( column, PROP_WIDTH, column.getWidth() );
preserveProperty( column, PROP_RESIZABLE, column.getResizable() );
preserveProperty( column, PROP_MOVEABLE, column.getMoveable() );
preserveProperty( column, PROP_ALIGNMENT, getAlignment( column ) );
preserveProperty( column, PROP_FIXED, isFixed( column ) );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
@Override
public void renderChanges( TableColumn column ) throws IOException {
WidgetLCAUtil.renderToolTip( column, column.getToolTipText() );
WidgetLCAUtil.renderCustomVariant( column );
WidgetLCAUtil.renderFont( column, getFont( column ) );
ItemLCAUtil.renderChanges( column );
renderProperty( column, PROP_INDEX, getIndex( column ), -1 );
renderProperty( column, PROP_LEFT, getLeft( column ), ZERO );
renderProperty( column, PROP_WIDTH, column.getWidth(), ZERO );
renderProperty( column, PROP_RESIZABLE, column.getResizable(), true );
renderProperty( column, PROP_MOVEABLE, column.getMoveable(), false );
renderProperty( column, PROP_ALIGNMENT, getAlignment( column ), DEFAULT_ALIGNMENT );
renderProperty( column, PROP_FIXED, isFixed( column ), false );
renderListenSelection( column );
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (phdn.iItem != -1) {
TableColumn column = columns [phdn.iItem];
if (column != null && !column.getMoveable ()) {
ignoreColumnMove = true;
return LRESULT.ONE;
内容来源于网络,如有侵权,请联系作者删除!