Package javax.swing.event

Examples of javax.swing.event.ChangeListener


        public TabPlaceHolder(final String pLabel,
                              final Callable<? extends JComponent> pInitializer) {
            super(new BorderLayout());
            label = pLabel;
            initializer = pInitializer;
            tabs.addChangeListener(new ChangeListener() {
                public void stateChanged(final ChangeEvent pEvent) {
                    if (component == null && tabs.getSelectedComponent() == TabPlaceHolder.this)
                        try {
                            component = initializer.call();
                            if (label != null && label.trim().length() > 0)
View Full Code Here


        contentPane.add(panel);
        if (showFixedDateCheckBox) {
            final JCheckBox fixedDate = new JCheckBox(language
                    .getText("fixedDate"));
            fixedDate.setSelected(myFixedDate);
            fixedDate.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    myFixedDate = fixedDate.isSelected();
                }
            });
            contentPane.add(fixedDate);
View Full Code Here

    }
    /** Init the widgets */
    public void init() {

        tabbedPane = new JTabbedPane();
        tabbedPane.getModel().addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                changeNameOfTask();
                fireDurationChanged();
            }
        });
View Full Code Here

     * @param tabPlacement
     */

    public TabbedTabber(int tabPlacement) {
        super(tabPlacement);
        addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (getSelectedIndex() != -1) {
                    getTabAt(getSelectedIndex()).tabSelected();
                }
View Full Code Here

        private GanttTabbedPane myTabs;
        private List myViews = new ArrayList();
    private GPViewImpl mySelectedView;
        ViewManagerImpl(GanttTabbedPane tabs) {
            myTabs = tabs;
            myTabs.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent e) {
          GPViewImpl selectedView = (GPViewImpl) myTabs.getSelectedUserObject();
          if (mySelectedView==selectedView) {
            return;
View Full Code Here

        getTabs().setSelectedIndex(0);
        this.resp.setActions();

        // pert area
        //getTabs().setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        getTabs().addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                bCritical
                        .setEnabled(getTabs().getSelectedIndex() == UIFacade.GANTT_INDEX);
                bScrollCenter
                        .setEnabled(getTabs().getSelectedIndex() == UIFacade.GANTT_INDEX);
View Full Code Here

  }
  public LinkedPanel(ViewFrame viewFrame) {
    super();
    setName("LinkedPanel");
    setViewFrame(viewFrame);
    addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        ConfigNode viewsNode = getConfigNode();
        if (viewsNode != null) {
          viewsNode.setAttribute("selected", getSelectedIndex(), 0);
        }
View Full Code Here

     }
    
    
     if (fileSet.getStyle() == FileSet.LINKED_STYLE) {
       LinkedPanel linkedPanel  = new LinkedPanel(this);
       linkedPanel.addChangeListener(new ChangeListener() {
         public void stateChanged(ChangeEvent e) {
           // rebulid menus...?
           //         menuBar.rebuildMainPanel();
           rebuildMainPanelMenu();
         }
View Full Code Here

            });   
        Integer viewportY = (Integer)home.getVisualProperty(FURNITURE_VIEWPORT_Y_VISUAL_PROPERTY);
        if (viewportY != null) {
          viewport.setViewPosition(new Point(0, viewportY));
        }
        viewport.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent ev) {
              controller.setVisualProperty(FURNITURE_VIEWPORT_Y_VISUAL_PROPERTY, viewport.getViewPosition().y);
            }
          });
        ((JViewport)furnitureView.getParent()).setComponentPopupMenu(furnitureViewPopup);
View Full Code Here

        Integer viewportX = (Integer)home.getVisualProperty(PLAN_VIEWPORT_X_VISUAL_PROPERTY);
        Integer viewportY = (Integer)home.getVisualProperty(PLAN_VIEWPORT_Y_VISUAL_PROPERTY);
        if (viewportX != null && viewportY != null) {
          viewport.setViewPosition(new Point(viewportX, viewportY));
        }
        viewport.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent ev) {
              Point viewportPosition = viewport.getViewPosition();
              controller.setVisualProperty(PLAN_VIEWPORT_X_VISUAL_PROPERTY, viewportPosition.x);
              controller.setVisualProperty(PLAN_VIEWPORT_Y_VISUAL_PROPERTY, viewportPosition.y);
            }
View Full Code Here

TOP

Related Classes of javax.swing.event.ChangeListener

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.