本文整理汇总了Java中org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession.addListener方法的典型用法代码示例。如果您正苦于以下问题:Java EditSession.addListener方法的具体用法?Java EditSession.addListener怎么用?Java EditSession.addListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession
的用法示例。
在下文中一共展示了EditSession.addListener方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditSession
import org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession; //导入方法依赖的package包/类
private EditSession createEditSession() {
EditSession session = EditSession.create(getStageOne().getFocusFrame(),
getStageOne().getWavePanel(), getSelectionExtractor());
stageTwo.getStageOne().getFocusFrame().upgrade(session);
session.addListener(stageOne.getDynamicRenderer().getEditSessionListener());
return session;
}
示例2: install
import org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession; //导入方法依赖的package包/类
public static WaveTitleHandler install(ConversationNavigator navigator, EditSession editSession,
ObservableQuasiConversationView conversationView) {
WaveTitleHandler waveTitleHandler = new WaveTitleHandler(navigator, conversationView);
editSession.addListener(waveTitleHandler.getEditSessionListener());
conversationView.addListener(waveTitleHandler.getConversationViewListener());
return waveTitleHandler;
}
示例3: install
import org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession; //导入方法依赖的package包/类
public static void install(WavePanel panel, Actions actions, ModelAsViewProvider modelAsViewProvider, EditSession editSession) {
DraftModeController controller = new DraftModeController(actions,
panel.getGwtPanel(), panel.getViewProvider(), modelAsViewProvider, editSession);
editSession.addListener(controller);
}
示例4: upgrade
import org.waveprotocol.wave.client.wavepanel.impl.edit.EditSession; //导入方法依赖的package包/类
/**
* Upgrades diff control to interact with the editing feature.
*/
public void upgrade(EditSession edit) {
edit.addListener(this);
}