Examples of Button


Examples of com.pointcliki.ui.Button

      createLogicEditor();
      return;
    }
   
    // Add settings
    Button create = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
        Map map = scene(EditorScene.class).map();
        for (Logic l: map.selectedLogics()) map.deselectLogic(l);
        return Minion.CONTINUE;
      }
    }, "new logic");
    create.resize(new Vector2f(155, 24));
    addChild(create, 2);
   
    Button delete = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
        l.cleanup();
        return Minion.CONTINUE;
      }
    }, "delete logic");
    delete.resize(new Vector2f(155, 24));
    delete.position(new Vector2f(0, 26));
    addChild(delete, 3);
   
    TextEntity name = new TextEntity(l.name(), TextEntity.ALIGN_LEFT, EditorScene.LargeFont(), Color.darkGray);
    name.position(new Vector2f(0, 64));
    addChild(name, 4);
View Full Code Here

Examples of com.sardak.antform.types.Button

    label.addText("This is a simple label");
    addConfiguredLabel(label);
   
    ButtonBar bar = new ButtonBar();
    bar.setProject(project);
    bar.addConfiguredButton(new Button("Ok button", null, ActionType.OK));
    bar.addConfiguredButton(new Button("Cancel button", null, ActionType.CANCEL));
    bar.addConfiguredButton(new Button("Reset button", null, ActionType.RESET));
    addConfiguredButtonBar(bar);
   
    addConfiguredSeparator(new Separator());
   
    BooleanProperty bp = new BooleanProperty();
    bp.setProject(project);
    bp.setLabel("booleanproperty");
    bp.setProperty("booleanproperty");
    bp.setEditable(true);
    addConfiguredBooleanProperty(bp);
   
    TextProperty tp = new TextProperty();
    tp.setProject(project);
    tp.setLabel("textproperty");
    tp.setProperty("textproperty");
    tp.setColumns(30);
    tp.setEditable(true);
    tp.setPassword(false);
    tp.setRequired(false);
    addConfiguredTextProperty(tp);

    ButtonBar controlBar = new ButtonBar();
    controlBar.setProject(project);
    controlBar.addConfiguredButton(new Button("Save properties", null, ActionType.OK));
    controlBar.addConfiguredButton(new Button("Reset form", null, ActionType.RESET));
    addConfiguredControlBar(controlBar);

    execute();

    System.out.println(project.getProperties());
View Full Code Here

Examples of com.scriptographer.adm.Button

    // Create row of buttons
    ItemGroup buttons = new ItemGroup(this);
    buttons.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttons.setMarginTop(8);

    Button cancelButton = new Button(this);
    cancelButton.setText("Cancel");
    cancelButton.setMarginRight(4);
    buttons.addToContent(cancelButton);

    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    buttons.addToContent(okButton);
   
    // Add one more row for the buttons to the layout.
    TableLayout layout =
        AdmPaletteProxy.createLayout(this, components, true, 1, 5);
View Full Code Here

Examples of com.smartgwt.client.widgets.Button

    HLayout buttonLayout = new HLayout(10);
    buttonLayout.setAlign(Alignment.CENTER);
    buttonLayout.setHeight(30);
    buttonLayout.setWidth100();
    Button add = new Button(I18nProvider.getSampleMessages().multipleListenersBtn());
    add.setLayoutAlign(VerticalAlignment.CENTER);
    add.setAutoFit(true);
    add.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        final Portlet portlet = new Portlet();
        portlet.setTitle(I18nProvider.getSampleMessages().multipleListenersPortletTitle());
View Full Code Here

Examples of com.sun.dtv.lwuit.Button

        mainForm = new Form();
        mainForm.setLayout(new CoordinateLayout(200, 480));
        mainForm.setY(130);
        mainForm.setX(0);
        // Create buttons in the main form
        final Button btnLoadXlet = new Button("Carregar um Xlet");
        btnLoadXlet.setX(5);
        btnLoadXlet.setY(0);
        btnLoadXlet.setWidth(150);

        final Button btnVideo = new Button("Tocar um video");
        btnVideo.setX(5);
        btnVideo.setY(35);
        btnVideo.setWidth(150);

        final Button btnSair = new Button("Sair");
        btnSair.setX(5);
        btnSair.setY(70);
        btnSair.setWidth(150);

        final Label lblIP = new Label("Voce pode conectar por ssh usando: root@" + Info.getIpAddress());
        lblIP.setX(40);
        lblIP.setY(305);
        lblIP.setWidth(150);

        // Criando actionListener
        ActionListener listener = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
               
                if (evt.getSource() == btnLoadXlet) {
                    loadForm.show();
                    mainForm.setVisible(true);
                    //mainForm.setY(100);
                    //btnSair.setVisible(false);
                    //mainForm.repaint();
                } else if (evt.getSource() == btnVideo) {
                    videoForm.show();
                    mainForm.setVisible(true);
                } else if (evt.getSource() == btnSair) {
                    exit();
                }
            }
        };

        // Adicionando actionListeners
        btnLoadXlet.addActionListener(listener);
        btnVideo.addActionListener(listener);
        btnSair.addActionListener(listener);
        mainForm.addComponent(btnLoadXlet);
        mainForm.addComponent(btnVideo);
        mainForm.addComponent(btnSair);
        mainForm.addComponent(lblIP);
        mainForm.setCommandListener(listener);
