本文整理汇总了Java中javax.help.JHelpContentViewer类的典型用法代码示例。如果您正苦于以下问题:Java JHelpContentViewer类的具体用法?Java JHelpContentViewer怎么用?Java JHelpContentViewer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JHelpContentViewer类属于javax.help包,在下文中一共展示了JHelpContentViewer类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: HelpBrowserHyperlinkHandler
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public HelpBrowserHyperlinkHandler(JHelpContentViewer viewer) {
this.viewer = viewer;
MOUSE_ADAPTER = new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1) {
if (url != null) {
pane.setCursor(WAIT_CURSOR);
RequestProcessor.getDefault().post(new ViewerSetter(url, pane));
}
}
}
};
}
开发者ID:mantlik,项目名称:swingbox-javahelp-viewer,代码行数:15,代码来源:HelpBrowserHyperlinkHandler.java
示例2: createUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public static ComponentUI createUI(JComponent x) {
debug("create UI");
if (!(x instanceof JHelpContentViewer)) {
throw new ClassCastException("Invalid argument of type " + x.getClass().getName() + ". Expected JHelpContentViewer.");
} else {
return new SwingboxContentViewerUI((JHelpContentViewer) x);
}
}
开发者ID:mantlik,项目名称:swingbox-javahelp-viewer,代码行数:9,代码来源:SwingboxContentViewerUI.java
示例3: createActions
import javax.help.JHelpContentViewer; //导入依赖的package包/类
/**
*
*/
private void createActions() {
actAbout = new ExtAction("&About", "Product Information") {
@Override
public void actionPerformed(final ActionEvent event) {
LOGGER.info(event.getActionCommand());
showAboutDialog();
}
};
actLicense = new ExtAction("&License", "View License") {
@Override
public void actionPerformed(final ActionEvent event) {
LOGGER.info(event.getActionCommand());
showLicense();
}
};
actQuit = new ExtAction("&Quit", "Quit EvA2 workbench",
KeyStroke.getKeyStroke(KeyEvent.VK_Q, InputEvent.CTRL_MASK)) {
@Override
public void actionPerformed(final ActionEvent event) {
int result = JOptionPane.showConfirmDialog(
MainFrame.this,
"Do you really want to exit EvA2?",
"Exit Application",
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION) {
MainFrame.this.close();
}
}
};
actPreferences = new ExtAction("&Preferences", "Show preferences dialog",
KeyStroke.getKeyStroke(KeyEvent.VK_P, InputEvent.CTRL_MASK)) {
@Override
public void actionPerformed(final ActionEvent event) {
// ToDo
}
};
actHelp = new ExtAction("&Help", "Show help contents",
KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0)) {
@Override
public void actionPerformed(final ActionEvent event) {
// ToDo
String helpHS = "EvA2Help/EvA2Help.hs";
ClassLoader cl = MainFrame.class.getClassLoader();
JHelpContentViewer helpPane;
try {
URL hsURL = HelpSet.findHelpSet(cl, helpHS);
HelpSet helpSet = new HelpSet(null, hsURL);
// Trigger the help viewer:
helpPane = new JHelpContentViewer(helpSet);
JHelpNavigator helpNavigator = (JHelpNavigator) helpSet.getNavigatorView("TOC").createNavigator(helpPane.getModel());
JEFrame helpFrame = new JEFrame("Help contents");
JSplitPane helpSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, helpNavigator, helpPane);
helpFrame.add(helpSplit);
helpFrame.setVisible(true);
helpFrame.setMaximum(true);
} catch (Exception ee) {
// Say what the exception really is
LOGGER.log(Level.WARNING, "Could not open application help", ee);
}
}
};
}
开发者ID:openea,项目名称:eva2,代码行数:75,代码来源:MainFrame.java
示例4: createUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
/** invoked by reflection */
public static ComponentUI createUI(JComponent x) {
return new IdeaHelpContentViewUI((JHelpContentViewer) x);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:IdeaHelpContentViewUI.java
示例5: IdeaHelpContentViewUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public IdeaHelpContentViewUI(JHelpContentViewer contentViewer){
super(contentViewer);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:IdeaHelpContentViewUI.java
示例6: HelpViewer
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public HelpViewer(JHelpContentViewer x) {
super(x);
}
开发者ID:kcpeppe,项目名称:thread-dump-analysis,代码行数:4,代码来源:HelpViewer.java
示例7: createUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public static javax.swing.plaf.ComponentUI createUI(JComponent x) {
return new HelpViewer((JHelpContentViewer) x);
}
开发者ID:kcpeppe,项目名称:thread-dump-analysis,代码行数:4,代码来源:HelpViewer.java
示例8: SwingboxContentViewerUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public SwingboxContentViewerUI(JHelpContentViewer b) {
debug("create UI instance");
}
开发者ID:mantlik,项目名称:swingbox-javahelp-viewer,代码行数:4,代码来源:SwingboxContentViewerUI.java
示例9: createUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
/**
* invoked by reflection
*/
public static ComponentUI createUI(JComponent x) {
return new IdeaHelpContentViewUI((JHelpContentViewer)x);
}
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:IdeaHelpContentViewUI.java
示例10: IdeaHelpContentViewUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
public IdeaHelpContentViewUI(JHelpContentViewer contentViewer) {
super(contentViewer);
}
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:IdeaHelpContentViewUI.java
示例11: ExternalLinkContentViewerUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
/**
*
* @param x
*/
public ExternalLinkContentViewerUI(JHelpContentViewer x) {
super(x);
}
开发者ID:CIRDLES,项目名称:ET_Redux,代码行数:8,代码来源:ExternalLinkContentViewerUI.java
示例12: createUI
import javax.help.JHelpContentViewer; //导入依赖的package包/类
/**
*
* @param x
* @return
*/
public static javax.swing.plaf.ComponentUI createUI(JComponent x) {
return new ExternalLinkContentViewerUI((JHelpContentViewer) x);
}
开发者ID:CIRDLES,项目名称:ET_Redux,代码行数:9,代码来源:ExternalLinkContentViewerUI.java
注:本文中的javax.help.JHelpContentViewer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论