本文整理汇总了Java中org.springframework.richclient.application.ApplicationServices类的典型用法代码示例。如果您正苦于以下问题:Java ApplicationServices类的具体用法?Java ApplicationServices怎么用?Java ApplicationServices使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ApplicationServices类属于org.springframework.richclient.application包,在下文中一共展示了ApplicationServices类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createControl
import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
/**
* This populates the default view descriptor declared as the startingPageId
* property in the richclient-application-context.xml file.
*
* @return bagViewPanel
*/
@Override
protected JComponent createControl() {
bag = new DefaultBag();
final String userHomeDir = System.getProperty("user.home");
display("createControl - User Home Path: " + userHomeDir);
initializeCommands();
final ApplicationServices services = this.getApplicationServices();
final Color bgColor = new Color(20, 20, 100);
topButtonPanel = createTopButtonPanel();
topButtonPanel.setBackground(bgColor);
infoInputPane = new InfoFormsPane(this);
infoInputPane.bagInfoInputPane.enableForms(false);
final JSplitPane bagPanel = createBagPanel();
final GridBagLayout layout = new GridBagLayout();
final GridBagConstraints glbc = LayoutUtil
.buildGridBagConstraints(0, 0, 1, 1, 50, 100, GridBagConstraints.BOTH,
GridBagConstraints.CENTER);
layout.setConstraints(bagPanel, glbc);
final JPanel mainPanel = new JPanel(layout);
mainPanel.add(bagPanel);
final JPanel bagViewPanel = new JPanel(new BorderLayout(2, 2));
bagViewPanel.setBackground(bgColor);
bagViewPanel.add(mainPanel, BorderLayout.CENTER);
return bagViewPanel;
}
示例2: getServices
import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
protected ApplicationServices getServices() {
return ApplicationServicesLocator.services();
}
示例3: getApplicationServices
import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
protected ApplicationServices getApplicationServices() {
return ApplicationServicesLocator.services();
}
示例4: getApplicationServices
import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
/**
* @return ApplicationServices.
*/
protected ApplicationServices getApplicationServices() {
return ApplicationServicesLocator.services();
}