Examples of Button


Examples of Login.Button

    clicked=false;
    this.db=db;
    started =false;
    users = new ArrayList<User>();
    curPanel=0;
    add = new Button("images/us1a.png", "images/us1.png", "images/us1.png");
    update = new Button("images/us2.png", "images/us2a.png", "images/us2.png");
    remove = new Button("images/us3.png", "images/us3a.png", "images/us3.png");
    typeLabel = new JLabel("User Type               :");
    userLabel = new JLabel("Username               :");
    passLabel = new JLabel("Password                :");
    retypeLabel = new JLabel("Retype Password  :");
   
View Full Code Here

Examples of abstraction.components.Button

  public static void main(String[] args) {

    GUIFactory aFactory = GUIFactoryChoice.getFactory();
    System.out.println("Using factory " + aFactory
        + " to construct aButton");
    Button aButton = aFactory.createButton();
    aButton.setCaption("Push a");
    aButton.paint();

    GUIFactory bFactory = GUIFactoryChoice.getFactory();
    System.out.println("\nUsing factory " + bFactory
        + " to construct bButton");
    Button bButton = bFactory.createButton();
    bButton.setCaption("Push b");
    bButton.paint();

    GUIFactory cFactory = GUIFactoryChoice.getFactory();
    System.out.println("\nUsing factory " + cFactory
        + " to construct cButton");
    Button cButton = cFactory.createButton();
    cButton.setCaption("Push c");
    cButton.paint();
   
   
  }
View Full Code Here

Examples of android.widget.Button

    LinearLayout layout = new LinearLayout(this);
    layout.setOrientation(LinearLayout.VERTICAL);
   
    scroll.addView(layout);
   
    Button close = new Button(this);
    close.setText("Close");
    close.setOnClickListener(this);
    close.setGravity(Gravity.CENTER);
   
    TextView text = new TextView(this);
    text.setText("http://code.google.com/p/jfireeagle/wiki/Android");
    text.setAutoLinkMask(Linkify.ALL);
    text.setTextSize( (text.getTextSize() - 2.0f));
View Full Code Here

Examples of ca.nengo.ui.lib.world.piccolo.objects.Button

        addLayoutButtons();
        updateSimulatorProbes();
    }

    private void addLayoutButtons() {
        zoom = new Button(new ZoomIcon(BUTTON_SIZE),
                new Runnable() {
            public void run() {
                zoomToFit();
            }
        });
        feedforward = new Button(new ArrowIcon(BUTTON_SIZE),
                new Runnable() {
            public void run() {
                doFeedForwardLayout();
            }
        });
        save = new Button(new SaveIcon(BUTTON_SIZE),
                new Runnable() {
            public void run() {
                saveNodeLayout();
            }
        });
        restore = new Button(new LoadIcon(BUTTON_SIZE),
                new Runnable() {
            public void run() {
                restoreNodeLayout();
            }
        });
View Full Code Here

Examples of ch.sahits.game.graphic.layout.Button

    objective = addSpinner(getObjectiveList());
    addLabel(null);
    addLabel(null);

    addLabel(null);
    Button start = addButton("Start Game"); // TODO Externalize
    start.setAction(createStartButtonClickAction());
    addLabel(null);
    addLabel(null);

  }
View Full Code Here

Examples of com.centraview.valuelist.Button

    listObject.setCurrentPageParameters(ValueListConstants.AMP+"rowId="+marketingListId);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
   listObject.setMoveTo(false);
     buttonList.add(new Button("Import Members", "Import Members", "vl_addMembers();", false));
  buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
  displayParameters = new ValueListDisplay(buttonList, true, true);

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
View Full Code Here

