Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link.addListener()


    Link link = new Link(shell, SWT.NONE);
    link.setText("<A>Today</A>");
    link.setBackground(shell.getBackground());
    link.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false));
    link.addListener(SWT.Selection, new Listener() {
      @Override
      public void handleEvent(Event event) {
        RabbitView.updateDateTime(dateTime, Calendar.getInstance());
        ok();
      }
View Full Code Here


    private void createPrintLink() {
        Link printLink = new Link(mainPanel, SWT.NONE);
        printLink.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
        printLink.setText("Para imprimir o controle de cheques <A>clique aqui</A>");
        printLink.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                CreateReports.createCheckControlReport(getCheckDataMap(), filtersGroup.getStartPeriod(), filtersGroup.getEndPeriod(), filtersGroup.getOptionComboDate());
            }
        });
        FormData data = new FormData();
View Full Code Here

   
    private void createPrintLink() {
        Link printLink = new Link(mainPage, SWT.NONE);
        printLink.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
        printLink.setText("Para imprimir o fluxo de caixa <A>clique aqui</A>");
        printLink.addListener(SWT.Selection, new Listener(){
            public void handleEvent(Event arg0) {
              CreateReports.createCashFlowReport(getStartDate(), getEndDate(), getUnconsiderToReceiveText(), getUnconsiderToPayText(), filtersGroup.getSelectedAccounts(), true, true, false);
            }
        });
    
View Full Code Here

        Link perGroupLink = new Link(groupBody, SWT.NONE);
        perGroupLink.setText("<A>Por Grupo</A>");
        perGroupLink.setBackground(groupBody.getBackground());

        perGroupLink.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                updateTable(GROUP_STRING);
                updateOptionsPGroup(GROUP_STRING);
                updateTitleSegurityTable(GRUPOS_STRING);
            }
View Full Code Here

        Link perUserLink = new Link(groupBody, SWT.NONE);
        perUserLink.setText("<A>Por Usu�rio</A>");
        perUserLink.setBackground(groupBody.getBackground());

        perUserLink.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                updateTable(USER_STRING);
                updateOptionsPGroup(USER_STRING);
                updateTitleSegurityTable("Usu�rios");
            }
View Full Code Here

       
        Link addEmployee = new Link(groupBody, SWT.NONE);
        addEmployee.setText("<A>Adicionar aluno</A>");
        addEmployee.setBackground(groupBody.getBackground());
       
        addEmployee.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                GDWindowControl.getInstance().openStudentControlCenter();
            }

        });
View Full Code Here

        Link editEmployee = new Link(groupBody, SWT.NONE);
        editEmployee.setText("<A>Editar aluno</A>");
        editEmployee.setBackground(groupBody.getBackground());
       
        editEmployee.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                openStudent();
            }

        });
View Full Code Here

        if(system.hasAccess("Central de Matricula")) {
          Link openRegistrationControlCenter = new Link(groupBody, SWT.NONE);
          openRegistrationControlCenter.setText("<A>Central de matricula</A>");
          openRegistrationControlCenter.setBackground(groupBody.getBackground());
         
          openRegistrationControlCenter.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
              TableItem[] selection = studentTable.getSelection();
              if(selection.length > 0) {
                GDWindowControl.getInstance().openRegistrationControlCenter(selection[0].getText(0));
              } else {
View Full Code Here

       
        Link bankingBilletReport = new Link(groupBody, SWT.NONE);
        bankingBilletReport.setText("<A>Gera��o de Boletos</A>");
        bankingBilletReport.setBackground(groupBody.getBackground());
       
        bankingBilletReport.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                TableItem[] selection = studentTable.getSelection();
                if(selection.length > 0) {
                    GDWindowControl.getInstance().openBankingBilletReportControlCenter(selection[0].getText(0));
                } else {
View Full Code Here

       
        Link presenceReport = new Link(groupBody, SWT.NONE);
        presenceReport.setText("<A>Relat�rio de presen�as e faltas</A>");
        presenceReport.setBackground(groupBody.getBackground());
       
        presenceReport.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                TableItem[] selection = studentTable.getSelection();
                if(selection.length > 0) {
                    GDWindowControl.getInstance().openRegistrationAppointmentControlCenter(selection[0].getText(0));
                } else {
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.