View Full Code Here

Examples of com.sun.lwuit.Button

        unselectedImages[2] = Contents.displayImage("unsubscribed");
        unselectedImages[3] = Contents.displayImage("choice");
          //  selectedImages[i] = temp;
        ButtonActionListener action = new ButtonActionListener();
        for (int i = 0; i < unselectedImages.length; i++) {
            Button b = new Button(Contents.offlineChoices[i], unselectedImages[i]);
           // b.setRolloverIcon(selectedImages[i]);
            b.setPressedIcon(unselectedImages[i].scaled( (int) (unselectedImages[i].getWidth()* 0.8),
                                             (int)(unselectedImages[i].getHeight() *0.8) ));
            b.getStyle().setBgTransparency(0);
            b.getStyle().setBorder(Border.createLineBorder(1));
            b.setAlignment(Label.CENTER);
            b.setTextPosition(Label.BOTTOM);
            mainContainer.addComponent(b);
            b.addActionListener(action);
          //  buttonpool.put(b, Contents.offlineChoices[i]);
            elementWidth = Math.max(b.getPreferredW(), elementWidth);
        }
           
        //Calculate the number of columns for the GridLayout according to the
        //screen width
        int cols = 2;//width / elementWidth;
View Full Code Here

Examples of com.totsp.gwittir.client.ui.Button

 
  public StreamingExample(){
    super(new BoundWidgetTypeFactory(),null);
   
    Button stream = new Button("Stream!");
        stream.addClickListener(new ClickListener() {
                public void onClick(Widget sender) {
                    ExampleStreamServiceAsync ser = (ExampleStreamServiceAsync) GWT.create(ExampleStreamService.class);
                    StreamingServiceStub stub = (StreamingServiceStub) ser;
                    stub.setServicePath(GWT.getModuleBaseURL() +
                        "ExampleStreamService");
View Full Code Here

Examples of com.vaadin.ui.Button

        form.addComponent(help);

        CheckBox check = new CheckBox("Check me out");
        form.addComponent(check);

        Button submit = new Button("Submit");
        submit.addStyleName(Bootstrap.Buttons.DEFAULT.styleName());
        form.addComponent(submit);

        container.addComponent(form);
    }
View Full Code Here

Examples of controlP5.Button

        int ibsX= col.getPixelControllerGenerator().getGenerator(0).getInternalBufferXSize();
        int ibsY= col.getPixelControllerGenerator().getGenerator(0).getInternalBufferYSize();
        cp5.addTextlabel("nfoInternalBuffer", messages.getString("GeneratorGui.INFO_INTERNAL_BUFFERSIZE")+ibsX+"/"+ibsY, nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$
        nfoYPos+=yposAdd;
       
        Button saveScreenshot = cp5.addButton(GuiElement.SAVE_SCREENSHOT.guiText(), 0,
            nfoXPos, nfoYPos, 110, 15);
        saveScreenshot.setCaptionLabel(messages.getString("GeneratorGui.SAVE_SCREENSHOT")); //$NON-NLS-1$
        saveScreenshot.moveTo(infoTab);
        cp5.getTooltip().register(GuiElement.SAVE_SCREENSHOT.guiText(), messages.getString("GeneratorGui.TOOLTIP_SAVE_SCREENSHOT")); //$NON-NLS-1$

       
        nfoXPos += xposAdd;
        nfoYPos = yPosStartDrowdown+20;
View Full Code Here

Examples of de.eydamos.guiadvanced.form.Button

        setHeight(100);

        fontRendererObj = FMLClientHandler.instance().getClient().fontRenderer;

        // create button for ok and disable it at the beginning
        btn_ok = new Button(0, xSize - 100, 70, 60, 20, I18n.format(Localizations.BUTTON_OK));
        btn_ok.enabled = false;

        // create button for cancel
        btn_cancel = new Button(1, 40, 70, 60, 20, I18n.format(Localizations.BUTTON_CANCEL));

        // add buttons to supParts
        addSubPart(btn_ok);
        addSubPart(btn_cancel);
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.