Package com.taobao.zeus.web.platform.client.widget

Examples of com.taobao.zeus.web.platform.client.widget.TitledCell


  @Override
  public Widget asWidget() {
      if(grid==null){
        ColumnConfig<PartitionModel, String> name = new ColumnConfig<PartitionModel, String>(
            props.name(), 100, "名称");
        name.setCell(new TitledCell());
        ColumnConfig<PartitionModel, String> path = new ColumnConfig<PartitionModel, String>(
            props.path(), 40, "路径");
        path.setCell(new TitledCell());
        ColumnConfig<PartitionModel, String> size = new ColumnConfig<PartitionModel, String>(
            props.size(), 60, "大小");
        size.setCell(new TitledCell() {
          @Override
          public void render(com.google.gwt.cell.client.Cell.Context context,
              String value, SafeHtmlBuilder sb) {
            if (value == null || value.equals("")) {
              sb.appendHtmlConstant("Loading...");
View Full Code Here


  @Override
  public Widget asWidget() {
    ColumnConfig<TableColumnModel, String> name = new ColumnConfig<TableColumnModel, String>(
        props.name(), 100, "Name");
    name.setCell(new TitledCell());
    ColumnConfig<TableColumnModel, String> type = new ColumnConfig<TableColumnModel, String>(
        props.type(), 50, "Type");
    type.setCell(new TitledCell());
    ColumnConfig<TableColumnModel, String> desc = new ColumnConfig<TableColumnModel, String>(
        props.desc(), 130, "Comment");
    desc.setCell(new TitledCell());
    List<ColumnConfig<TableColumnModel, ?>> list = new ArrayList<ColumnConfig<TableColumnModel, ?>>();
    list.add(name);
    list.add(type);
    list.add(desc);
    ColumnModel<TableColumnModel> colModel = new ColumnModel<TableColumnModel>(
View Full Code Here

  public Widget asWidget() {
    ColumnConfig<ModelPropertyModel, String> name = new ColumnConfig<TableInfoTab.ModelPropertyModel, String>(
        props.name(), 100, "Name");
    ColumnConfig<ModelPropertyModel, String> value = new ColumnConfig<TableInfoTab.ModelPropertyModel, String>(
        props.value(), 180, "Value");
    value.setCell(new TitledCell() {
      @Override
      public void render(com.google.gwt.cell.client.Cell.Context context,
          String value, SafeHtmlBuilder sb) {
        if (value == null)
          value = "";
View Full Code Here

    for (String col : result.getHeaders()) {
      ColumnConfig<Tuple<Integer, List<String>>, String> cc = new ColumnConfig<Tuple<Integer, List<String>>, String>(
          new MyValueProvider(count), 80, col);
      cc.setToolTip(new SafeHtmlBuilder().appendHtmlConstant(col)
          .toSafeHtml());
      cc.setCell(new TitledCell());
      list.add(cc);
      count++;
    }
    getListStore().addAll(result.getData());
    ColumnModel<Tuple<Integer, List<String>>> colModel = new ColumnModel<Tuple<Integer, List<String>>>(
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.widget.TitledCell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.