本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}