本文整理了Java中org.netbeans.swing.outline.Outline.addMouseListener()
方法的一些代码示例,展示了Outline.addMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.addMouseListener()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:addMouseListener
暂无
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void setOutline(Outline outline) {
if (this.outline != null) {
this.outline.removeMouseListener(otu);
this.outline.removeMouseMotionListener(otu);
}
this.outline = outline;
outline.addMouseListener(otu);
outline.addMouseMotionListener(otu);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-remotefs-versioning-api
@Messages({
"CTL_FileTree.treeColumn.Name=File"
})
public FileTreeView () {
em = new ExplorerManager();
view = new OutlineView(Bundle.CTL_FileTree_treeColumn_Name());
view.getOutline().setShowHorizontalLines(true);
view.getOutline().setShowVerticalLines(false);
view.getOutline().setRootVisible(false);
view.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
view.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
view.setPopupAllowed(false);
view.getOutline().addMouseListener(this);
view.getOutline().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).put(
KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_DOWN_MASK ), "org.openide.actions.PopupAction"); //NOI18N
view.getOutline().getActionMap().put("org.openide.actions.PopupAction", new AbstractAction() { //NOI18N
@Override
public void actionPerformed(ActionEvent e) {
showPopup(org.netbeans.modules.versioning.util.Utils.getPositionForPopup(view.getOutline()));
}
});
viewComponent = new ViewContainer(em);
viewComponent.add(view, BorderLayout.CENTER);
viewComponent.addAncestorListener(this);
em.addPropertyChangeListener(this);
}
代码示例来源:origin: digital-preservation/droid
mdl = DefaultOutlineModel.createOutlineModel(treeModel, new ProfileRowModel(), true, "Resource");
final OutlineMouseAdapter mouseAdapter = new OutlineMouseAdapter();
resultsOutline.addMouseListener(mouseAdapter);
resultsOutline.addMouseMotionListener(mouseAdapter);
resultsOutline.setVisible(true);
代码示例来源:origin: uk.gov.nationalarchives/droid-ui
mdl = DefaultOutlineModel.createOutlineModel(treeModel, new ProfileRowModel(), true, "Resource");
final OutlineMouseAdapter mouseAdapter = new OutlineMouseAdapter();
resultsOutline.addMouseListener(mouseAdapter);
resultsOutline.addMouseMotionListener(mouseAdapter);
resultsOutline.setVisible(true);
内容来源于网络,如有侵权,请联系作者删除!