com.google.gwt.user.cellview.client.Header.getValue()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(138)

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

Header.getValue介绍

[英]Return the header value.
[中]返回标题值。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Get the key for the header value. By default, the key is the same as the
 * value. Override this method to return a custom key.
 *
 * @return the key associated with the value
 */
public Object getKey() {
 return getValue();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Handle a browser event that took place within the header.
 *
 * @param context the context of the header
 * @param elem the parent Element
 * @param event the native browser event
 */
public void onBrowserEvent(Context context, Element elem, NativeEvent event) {
 cell.onBrowserEvent(context, elem, getValue(), event, updater);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Render the header.
 *
 * @param context the context of the header
 * @param sb a {@link SafeHtmlBuilder} to render into
 */
public void render(Context context, SafeHtmlBuilder sb) {
 cell.render(context, getValue(), sb);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Get the key for the header value. By default, the key is the same as the
 * value. Override this method to return a custom key.
 *
 * @return the key associated with the value
 */
public Object getKey() {
 return getValue();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Get the key for the header value. By default, the key is the same as the
 * value. Override this method to return a custom key.
 *
 * @return the key associated with the value
 */
public Object getKey() {
 return getValue();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Render the header.
 *
 * @param context the context of the header
 * @param sb a {@link SafeHtmlBuilder} to render into
 */
public void render(Context context, SafeHtmlBuilder sb) {
 cell.render(context, getValue(), sb);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Handle a browser event that took place within the header.
 *
 * @param context the context of the header
 * @param elem the parent Element
 * @param event the native browser event
 */
public void onBrowserEvent(Context context, Element elem, NativeEvent event) {
 cell.onBrowserEvent(context, elem, getValue(), event, updater);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Handle a browser event that took place within the header.
 *
 * @param context the context of the header
 * @param elem the parent Element
 * @param event the native browser event
 */
public void onBrowserEvent(Context context, Element elem, NativeEvent event) {
 cell.onBrowserEvent(context, elem, getValue(), event, updater);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Render the header.
 *
 * @param context the context of the header
 * @param sb a {@link SafeHtmlBuilder} to render into
 */
public void render(Context context, SafeHtmlBuilder sb) {
 cell.render(context, getValue(), sb);
}

代码示例来源:origin: kiegroup/appformer

protected boolean addThisColumnToPopup(ColumnMeta<T> columnMeta) {
  return (columnMeta.getHeader().getValue() instanceof String);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-table

protected boolean addThisColumnToPopup(ColumnMeta<T> columnMeta) {
  return (columnMeta.getHeader().getValue() instanceof String);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-table

protected void initCheckBoxs(VerticalPanel popupContent) {
  for (final ColumnMeta<T> columnMeta : columnMetaList) {
    if (addThisColumnToPopup(columnMeta)) {
      final CheckBox checkBox = GWT.create(CheckBox.class);
      checkBox.setText((String) columnMeta.getHeader().getValue());
      checkBox.setName((String)columnMeta.getHeader().getValue());
      checkBox.setValue(columnMeta.isVisible());
      checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta));
      popupContent.add(checkBox);
    }
  }
}

代码示例来源:origin: kiegroup/appformer

protected void initCheckBoxs(VerticalPanel popupContent) {
  for (final ColumnMeta<T> columnMeta : columnMetaList) {
    if (addThisColumnToPopup(columnMeta)) {
      final CheckBox checkBox = GWT.create(CheckBox.class);
      checkBox.setText((String) columnMeta.getHeader().getValue());
      checkBox.setName((String)columnMeta.getHeader().getValue());
      checkBox.setValue(columnMeta.isVisible());
      checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta));
      popupContent.add(checkBox);
    }
  }
}

代码示例来源:origin: org.kie.guvnor/guvnor-commons-ui

VerticalPanel popupContent = new VerticalPanel();
for ( final ColumnMeta<T> columnMeta : columnMetaList ) {
  final CheckBox checkBox = new CheckBox( columnMeta.getHeader().getValue() );
  checkBox.setValue( columnMeta.isVisible() );
  checkBox.addValueChangeHandler( new ValueChangeHandler<Boolean>() {

相关文章