Examples of com.centraview.valuelist.Button

      String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
      UserObject user = (UserObject)session.getAttribute("userobject");//get the user object
      int individualID = user.getIndividualID();
      ListPreference listpreference = user.getListPreference(ReportConstants.ADHOC_REPORT_LIST);
      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("New Report", "new", "c_goTo('/reports/new_adhoc.do?moduleId="+moduleId+"');", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      getReportList(request, dataSource, "StandardReport", ValueListConstants.ADHOC_REPORT_LIST_TYPE, ValueListConstants.adhocReportViewMap, moduleId, buttonList);
      session.removeAttribute("standardreportform");
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
View Full Code Here

Examples of com.dodo.blog.ui.component.input.Button

            }

            @Override
            public void populate( Article article )
            {
                Button publish;
                if ( !article.isPublished() )
                {
                    publish = new Button( "publish", article.getId().toString(), localize( "button.publish" ) ).setAjaxMethod( PUBLISH_ARTICLE_METHOD );
                }
                else
                {
                    publish = new Button( "hide", article.getId().toString(), localize( "button.hide" ) ).setAjaxMethod( HIDE_ARTICLE_METHOD );
                }

                addColumn( article.getTitle() );
                addColumn( article.getCategory() != null ? categoryService.getCategoryById( article.getCategory() ).getName() : "" );
                addColumn( article.isPublished().toString() );
                addColumn( article.getCreatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn( article.getUpdatedDate(), FormatUtil.DATE_FORMAT_MONTH_YEAR );
                addColumn(
                        publish,
                        new Anchor( "edit", localize( "button.edit" ), ArticleEdit.class ).addParameter( ArticleEdit.ARTICLE_ID, article.getId() ),
                        new Button( "delete", article.getId().toString(), localize( "button.delete" ) ).setAjaxMethod( DELETE_ARTICLE_METHOD )
                );
            }
        };
        add( table );
View Full Code Here

Examples of com.drakulo.games.ais.ui.component.button.Button

    add(gameMenuButton);

    // Load button
    y += vPadding;
    label = FontHelper.firstToUpper(I18n.get("global.load"));
    Button loadButton = new TextButton(label, x, y);
    loadButton.setSize(buttonWidth, buttonHeight);
    loadButton.disable();
    loadButton.hide();
    loadButton.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        // TODO
      }
    });
    gameMenuButtons.add(loadButton);
    add(loadButton);

    // Save button
    y += vPadding;
    label = FontHelper.firstToUpper(I18n.get("global.save"));
    Button saveButton = new TextButton(label, x, y);
    saveButton.hide();
    saveButton.setSize(buttonWidth, buttonHeight);
    saveButton.disable();
    saveButton.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        // TODO
      }
    });
    gameMenuButtons.add(saveButton);
    add(saveButton);

    // Settings button
    y += vPadding;
    label = FontHelper.firstToUpper(I18n.get("global.settings"));
    Button settingsButton = new TextButton(label, x, y);
    settingsButton.setSize(buttonWidth, buttonHeight);
    settingsButton.disable();
    settingsButton.hide();
    settingsButton.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        // TODO
      }
    });
    gameMenuButtons.add(settingsButton);
    add(settingsButton);

    // Main menu button
    y += vPadding;
    label = FontHelper.firstToUpper(I18n.get("global.main_menu"));
    Button mainMenu = new TextButton(label, x, y);
    mainMenu.setSize(buttonWidth, buttonHeight);
    mainMenu.hide();
    mainMenu.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        GameData.getGame().enterState(AloneInSpace.MAIN_MENU_STATE);
      }
    });
    gameMenuButtons.add(mainMenu);
    add(mainMenu);
   
    // Exit button
    y += vPadding;
    label = FontHelper.firstToUpper(I18n.get("global.exit"));
    Button exitButton = new TextButton(label, x, y);
    exitButton.setSize(buttonWidth, buttonHeight);
    exitButton.hide();
    exitButton.setActionHandler(new ActionHandler() {

      @Override
      public void run() {
        GameData.getGameContainer().exit();
      }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.Button

      area = new TextArea();
      //area.setWidth("500");
      //area.setHeight("500");
      add(area);
      buttonBar = new ButtonBar();
      Button clearButton = new Button("Clear");
      clearButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
        public void componentSelected(ButtonEvent ce)
        {
          area.setText("");
        }
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.