Examples of Button


Examples of model.Button

   
    /*INTERFACE*/
    Interface I = new Interface();
   
    /*EVENT BUTTON*/
    Button  option = new Button(60, 60, 470, 500);
    option.setIcon(new ImageIcon("img/optionB.png"));
    Button  pause = new Button(60, 60, 405, 500);
    pause.setIcon(new ImageIcon("img/pauseB.png"));
       
      pause.addActionListener(new pauseButtonListener());
      option.addActionListener(new optionButtonListener());
   
      /*EVENT CLAVIER*/
      p.setFocusable(true);
      p.requestFocus();
View Full Code Here

Examples of net.laubenberger.bogatyr.view.swing.Button

    // column 3
    gbc.gridx++;
    gbc.gridy = 0;
    gbc.weightx = 0.0D;

    panelContent.add(new Button(new ActionInput()), gbc);

    gbc.gridy++;
    panelContent.add(new Button(new ActionOutput()), gbc);

    // spacer
    gbc.gridy = 4;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.weighty = 1.0D;

    panelContent.add(new Panel(), gbc);

    final JScrollPane scroll = new PaneScroll(panelContent);

    final Group group = new Group(new Insets(0, 0, 0, 10), new Button(actionGo), new Button(actionAbort));

    panel.add(scroll, BorderLayout.CENTER);
    panel.add(group, BorderLayout.SOUTH);

    getContentPane().add(panel);
View Full Code Here

Examples of nextapp.echo2.app.Button

   */
  public Component getTableCellRendererComponent(Table arg0, Object arg1,
      int arg2, int arg3) {
    //Component component = super.getTableCellRendererComponent(arg0, arg1, arg2, arg3);
   
    Button component = new Button((String)arg1);
    if (logger.isDebugEnabled())
      logger.debug("Header-Class: "+component.getClass().getName());
    ((Button)component).setBorder(null);
    ((Button)component).setDisabledBorder(null);
    ((Button)component).setRolloverBorder(null);
    ((Button)component).setPressedBorder(null);
   
    StyleSheet stylesheet = Styles.DEFAULT_STYLE_SHEET;
    Style style = stylesheet.getStyle( nextapp.echo2.app.Component.class, "TblJbsBaseObject.Header");
    component.setStyle(style);
   
    TableLayoutData layout = (TableLayoutData) style.getProperty("layoutData");
    // remove the button's background
    component.setBackground(null);
    //set the button's layoutData
    component.setLayoutData(layout);

    return component;
  }
View Full Code Here

Examples of org.apache.click.control.Button

        fieldSet.add(radioGroup);
        fieldSet.add(select);
        fieldSet.add(new TextArea("textArea"));
        fieldSet.add(new TextField("textField"));

        Button button = new Button("button");
        button.setAttribute("onclick", "alert('Button clicked');");
        form.add(button);
        ImageSubmit imageSubmit = new ImageSubmit("image", "/assets/images/edit-button.gif");
        imageSubmit.setTitle("ImageSubmit");
        form.add(imageSubmit);
        form.add(new Reset("reset"));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.action.Button

            public String getHelp(final View view) {
                return null;
            }
        };

        View view = new Button(action, workspace);
        view.setLocation(new Location(100, 100));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        ButtonAction action2 = new ButtonAction() {

            public Consent disabled(final View view) {
                return Veto.DEFAULT;
            }

            public void execute(final Workspace workspace, final View view, final Location at) {
                view.getFeedbackManager().setViewDetail("Button 1 pressed");
            }

            public String getDescription(final View view) {
                return "Button that can't be pressed";
            }

            public ObjectActionType getType() {
                return USER;
            }

            public String getName(final View view) {
                return "Press Me Now!";
            }

            public boolean isDefault() {
                return false;
            }

            public String getHelp(final View view) {
                return null;
            }

        };

        View view2 = new Button(action2, workspace);
        view2.setLocation(new Location(200, 100));
        view2.setSize(view2.getRequiredSize(new Size()));
        workspace.addView(view2);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.control.Button

    }

    private ToolbarView createToolbar(final CalendarGrid calendar) {
        final ToolbarView toolbarView = new ToolbarView(getContent(), null);

        toolbarView.addView(new Button(new AbstractButtonAction("+Row") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.addRow();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("-Row") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.removeRow();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Across") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.acrossFirst();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Down") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.downFirst();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Next") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.nextPeriod();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Previous") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.previousePeriod();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Day") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.showSingleDay();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Days") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.showDays();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Weeks") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.showWeeks();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Months") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.showMonths();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Years") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.showYears();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Today") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                calendar.today();
            }
        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Date") {
            @Override
            public void execute(final Workspace workspace, View view, final Location at) {
                final Content content = new NullContent() {
                };
                view = DatePickerControl.getPicker(content);
View Full Code Here

Examples of org.apache.pivot.wtk.Button

        tabButtonPanorama.setView(tabButtonBoxPane);

        tabButtonGroup.getButtonGroupListeners().add(new ButtonGroupListener.Adapter() {
            @Override
            public void selectionChanged(ButtonGroup buttonGroup, Button previousSelection) {
                Button button = tabButtonGroup.getSelection();
                int index = (button == null) ? -1 : tabButtonBoxPane.indexOf(button);

                TabPane tabPane = (TabPane)getComponent();
                tabPane.setSelectedIndex(index);
            }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.Button

                {
                    return userNames.iterator();
                }
            }
        }.setRequired(true));
        treeForm.add(new Button("userFolderButton")
        {

            @Override
            public void onSubmit()
            {
                ((LinkTree) getPage().get("siteTree")).getTreeState()
                        .expandNode(populateUserTree(userFolder));
            }
        });
        treeForm.add(new Button("portalFolderButton")
        {

            @Override
            public void onSubmit()
            {
View Full Code Here

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

                    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

Examples of org.beryl.gui.widgets.Button

    dataModel.setValue("value", value);

    Panel panel = new Panel(null, null);
    panel.setProperty("border", BorderFactory.createEmptyBorder(1, 1, 1, 1));

    Button button = new Button(panel, null);
    button.setProperty("text", "Edit ...");
    button.addListener("clicked",  name, new GUIEventListener() {
      int counter = 0;

      public void eventOccured(GUIEvent event) {
        counter++;
        if (counter > 1) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.