Package br.com.visualmidia.ui

Examples of br.com.visualmidia.ui.HomeButton


//      });
  }

  public void addButton(String title, String icon, String method,
      Object location) {
    HomeButton homeButton = new HomeButton(componentsAreaComposite,
        SWT.FLAT, title, icon, method, 0, 0, location, 1);
    componentsList.add(homeButton);

    drawItensButtons();
  }
View Full Code Here


    int positionInY = 70;
    int positionInX = 0;

    for (int i = 0; i < componentsList.size(); i++) {
      if (componentsList.get(i) instanceof HomeButton) {
        HomeButton homeButton = (HomeButton) componentsList.get(i);

        if (positionOfTheButton >= (screenPanel.getBounds().width - 200) / 135) {
          positionOfTheButton = 0;
          positionInY += 200;
        }
        positionInX = 20 + (positionOfTheButton * 130);

        FormData data = (FormData) homeButton.getLayoutData();
        data.left = new FormAttachment(0, positionInX);
        data.top = new FormAttachment(0, positionInY);
        data.width = 130;
        data.height = 200;

View Full Code Here

    categoryButtonsComposite.setLayout(new FormLayout());
    Color colorBg1 = new Color(null, 65, 80, 140);
    categoryButtonsComposite.setBackground(colorBg1);
    colorBg1.dispose();

    new HomeButton(categoryButtonsComposite, SWT.FLAT, "Controles","Centrais de controle", PRINCIPAL, 0, 60, this, 2);
    new HomeButton(categoryButtonsComposite, SWT.FLAT, "Relat�rios","Exibi�ao de relat�rios", "Relat�rios", 0, 110, this, 2);

    backgroundImage = new Image(mainPanel.getDisplay(), Constants.CURRENT_DIR + "img\\menubackground.jpg");
    logoWelcomeImage = new Image(mainPanel.getDisplay(), Constants.CURRENT_DIR + "img\\menulogo.png");

    categoryButtonsComposite.addListener(SWT.Paint, new Listener() {
View Full Code Here

      createStudentRegistrationControlCenterButton();
    }
  }

  private void createStudentControlCenterButton() {
    studentControlCenterButton = new HomeButton(this, SWT.FLAT, "Cadastro", "Dados do Aluno", "openStudentControlCenter", 0, 60, mainScreen, 3);
    studentControlCenterButton.setOpenArgs(new Object[] {student.getId()});
   
        FormData data = new FormData();
        data.top = new FormAttachment(studentPGroup, 10);
        data.right = new FormAttachment(100, 0);
View Full Code Here

        data.height = 51;
        studentControlCenterButton.setLayoutData(data);
  }

  private void createStudentRegistrationControlCenterButton() {
    HomeButton studentRegistrationControlCenterButton = new HomeButton(this, SWT.FLAT, "Matricula", "Matriculas do Aluno", "openRegistrationControlCenter", 0, 60, mainScreen, 3);
    studentRegistrationControlCenterButton.setOpenArgs(new Object[] {student.getId()});
   
    FormData data = new FormData();
    data.top = new FormAttachment(studentControlCenterButton, 10);
    data.right = new FormAttachment(100, 0);
    data.width = 250;
    data.height = 51;
    studentRegistrationControlCenterButton.setLayoutData(data);
  }
View Full Code Here

TOP

Related Classes of br.com.visualmidia.ui.HomeButton

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.