本文整理汇总了Java中javax.help.CSH.setHelpIDString方法的典型用法代码示例。如果您正苦于以下问题:Java CSH.setHelpIDString方法的具体用法?Java CSH.setHelpIDString怎么用?Java CSH.setHelpIDString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.help.CSH
的用法示例。
在下文中一共展示了CSH.setHelpIDString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialise
import javax.help.CSH; //导入方法依赖的package包/类
@Override
protected void initialise() {
CSH.setHelpIDString(
this,
"net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.DisabledConfigView");
configuration = activity.getConfiguration();
XStream xstream = new XStream(new DomDriver());
Activity a = configuration.getActivity();
xstream.setClassLoader(a.getClass().getClassLoader());
Object origConfig = configuration.getBean();
if (fieldNames == null) {
fieldNames = getFieldNames(origConfig);
}
origConfigXML = xstream.toXML(origConfig);
clonedConfig = xstream.fromXML(origConfigXML);
JPanel panel = UIBuilder.buildEditor(clonedConfig, (String[]) fieldNames.toArray(new String[0]));
this.add(panel, BorderLayout.CENTER);
this.revalidate();
}
示例2: setCurrentTabIndex
import javax.help.CSH; //导入方法依赖的package包/类
/**
*
* @param currentTabIndex
* @throws BadLabDataException
*/
public void setCurrentTabIndex(int currentTabIndex)
throws BadLabDataException {
this.currentTabIndex = currentTabIndex;
// hide all menu items
detritalUTh_menu.setVisible(false);
physicalConstantsModels_menu.setVisible(false);
MineralStdModels_menu.setVisible(false);
// refresh tabs
switch (currentTabIndex) {
case 0:
physicalConstantsModels_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Physical Constants models");
initPhysicalConstantsModelChooser();
break;
case 1:
detritalUTh_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Detrital UTh Models");
initDetritalUThModelChooser();
break;
case 2:
MineralStdModels_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Mineral Standard Models");
initMineralStandardModelChooser();
break;
case 3:
showSavedLabDefaults();
CSH.setHelpIDString(this, "LabData.Managing LabData Default");
}
}
示例3: TrajStatHelp
import javax.help.CSH; //导入方法依赖的package包/类
public TrajStatHelp() {
f = new JFrame("Menu Example");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JMenuBar mbar = new JMenuBar();
// a file menu
JMenu file = new JMenu("File");
JMenu help = new JMenu("Help");
// add an item to the help menu
help.add(topics = new JMenuItem("Help Topics"));
// add the menu items to the menu bar
mbar.add(file);
mbar.add(help);
// 1. create HelpSet and HelpBroker objects
HelpSet hs = getHelpSet("mi.hs");
HelpBroker hb = hs.createHelpBroker();
// 2. assign help to components
CSH.setHelpIDString(topics, "top");
// 3. handle events
topics.addActionListener(new CSH.DisplayHelpFromSource(hb));
// attach menubar to frame, set its size, and make it visible
f.setJMenuBar(mbar);
f.setSize(500, 300);
f.setVisible(true);
}
示例4: setCurrentTabIndex
import javax.help.CSH; //导入方法依赖的package包/类
/**
*
* @param currentTabIndex
* @throws BadLabDataException
*/
public void setCurrentTabIndex(int currentTabIndex)
throws BadLabDataException {
this.currentTabIndex = currentTabIndex;
// hide all menu items
tracers_menu.setVisible(false);
fractionation_menu.setVisible(false);
PbBlanks_menu.setVisible(false);
initialPbModels_menu.setVisible(false);
physicalConstantsModels_menu.setVisible(false);
MineralStdModels_menu.setVisible(false);
// refresh tabs
switch (currentTabIndex) {
case 0:
tracers_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Tracers");
initTracerModelChooser();
break;
case 1:
fractionation_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Fractionation Models");
InitAlphaPbChooser();
InitAlphaPbChooser();
break;
case 2:
PbBlanks_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.U-Pb Blank Models");
initPbBlankModelChooser();
break;
case 3:
initialPbModels_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Initial Pb Model");
initInitialPbModelChooser();
break;
case 4:
physicalConstantsModels_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Physical constants model");
initPhysicalConstantsModelChooser();
break;
case 5:
MineralStdModels_menu.setVisible(true);
CSH.setHelpIDString(this, "LabData.Mineral Standard Models");
initMineralStandardModelChooser();
break;
case 6:
showSavedLabDefaults();
CSH.setHelpIDString(this, "LabData.Managing LabData Default");
}
}
示例5: setHelpSetContext
import javax.help.CSH; //导入方法依赖的package包/类
/**
* Set the help context for a component
* @param component in question
* @param context is the label in the help documentation
*/
public void setHelpSetContext(Component component, String context) {
helpContext = context;
CSH.setHelpIDString(component, helpContext);
}