Package org.eclipse.swt.widgets

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


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

        });
View Full Code Here


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

        });
View Full Code Here

       
        Link simpleEmployeePaymentReport = new Link(groupBody, SWT.NONE);
        simpleEmployeePaymentReport.setText("<A>Holerite</A>");
        simpleEmployeePaymentReport.setBackground(groupBody.getBackground());
       
        simpleEmployeePaymentReport.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
              if(employeeTable.getSelection().length > 0){
                GDWindowControl.getInstance().openHoleriteControlCenter(employeeTable.getSelection()[0].getText(0));
              } else {
                GDWindowControl.getInstance().openHoleriteControlCenter();
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 extrato banc�rio <A>clique aqui</A>");
        printLink.addListener(SWT.Selection, new Listener(){
            public void handleEvent(Event arg0) {
                CreateReports.createFlowBankAccountReport(getCheckDataMap(), getStartDate(), getEndDate(), account);
            }
        });
    
View Full Code Here

    if(instance.getStatus().equals(InstanceStatus.STOPPED)) {
      Link linkStart = new Link(statusPanel, SWT.NONE);
      linkStart.setText("<a>Start</a> tomcat instance.");
      linkStart.setBackground(statusPanel.getBackground());
      linkStart.setLayoutData(linksData);
      linkStart.addListener(SWT.Selection, new Listener() {
        // START Instance
        public void handleEvent(Event event) {
          instance.setStatus(InstanceStatus.STARTED);
          redraw();
        }
View Full Code Here

    } else {
      Link linkStop = new Link(statusPanel, SWT.NONE);
      linkStop.setText("<a>Stop</a> tomcat instance.");
      linkStop.setBackground(statusPanel.getBackground());
      linkStop.setLayoutData(linksData);
      linkStop.addListener(SWT.Selection, new Listener() {
        // STOP Instance
        public void handleEvent(Event event) {
          instance.setStatus(InstanceStatus.STOPPED);
          redraw();
        }
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.