当前位置: 首页>>代码示例>>Java>>正文


Java ApplicationServices类代码示例

本文整理汇总了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;
}
 
开发者ID:pan-dora,项目名称:modeller,代码行数:41,代码来源:BagView.java

示例2: getServices

import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
protected ApplicationServices getServices() {
    return ApplicationServicesLocator.services();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:4,代码来源:AbstractApplicationWindow.java

示例3: getApplicationServices

import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
protected ApplicationServices getApplicationServices() {
    return ApplicationServicesLocator.services();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:4,代码来源:ApplicationServicesAccessor.java

示例4: getApplicationServices

import org.springframework.richclient.application.ApplicationServices; //导入依赖的package包/类
/**
 * @return ApplicationServices.
 */
protected ApplicationServices getApplicationServices() {
	return ApplicationServicesLocator.services();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:7,代码来源:ApplicationLifecycleAdvisor.java


注:本文中的org.springframework.richclient.application.ApplicationServices类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。