Examples of addMouseListener()


Examples of com.alee.laf.text.WebTextArea.addMouseListener()

        final WebTextArea component = new WebTextArea ();
        component.setColumns ( 20 );
        component.setRows ( 3 );
        component.setLineWrap ( true );
        component.setWrapStyleWord ( true );
        component.addMouseListener ( new MouseAdapter ()
        {
            private String toAdd = "";
            private int step = 5;

            @Override
View Full Code Here

Examples of com.common.vistacalendar.internal.AnimatedPanelWithText.addMouseListener()

        final AnimatedPanelWithText panel = new AnimatedPanelWithText();
        panel.setInternalText("Today");
        panel.setBackground(CalendarSettings.BACKGROUNDCOLOR);
        panel.setMinimumSize(new Dimension(180, 20));
        panel.setPreferredSize(new Dimension(180, 20));
        panel.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseEntered(MouseEvent e) {
                panel.setForeground(Color.BLUE);
                String text=dateToString(new Date(), includeTime);
View Full Code Here

Examples of com.google.gwt.user.client.ui.FocusPanel.addMouseListener()

        wrapper.addClickListener(new ClickListener() {
          public void onClick(Widget sender) {
            onRowClicked(i);
          }
        });
        wrapper.addMouseListener(new HoverStyleHandler(wrapper, hoverGroup));
        widget = wrapper;
    }
    widget.setStylePrimaryName("ui-list-item");
    if(rowStyle != null) DOM.setElementAttribute(widget.getElement(), "style", rowStyle);
    if(rowClass != null) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Image.addMouseListener()

  }

  private Widget makeResizePanel() {
    final Image handle = new Image(GWT.getModuleBaseURL() + "gwt-log-triangle-10x10.png");
    handle.addStyleName("log-resize-se");
    handle.addMouseListener(new MouseListenerAdapter() {
      private boolean dragging = false;
      private int dragStartX;
      private int dragStartY;

      public void onMouseDown(Widget sender, int x, int y) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Label.addMouseListener()

    debugTable.getCellFormatter().setHorizontalAlignment(0, 0,
        HasHorizontalAlignment.ALIGN_CENTER);

    scrollPanel.setWidget(logTextArea);

    header.addMouseListener(new MouseListenerAdapter() {
      private boolean dragging = false;
      private int dragStartX;
      private int dragStartY;

      public void onMouseDown(Widget sender, int x, int y) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.SourcesMouseEvents.addMouseListener()

                wheeler.addMouseWheelListener(this);
            }
        }
        if (widget instanceof SourcesMouseEvents) {
            SourcesMouseEvents mouser = (SourcesMouseEvents) widget;
            mouser.addMouseListener(this);
        }
    }

    /**
     * This moves the background and then sets the back position. Call
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox.addMouseListener()

    b.addChangeListener(handler);
    b.addFocusHandler(handler);
    b.addBlurHandler(handler);
    b.addFocusListener(handler);
    b.addValueChangeHandler(handler);
    b.addMouseListener(handler);
    // Rich text box:
    RichTextArea rich = new RichTextArea();
    rich.setTitle("rich text box");
    p.add(rich);
    handler = new EventReporter<String, Object>(p);
View Full Code Here

Examples of com.google.gwt.user.client.ui.Tree.addMouseListener()

    Tree t = VisualsForTree.createTree();
    p.add(t);
    EventReporter<Object, TreeItem> handler = new EventReporter<Object, TreeItem>(
        p);
    t.addKeyboardListener(handler);
    t.addMouseListener(handler);

    t.addSelectionHandler(new SelectionHandler<TreeItem>() {
      public void onSelection(SelectionEvent<TreeItem> event) {
        Window.setTitle("select " + prettyPrint(event.getSelectedItem()));
      }
View Full Code Here

Examples of com.intellij.ui.components.JBList.addMouseListener()

            final JBList listComponent = new JBList(additionalPathModel);
            listComponent.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            listComponent.setCellRenderer(new AdditionalPathListCellRenderer());
            listComponent.getEmptyText().setText("No additional paths defined");
            listComponent.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    if (e.getClickCount() == 2) {
                        doEdit(listComponent.getSelectedIndex());
                    }
View Full Code Here

Examples of com.intellij.ui.table.JBTable.addMouseListener()

            jPanel.add(jbScrollPane, BorderLayout.CENTER);

            Content content = ContentFactory.SERVICE.getInstance().createContent(jPanel, tableName, false);
            contentManager.addContent(content);

            table.addMouseListener(new MyMouseAdapter(table, dataRows, project));
            table.setEnableAntialiasing(true);

            return content;
        }
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.