com.google.gwt.user.client.ui.ListBox.setTitle()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(148)

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

ListBox.setTitle介绍

暂无

代码示例

代码示例来源:origin: GwtMaterialDesign/gwt-material

@Override
public void setTitle(String title) {
  listBox.setTitle(title);
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material

@Override
public void setTitle(String title) {
  listBox.setTitle(title);
}

代码示例来源:origin: de.esoco/gewt

/***************************************
 * Creates a widget that contains the comparisons for a table filter.
 *
 * @param  cInitialValue The initial character to select or -1 for none
 *
 * @return The new widget
 */
private ListBox createComparisonsWidget(char cInitialValue)
{
  ListBox aComparisons = new ListBox();
  int     nChars		 = CONSTRAINT_COMPARISON_CHARS.length();
  int     nSelection   = 0;
  if (cInitialValue != ' ')
  {
    nSelection = CONSTRAINT_COMPARISON_CHARS.indexOf(cInitialValue);
  }
  aComparisons.setTitle(expand("$ttTableFilterComparison"));
  aComparisons.setVisibleItemCount(1);
  for (int i = 0; i < nChars; i++)
  {
    aComparisons.addItem("" + CONSTRAINT_COMPARISON_CHARS.charAt(i));
  }
  aComparisons.setSelectedIndex(nSelection);
  aComparisons.addKeyUpHandler(getComplexFilterKeyUpHandler());
  return aComparisons;
}

代码示例来源:origin: org.jboss.ballroom/widgets

public ListBoxItem(String name, String title) {
  super(name, title);
  listBox = new ListBox();
  listBox.setName(name);
  listBox.setTitle(title);
  listBox.setVisibleItemCount(1);
  listBox.setTabIndex(0);
  valueChangeHandler = new ChangeHandler() {
    @Override
    public void onChange(ChangeEvent event) {
      setModified(true);
    }
  };
  listBox.addChangeHandler(valueChangeHandler);
  wrapper = new HorizontalPanel();
  wrapper.add(listBox);
}

代码示例来源:origin: net.sf.javaprinciples.client/client-presentation

if (title != null)
  input.setTitle(title);

相关文章