当前位置: 首页>>代码示例>>Java>>正文


Java BlipView.getMeta方法代码示例

本文整理汇总了Java中org.waveprotocol.wave.client.wavepanel.view.BlipView.getMeta方法的典型用法代码示例。如果您正苦于以下问题:Java BlipView.getMeta方法的具体用法?Java BlipView.getMeta怎么用?Java BlipView.getMeta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.waveprotocol.wave.client.wavepanel.view.BlipView的用法示例。


在下文中一共展示了BlipView.getMeta方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onAnchorAddedBefore

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public void onAnchorAddedBefore(ConversationBlip blip, ReplyDoodad ref, ReplyDoodad dood) {
  BlipView blipUi = views.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    AnchorView inlineUi = dood.getAnchor();
    metaUi.insertInlineAnchorBefore(ref != null ? ref.getAnchor() : null, inlineUi);

    // Move reply if it exists.
    ConversationThread reply = blip.getReplyThread(dood.getId());
    AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
    InlineThreadView replyUi = defaultUi != null ? defaultUi.getThread() : null;
    if (replyUi != null) {
      defaultUi.detach(replyUi);
      inlineUi.attach(replyUi);
    }
  }
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:19,代码来源:ReplyManager.java

示例2: create

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
public static LiveProfileRenderer create(ProfileManager profiles,
    final ModelAsViewProvider views, final ShallowBlipRenderer blipRenderer) {
  final TimerService timer = SchedulerInstance.getLowPriorityTimer();
  QueueProcessor<ConversationBlip> contributorUpdater =
      new QueueProcessor<ConversationBlip>(timer) {
        
    @Override
    public void process(ConversationBlip blip) {
      BlipView blipUi = blip != null ? views.getBlipView(blip) : null;
      BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
      if (metaUi != null) {
        blipRenderer.renderContributors(blip, metaUi);
      }
    }
  };
  return new LiveProfileRenderer(profiles, views, contributorUpdater);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:18,代码来源:LiveProfileRenderer.java

示例3: onAnchorRemoved

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public void onAnchorRemoved(ConversationBlip blip, ReplyDoodad dood) {
  BlipView blipUi = views.getBlipView(blip);
  BlipMetaView metaUi = blip != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    AnchorView inlineUi = dood.getAnchor();

    // Move reply if there is one.
    ConversationThread reply = blip.getReplyThread(dood.getId());
    AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
    InlineThreadView replyUi = inlineUi.getThread();
    if (replyUi != null) {
      inlineUi.detach(replyUi);
      defaultUi.attach(replyUi);
    }

    dood.getAnchor().remove();
  }
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:20,代码来源:ReplyManager.java

示例4: onBlipTimestampChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public void onBlipTimestampChanged(ObservableQuasiConversationBlip blip, long oldTimestamp,
    long newTimestamp) {
  BlipView blipUi = modelAsViewProvider.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    shallowBlipRenderer.renderTime(blip, metaUi);
  }
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:10,代码来源:DynamicDomRenderer.java

示例5: renderContributors

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
private void renderContributors(ObservableConversationBlip blip) {
  BlipView blipUi = modelAsViewProvider.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    shallowBlipRenderer.renderContributors(blip, metaUi);
  }
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:8,代码来源:DynamicDomRenderer.java

示例6: onBlipTimestampChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public void onBlipTimestampChanged(
    ObservableConversationBlip blip, long oldTimestamp, long newTimestamp) {
  BlipView blipUi = views.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    blipRenderer.renderTime(blip, metaUi);
  }
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:10,代码来源:LiveConversationViewRenderer.java

示例7: onMaybeBlipReadChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public void onMaybeBlipReadChanged(ObservableConversationBlip blip) {
  BlipView blipUi = views.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;

  if (metaUi != null) {
    metaUi.setRead(!supplement.isUnread(blip));
  }
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:10,代码来源:LiveSupplementRenderer.java

示例8: create

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
public static LiveProfileRenderer create(TimerService timer, ProfileManager profiles,
    final ModelAsViewProvider views, final ShallowBlipRenderer blipRenderer) {
  QueueProcessor<ConversationBlip> contributorUpdater =
      new QueueProcessor<ConversationBlip>(timer) {
        @Override
        public void process(ConversationBlip blip) {
          BlipView blipUi = blip != null ? views.getBlipView(blip) : null;
          BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
          if (metaUi != null) {
            blipRenderer.renderContributors(blip, metaUi);
          }
        }
      };
  return new LiveProfileRenderer(profiles, views, contributorUpdater);
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:16,代码来源:LiveProfileRenderer.java

示例9: getPrevPost

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
private BlipView getPrevPost(BlipView parent, AnchorView child) {
  AnchorView prev = parent.getDefaultAnchorBefore(child);
  BlipMetaView meta;
  return prev != null ? getPrevPre(parent, prev) // \u2620
      : ((meta = parent.getMeta()) != null) // \u2620
          ? getPrevPre(parent, meta) // \u2620
          : getPrevPost(parent, meta);
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:9,代码来源:ViewTraverser.java

示例10: getBlipMetaView

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
@Override
public BlipMetaView getBlipMetaView(ConversationBlip blip) {
  BlipView blipUi = getBlipView(blip);
  return blipUi != null ? blipUi.getMeta() : null;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:FakeRenderer.java

示例11: getNext

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //导入方法依赖的package包/类
public BlipView getNext(BlipView blip) {
  BlipMetaView meta = blip.getMeta();
  return meta != null ? getNextPre(blip, meta) : getNextPost(blip, meta);
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:5,代码来源:ViewTraverser.java


注:本文中的org.waveprotocol.wave.client.wavepanel.view.BlipView.getMeta方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。