當前位置: 首頁>>代碼示例>>Java>>正文


Java GuiStandardUtils.attachDialogBorder方法代碼示例

本文整理匯總了Java中org.springframework.richclient.util.GuiStandardUtils.attachDialogBorder方法的典型用法代碼示例。如果您正苦於以下問題:Java GuiStandardUtils.attachDialogBorder方法的具體用法?Java GuiStandardUtils.attachDialogBorder怎麽用?Java GuiStandardUtils.attachDialogBorder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.springframework.richclient.util.GuiStandardUtils的用法示例。


在下文中一共展示了GuiStandardUtils.attachDialogBorder方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createDialogContentPane

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 *
 * Creates an additional panel at the top containing a title/message area.
 * This can be used in conjunction with validation reporters to show the
 * most recent error or to simply show a title and a description of the
 * current Dialog.
 *
 * Use {@link #createTitledDialogContentPane()} to add your custom components.
 */
protected JComponent createDialogContentPane() {
	pageControl = new JPanel(new BorderLayout());
	JPanel titlePaneContainer = new JPanel(new BorderLayout());
	setMessage(getDescription());
	titlePaneContainer.add(titlePane.getControl());
	titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH);
	pageControl.add(titlePaneContainer, BorderLayout.NORTH);
	contentPane = createTitledDialogContentPane();
	if (getPreferredSize() != null) {
		contentPane.setPreferredSize(getPreferredSize());
	}
	GuiStandardUtils.attachDialogBorder(contentPane);
	pageControl.add(contentPane);
	return pageControl;
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:26,代碼來源:TitledApplicationDialog.java

示例2: addDialogComponents

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
protected void addDialogComponents()
{
    JComponent dialogContentPane = createDialogContentPane();
    if (getPreferredSize() != null)
    {
        dialogContentPane.setSize(getPreferredSize());
    }
    if (!(this.widget instanceof TitledWidget))
    {
        GuiStandardUtils.attachDialogBorder(dialogContentPane);
    }
    getDialogContentPane().add(dialogContentPane);
    getDialogContentPane().add(createButtonBar(), BorderLayout.SOUTH);
    if (this.titledWidgetId != null)
        ((ApplicationObjectConfigurer) Application.services().getService(
                ApplicationObjectConfigurer.class)).configure(this.widget, this.titledWidgetId);
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:18,代碼來源:TitledWidgetApplicationDialog.java

示例3: createStandardView

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Construct a complete standard layout for a dialog page. This is a panel with the
 * title/message area at the top, the dialog page control in the center, and the
 * command button bar (using the provided group of commands) on the bottom. You should
 * have already wired any commands to the page complete status as needed.
 * 
 * @param dialogPage to process
 * @param commandGroupMembers Array of commands to place in the button bar
 * @return created component
 * @see #createTitlePane(DialogPage)
 * @see #adaptPageCompletetoGuarded(DialogPage, Guarded)
 */
public static JComponent createStandardView( DialogPage dialogPage, Object[] commandGroupMembers ) {
    JPanel viewPanel = new JPanel(new BorderLayout());

    JPanel titlePaneContainer = new JPanel(new BorderLayout());
    titlePaneContainer.add(createTitlePane(dialogPage).getControl());
    titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH);
    viewPanel.add(titlePaneContainer, BorderLayout.NORTH);

    JComponent pageControl = dialogPage.getControl();
    GuiStandardUtils.attachDialogBorder(pageControl);
    viewPanel.add(pageControl);

    viewPanel.add(createButtonBar(commandGroupMembers), BorderLayout.SOUTH);

    return viewPanel;
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:29,代碼來源:DialogPageUtils.java

示例4: createComponents

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * createComponents.
 *
 * @return pageControl
 */
private JPanel createComponents() {

    final TitlePane titlePane = new TitlePane();
    initStandardCommands();
    final JPanel pageControl = new JPanel(new BorderLayout());
    final JPanel titlePaneContainer = new JPanel(new BorderLayout());
    titlePane.setTitle(bagView.getPropertyMessage("NewBagInPlace.title"));
    titlePane.setMessage(
            new DefaultMessage(bagView.getPropertyMessage("NewBagInPlace" + ".description")));
    titlePaneContainer.add(titlePane.getControl());
    titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH);
    pageControl.add(titlePaneContainer, BorderLayout.NORTH);

    final JPanel contentPanel = new JPanel(new GridBagLayout());
    contentPanel.setBorder(new EmptyBorder(10, 10, 10, 10));

    int row = 0;
    layoutSelectDataContent(contentPanel, row++);
    layoutProfileSelectionContent(contentPanel, row++);
    layoutAddKeepFilesToEmptyCheckBox(contentPanel, row++);
    layoutSpacer(contentPanel, row++);

    GuiStandardUtils.attachDialogBorder(contentPanel);
    pageControl.add(contentPanel);
    final JComponent buttonBar = createButtonBar();
    pageControl.add(buttonBar, BorderLayout.SOUTH);

    this.pack();
    return pageControl;

}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:37,代碼來源:NewBagInPlaceFrame.java

示例5: createButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * createButtonBar.
 *
 * @return buttonBar
 */
protected JComponent createButtonBar() {
    final CommandGroup dialogCommandGroup =
            CommandGroup.createCommandGroup(null, getCommandGroupMembers());
    final JComponent buttonBar = dialogCommandGroup.createButtonBar();
    GuiStandardUtils.attachDialogBorder(buttonBar);
    return buttonBar;
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:13,代碼來源:NewBagInPlaceFrame.java

示例6: createComponents

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * createComponents.
 *
 * @return pageControl
 */
private JPanel createComponents() {
    final TitlePane titlePane = new TitlePane();
    initStandardCommands();
    final JPanel pageControl = new JPanel(new BorderLayout());
    final JPanel titlePaneContainer = new JPanel(new BorderLayout());
    titlePane.setTitle(bagView.getPropertyMessage("NewBagFrame.title"));
    titlePane.setMessage(
            new DefaultMessage(bagView.getPropertyMessage("NewBagFrame" + ".description")));
    titlePaneContainer.add(titlePane.getControl());
    titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH);
    pageControl.add(titlePaneContainer, BorderLayout.NORTH);

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new GridBagLayout());

    int row = 0;
    layoutBagVersionSelection(contentPane, row++);
    layoutProfileSelection(contentPane, row++);

    if (getPreferredSize() != null) {
        contentPane.setPreferredSize(getPreferredSize());
    }

    GuiStandardUtils.attachDialogBorder(contentPane);
    pageControl.add(contentPane);
    final JComponent buttonBar = createButtonBar();
    pageControl.add(buttonBar, BorderLayout.SOUTH);

    this.pack();
    return pageControl;
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:37,代碼來源:NewBagFrame.java

示例7: createButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * createButtonBar.
 *
 * @return buttonBar
 */
private JComponent createButtonBar() {
    final CommandGroup dialogCommandGroup =
            CommandGroup.createCommandGroup(null, getCommandGroupMembers());
    final JComponent buttonBar = dialogCommandGroup.createButtonBar();
    GuiStandardUtils.attachDialogBorder(buttonBar);
    return buttonBar;
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:13,代碼來源:CreateWordsFrame.java

示例8: createButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Return a standardized row of command buttons, right-justified and all of the same
 * size, with OK as the default button, and no mnemonics used, as per the Java Look
 * and Feel guidelines.
 */
protected JComponent createButtonBar() {
    commitCommand = getCommitCommand();
    revertCommand = getRevertCommand();
    cancelCommand = getCancelCommand();

    formCommandGroup = CommandGroup.createCommandGroup( null, new AbstractCommand[] {cancelCommand,
            revertCommand, commitCommand} );
    JComponent buttonBar = formCommandGroup.createButtonBar();
    GuiStandardUtils.attachDialogBorder( buttonBar );
    return buttonBar;
}
 
開發者ID:danilovalente,項目名稱:spring-richclient,代碼行數:17,代碼來源:AbstractDetailForm.java

示例9: createButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Return a standardized row of command buttons.
 * 
 * @param groupMembers
 * @return button bar
 */
public static JComponent createButtonBar( Object[] groupMembers ) {
    CommandGroup dialogCommandGroup = CommandGroup.createCommandGroup(null, groupMembers);
    JComponent buttonBar = dialogCommandGroup.createButtonBar();
    GuiStandardUtils.attachDialogBorder(buttonBar);
    return buttonBar;
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:13,代碼來源:DialogPageUtils.java

示例10: addDialogComponents

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Subclasses may override to customize how this dialog is built.
 */
protected void addDialogComponents() {
	JComponent dialogContentPane = createDialogContentPane();
	GuiStandardUtils.attachDialogBorder(dialogContentPane);
	if (getPreferredSize() != null) {
		dialogContentPane.setPreferredSize(getPreferredSize());
	}
	getDialogContentPane().add(dialogContentPane);
	getDialogContentPane().add(createButtonBar(), BorderLayout.SOUTH);
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:13,代碼來源:ApplicationDialog.java

示例11: createButtons

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Creates two commands "Restore defaults" and "Apply" for this page,
 * layouts them on the panel.
 * 
 * @return panel containing "Restore defaults" and "Apply" commands
 */
protected JComponent createButtons() {
	CommandGroup commandGroup = CommandGroup.createCommandGroup(null,
			getCommands());
	JComponent buttonBar = commandGroup.createButtonBar();
	GuiStandardUtils.attachDialogBorder(buttonBar);

	return buttonBar;
}
 
開發者ID:danilovalente,項目名稱:spring-richclient,代碼行數:15,代碼來源:PreferencePage.java

示例12: createFirstPageButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
protected JComponent createFirstPageButtonBar() {
    CommandGroup dialogCommandGroup = CommandGroup.createCommandGroup(null, getIntroPageCommandGroupMembers());
    JComponent buttonBar = dialogCommandGroup.createButtonBar();
    GuiStandardUtils.attachDialogBorder(buttonBar);
    buttonBar.setOpaque(false);
    return buttonBar;
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:8,代碼來源:SetupWizardDialog.java

示例13: createButtonBar

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Return a standardized row of command buttons, right-justified and all of
 * the same size, with OK as the default button, and no mnemonics used, as
 * per the Java Look and Feel guidelines.
 */
protected JComponent createButtonBar() {
	this.dialogCommandGroup = CommandGroup.createCommandGroup(null, getCommandGroupMembers());
	JComponent buttonBar = this.dialogCommandGroup.createButtonBar();
	GuiStandardUtils.attachDialogBorder(buttonBar);
	return buttonBar;
}
 
開發者ID:danilovalente,項目名稱:spring-richclient,代碼行數:12,代碼來源:ApplicationDialog.java

示例14: getComponent

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
public JComponent getComponent() {
	JPanel titlePaneContainer = new JPanel(new BorderLayout());
	titlePaneContainer.add(titlePane.getControl());
	titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH);

	JPanel pageControl = new JPanel(new BorderLayout());
	pageControl.add(titlePaneContainer, BorderLayout.NORTH);
	JComponent content = createFormControl();
	GuiStandardUtils.attachDialogBorder(content);
	pageControl.add(content);

	setMessage(getDescription());

	return pageControl;
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:16,代碼來源:AbstractTitledWidgetForm.java

示例15: prepareDialogPage

import org.springframework.richclient.util.GuiStandardUtils; //導入方法依賴的package包/類
/**
 * Prepare a dialog page - Add our property listeners and configure the
 * control's look.
 * @param page to process
 */
protected void prepareDialogPage(DialogPage page) {
	page.addPropertyChangeListener(childChangeHandler);
	JComponent c = page.getControl();
	GuiStandardUtils.attachDialogBorder(c);
	Dimension size = c.getPreferredSize();
	if (size.width > largestPageWidth) {
		largestPageWidth = size.width;
	}
	if (size.height > largestPageHeight) {
		largestPageHeight = size.height;
	}
}
 
開發者ID:danilovalente,項目名稱:spring-richclient,代碼行數:18,代碼來源:CompositeDialogPage.java


注:本文中的org.springframework.richclient.util.GuiStandardUtils.attachDialogBorder方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。