本文整理了Java中com.google.gwt.user.client.ui.Tree.addOpenHandler()
方法的一些代码示例,展示了Tree.addOpenHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.addOpenHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Tree
类名称:Tree
方法名:addOpenHandler
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* @deprecated will be removed in GWT 2.0 along with the listener classes
*/
@Deprecated
public static void add(com.google.gwt.user.client.ui.Tree tree,
TreeListener listener) {
WrappedTreeListener t = new WrappedTreeListener(listener);
tree.addSelectionHandler(t);
tree.addCloseHandler(t);
tree.addOpenHandler(t);
}
代码示例来源:origin: oVirt/ovirt-engine
public AbstractSubTabTree() {
tree = new Tree();
initWidget(tree);
selectedItems = new ArrayList<>();
newSelectedItems = new ArrayList<>();
oldRootItemsMap = new HashMap<>();
oldItemStatesMap = new HashMap<>();
isMultiSelection = true;
tree.addOpenHandler(treeOpenHandler);
addSelectionHandler();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* @deprecated will be removed in GWT 2.0 along with the listener classes
*/
@Deprecated
public static void add(com.google.gwt.user.client.ui.Tree tree,
TreeListener listener) {
WrappedTreeListener t = new WrappedTreeListener(listener);
tree.addSelectionHandler(t);
tree.addCloseHandler(t);
tree.addOpenHandler(t);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* @deprecated will be removed in GWT 2.0 along with the listener classes
*/
@Deprecated
public static void add(com.google.gwt.user.client.ui.Tree tree,
TreeListener listener) {
WrappedTreeListener t = new WrappedTreeListener(listener);
tree.addSelectionHandler(t);
tree.addCloseHandler(t);
tree.addOpenHandler(t);
}
代码示例来源:origin: oVirt/ovirt-engine
protected HandlerRegistration addOpenHandlerToTree(Tree tree, TreeItem item, EntityModelCellTable<ListModel<LunModel>> table) {
return tree.addOpenHandler(e -> {
TreeItem target = e.getTarget();
if (target != null && target.getChildCount() == 1 && target.getChild(0).equals(item)) {
table.updateGridSize(table.getVisibleItemCount() * ROW_HEIGHT + 1);
table.redraw();
}
});
}
代码示例来源:origin: org.uberfire/widgets-core-client
@Override
public void reset() {
rootTreeItem.setUserObject(REPOSITORY_ID);
rootTreeItem.addItem(LAZY_LOAD);
rootTreeItem.removeItems();
tree.addOpenHandler(new OpenHandler<TreeItem>() {
@Override
public void onOpen(final OpenEvent<TreeItem> event) {
if (needsLoading(event.getTarget()) && event.getTarget().getUserObject() instanceof Path) {
presenter.loadDirectoryContent(new FileExplorerItemImpl(event.getTarget()), (Path) event.getTarget().getUserObject());
}
}
});
tree.addSelectionHandler(new SelectionHandler<TreeItem>() {
@Override
public void onSelection(SelectionEvent<TreeItem> event) {
final Object userObject = event.getSelectedItem().getUserObject();
if (userObject != null && userObject instanceof Path) {
final Path path = (Path) userObject;
presenter.redirect(path);
} else if (userObject != null && userObject instanceof Root) {
final Root root = (Root) userObject;
presenter.redirect(root);
} else if (event.getSelectedItem().getUserObject() instanceof String &&
(event.getSelectedItem().getUserObject()).equals(REPOSITORY_ID)) {
presenter.redirectRepositoryList();
}
}
});
}
代码示例来源:origin: org.eagle-i/eagle-i-common-ui-suggest-gwt
tree.setAnimationEnabled( true );
tree.addOpenHandler( new OpenHandler<TreeItem>() {
@Override
public void onOpen(final OpenEvent<TreeItem> event) {
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
tree.setAnimationEnabled( true );
tree.addOpenHandler( new OpenHandler<TreeItem>() {
@Override
public void onOpen(final OpenEvent<TreeItem> event) {
代码示例来源:origin: kiegroup/drools-wb
tree.addOpenHandler( new OpenHandler<TreeItem>() {
@Override
public void onOpen( final OpenEvent<TreeItem> event ) {
内容来源于网络,如有侵权,请联系作者删除!