本文整理了Java中org.eclipse.swt.widgets.TableColumn.getToolTipText()
方法的一些代码示例,展示了TableColumn.getToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.getToolTipText()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:getToolTipText
[英]Returns the receiver's tool tip text, or null if it has not been set.
[中]返回接收器的工具提示文本,如果尚未设置,则返回null。
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding
@Override
String doGetStringValue(Object source) {
return ((TableColumn) source).getToolTipText();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* @param item
* @return
*/
private String getColumnName(Item item) {
String result = ""; //$NON-NLS-1$
if (item instanceof TableColumn) {
result = ((TableColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TableColumn) item).getToolTipText();
}
} else if (item instanceof TreeColumn) {
result = ((TreeColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TreeColumn) item).getToolTipText();
}
}
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* @param item
* @return
*/
private String getColumnName(Item item) {
String result = ""; //$NON-NLS-1$
if (item instanceof TableColumn) {
result = ((TableColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TableColumn) item).getToolTipText();
}
} else if (item instanceof TreeColumn) {
result = ((TreeColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TreeColumn) item).getToolTipText();
}
}
return result;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* @param item
* @return
*/
private String getColumnName(Item item) {
String result = ""; //$NON-NLS-1$
if (item instanceof TableColumn) {
result = ((TableColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TableColumn) item).getToolTipText();
}
} else if (item instanceof TreeColumn) {
result = ((TreeColumn) item).getText();
if (result.trim().equals("")) { //$NON-NLS-1$
result = ((TreeColumn) item).getToolTipText();
}
}
return result;
}
代码示例来源: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.rap/org.eclipse.rap.rwt.q07
public void renderChanges( final Widget widget ) throws IOException {
TableColumn column = ( TableColumn )widget;
ItemLCAUtil.writeChanges( column );
writeLeft( column );
writeWidth( column );
writeZIndex( column );
WidgetLCAUtil.writeToolTip( column, column.getToolTipText() );
writeSortDirection( column );
writeResizable( column );
writeMoveable( column );
writeAlignment( column );
writeSelectionListener( column );
WidgetLCAUtil.writeCustomVariant( column );
}
代码示例来源: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 );
}
内容来源于网络,如有侵权,请联系作者删除!