Package org.berlin.patterns.swing.app.gui.Components

Examples of org.berlin.patterns.swing.app.gui.Components.IButton


         * @return IButton
         */
        public IButton createEnterButton() {          
            final IEventWorker eventWorker = new BaseWorker() {
                public void execute() {                   
                    final IButton button = (IButton) this.getMasterParent();               
                    final Components.IActionHandler action = button.getWindow().getActionHandler();
                    action.handleOnButtonEnter();              
                }
            };       
            final IButton button = new Button(new JButton("Execute"), eventWorker, this.getBasicWindow());
            button.addEventHandler();
            return button;
        }
View Full Code Here


                    System.out.println("Action - Clear - Output Window! [2]");
                    System.out.println(this.getLastEvent());                             
                    ((BasicWindow)getBasicWindow()).getOutputTextArea().setText("");                   
                }               
            };       
            final IButton button = new Button(new JButton("Clear"), eventWorker, this.getBasicWindow());
            button.addEventHandler();
            return button;
        }
View Full Code Here

                    } else {
                        System.out.println("WARN: Invalid closer, could not close application");
                    }                                                                  
                }
            };       
            final IButton button = new Button(new JButton("Exit"), eventWorker, this.getBasicWindow());
            button.addEventHandler();
            return button;
        }
View Full Code Here

        /**
         * Method withButtonPanel.
         * @return WindowBuilder
         */
        public WindowBuilder withButtonPanel() {           
            final IButton enterButton = this.createEnterButton();
            final IButton clearButton = this.createClearButton();
            final IButton exitButton = this.createExitButton();          
            final ILayout layout = new DefaultLayout();
            layout.defaultSettings();
            layout.getConstraints().weighty = 0;           
            final JPanel swingButtonPanel = new JPanel(layout.getLayout());                       
            final IPanel panel = new CommandButtonPanel(swingButtonPanel, layout, enterButton, clearButton, exitButton);           
View Full Code Here

TOP

Related Classes of org.berlin.patterns.swing.app.gui.Components.IButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.