本文整理了Java中org.eclipse.swt.widgets.TableColumn.getResizable()
方法的一些代码示例,展示了TableColumn.getResizable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.getResizable()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:getResizable
[英]Gets the resizable attribute. A column that is not resizable cannot be dragged by the user but may be resized by the programmer.
[中]获取可调整大小的属性。不可调整大小的列不能由用户拖动,但可以由程序员调整大小。
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* @param c
* @return
*/
private boolean getResizable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getResizable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getResizable();
}
return false;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* @param c
* @return
*/
private boolean getResizable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getResizable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getResizable();
}
return false;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* @param c
* @return
*/
private boolean getResizable(Item item) {
if (item instanceof TableColumn) {
return ((TableColumn) item).getResizable();
} else if (item instanceof TreeColumn) {
return ((TreeColumn) item).getResizable();
}
return false;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static void writeResizable( final TableColumn column )
throws IOException
{
JSWriter writer = JSWriter.getWriterFor( column );
Boolean newValue = Boolean.valueOf( column.getResizable() );
writer.set( PROP_RESIZABLE, "resizable", newValue, Boolean.TRUE );
}
代码示例来源: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
TableColumn column = table1.getColumn(0);
moveableColumns.setSelection (column.getMoveable());
resizableColumns.setSelection (column.getResizable());
} catch (IllegalArgumentException ex) {}
headerVisibleButton.setSelection (table1.getHeaderVisible());
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int index = 0;
while (index < columnCount) {
if (!columns [index].getResizable ()) break;
index++;
for (int i=0; i<newColumns.length; i++) {
TableColumn column = newColumns [i];
if (!column.isDisposed () && column.getResizable ()) {
column.pack ();
代码示例来源: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
OS.MoveMemory (phdn, lParam, NMHEADER.sizeof);
TableColumn column = columns [phdn.iItem];
if (column != null && !column.getResizable ()) {
return LRESULT.ONE;
内容来源于网络,如有侵权,请联系作者删除!