Package javax.swing.event

Examples of javax.swing.event.AncestorListener


    updateFilterPanel();
    fillSubscribedChannelsListBox();
    fillAvailableChannelsListBox();
    mListUpdating = false;

    panel.addAncestorListener(new AncestorListener() {
      public void ancestorRemoved(AncestorEvent event) {
        Settings.propSelectedChannelCategoryIndex.setByte((byte)mCategoryCB.getSelectedIndex());
        String country = "";
        if (mCountryCB.getSelectedIndex() >= 0) {
          Object object = ((FilterItem)mCountryCB.getSelectedItem()).getValue();
View Full Code Here


        }
      });
     
      JScrollPane sp = new JScrollPane(mChannelTable);

      addAncestorListener(new AncestorListener() {
        public void ancestorAdded(AncestorEvent event) {}

        public void ancestorMoved(AncestorEvent event) {}

        public void ancestorRemoved(AncestorEvent event) {
View Full Code Here

    mVariableTable.getColumnModel().getColumn(1).setCellRenderer(renderer);
    mVariableTable.getColumnModel().getColumn(2).setCellRenderer(renderer);
   
    JScrollPane sp = new JScrollPane(mVariableTable);

    addAncestorListener(new AncestorListener() {
      public void ancestorAdded(AncestorEvent event) {}
     
      public void ancestorMoved(AncestorEvent event) {}

      public void ancestorRemoved(AncestorEvent event) {
View Full Code Here

        && display3DViewInMainWindowAction.getValue(Action.NAME) != null) {
      final JMenuItem attachDetach3DViewMenuItem = new JMenuItem(
          createAttachDetach3DViewAction(controller, popup));
      // Add a listener to 3D view to switch action when its parent changes
      JComponent view3D = (JComponent)controller.getHomeController3D().getView();
      view3D.addAncestorListener(new AncestorListener() {       
          public void ancestorAdded(AncestorEvent ev) {
            attachDetach3DViewMenuItem.setAction(
                createAttachDetach3DViewAction(controller, popup));
          }
         
View Full Code Here

        public void intervalRemoved(ListDataEvent ev) {
          spreadFurnitureIconsAlongListWidth();
        }
      });
    ToolTipManager.sharedInstance().registerComponent(this.catalogFurnitureList);
    this.catalogFurnitureList.addAncestorListener(new AncestorListener() {
        public void ancestorAdded(AncestorEvent ev) {
          spreadFurnitureIconsAlongListWidth();
        }
 
        public void ancestorMoved(AncestorEvent ev) {
View Full Code Here

   * Adds an ancestor listener to this component to manage canvas universe
   * creation and clean up. 
   */
  private void addAncestorListener(final Component component3D,
                                   final boolean displayShadowOnFloor) {
    addAncestorListener(new AncestorListener() {       
        public void ancestorAdded(AncestorEvent event) {
          if (offscreenUniverse != null) {
            throw new IllegalStateException("Can't listen to home changes offscreen and onscreen at the same time");
          }
          onscreenUniverse = createUniverse(displayShadowOnFloor, true, false);
View Full Code Here

    /**
     * Adds a hierarchy listener to this component to manage canvases attachment to universe. 
     */
    private void addHierarchyListener() {
      addAncestorListener(new AncestorListener() {
          public void ancestorAdded(AncestorEvent event) {
            // Attach the 3 other canvases to super class universe with their own view
            createView(0, 0, 1, View.PARALLEL_PROJECTION).addCanvas3D(frontViewCanvas);
            createView(Locale.getDefault().equals(Locale.US)
                          ? -(float)Math.PI / 2
View Full Code Here

      frame.toFront();
    }
  }
      });

    addAncestorListener(new AncestorListener() {
  public void ancestorAdded(AncestorEvent event) {
  }
  public void ancestorMoved(AncestorEvent event) {
  }
  public void ancestorRemoved(AncestorEvent event) {
View Full Code Here

  /**
   * Adds an ancestor listener to this component to manage canvas universe
   * creation and clean up. 
   */
  private void addAncestorListener() {
    addAncestorListener(new AncestorListener() {
        public void ancestorAdded(AncestorEvent event) {
          if (universe == null) {
            createUniverse();
          }
        }
View Full Code Here

                createWindowListener(component)));
    }

    private static AncestorListener createAncestorListener(
            final JComponent component, final WindowListener windowListener) {
        return new AncestorListener() {
            public void ancestorAdded(AncestorEvent event) {
                Window window = SwingUtilities.getWindowAncestor(component);
                if (window != null) {
                    window.removeWindowListener(windowListener);
                    window.addWindowListener(windowListener);
View Full Code Here

TOP

Related Classes of javax.swing.event.AncestorListener

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.