org.eclipse.swt.widgets.TableColumn.fixMnemonic()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中org.eclipse.swt.widgets.TableColumn.fixMnemonic()方法的一些代码示例,展示了TableColumn.fixMnemonic()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.fixMnemonic()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:fixMnemonic

TableColumn.fixMnemonic介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setText (String string) {
  checkWidget ();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  super.setText (string);
  char [] buffer = new char [text.length ()];
  text.getChars (0, buffer.length, buffer, 0);
  int length = fixMnemonic (buffer);
  displayText = new String (buffer, 0, length);
  NSString title = NSString.stringWith (displayText);
  nsColumn.headerCell ().setTitle (title);
  NSTableHeaderView headerView = ((NSTableView) parent.view).headerView ();
  if (headerView == null) return;
  int index = parent.indexOf (nsColumn);
  NSRect rect = headerView.headerRectOfColumn (index);
  headerView.setNeedsDisplayInRect (rect);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setText (String string) {
  checkWidget();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  super.setText (string);
  char [] chars = fixMnemonic (string);
  byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  if (string.length () != 0) {
    OS.gtk_widget_show (labelHandle);
  } else {
    OS.gtk_widget_hide (labelHandle);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setText (String string) {
  checkWidget();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  super.setText (string);
  char [] chars = fixMnemonic (string);
  byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  if (string.length () != 0) {
    OS.gtk_widget_show (labelHandle);
  } else {
    OS.gtk_widget_hide (labelHandle);
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setText (String string) {
  checkWidget();
  if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  super.setText (string);
  char [] chars = fixMnemonic (string);
  byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  if (string.length () != 0) {
    OS.gtk_widget_show (labelHandle);
  } else {
    OS.gtk_widget_hide (labelHandle);
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

TCHAR buffer = new TCHAR (parent.getCodePage (), fixMnemonic (string, replace), true);
int byteCount = buffer.length () * TCHAR.sizeof;
int /*long*/ pszText = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);

相关文章