public ToggleAction() { super(TOGGLE_ACTION); // the action must track the collapsed status of the pane to update its // icon JXCollapsiblePane.this.addPropertyChangeListener("collapsed", this); }
public ToggleAction() { super(TOGGLE_ACTION); // the action must track the collapsed status of the pane to update its icon JXCollapsiblePane.this.addPropertyChangeListener("collapsed", this); }
public ToggleAction() { super(TOGGLE_ACTION); // the action must track the collapsed status of the pane to update its icon JXCollapsiblePane.this.addPropertyChangeListener("collapsed", this); }
public ToggleAction() { super(TOGGLE_ACTION); // the action must track the collapsed status of the pane to update its icon JXCollapsiblePane.this.addPropertyChangeListener("collapsed", this); }
public ToggleAction() { super(TOGGLE_ACTION); // the action must track the collapsed status of the pane to update its icon JXCollapsiblePane.this.addPropertyChangeListener("collapsed", this); }
/** * Creates a new empty <code>JXTaskPane</code>. */ public JXTaskPane() { collapsePane = new JXCollapsiblePane(); super.setLayout(new BorderLayout(0, 0)); super.addImpl(collapsePane, BorderLayout.CENTER, -1); updateUI(); setFocusable(true); // disable animation if specified in UIManager setAnimated(!Boolean.FALSE.equals(UIManager.get("TaskPane.animate"))); // listen for animation events and forward them to registered listeners collapsePane.addPropertyChangeListener( JXCollapsiblePane.ANIMATION_STATE_KEY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { JXTaskPane.this.firePropertyChange(evt.getPropertyName(), evt .getOldValue(), evt.getNewValue()); } }); }
collapsePane.addPropertyChangeListener("collapsed", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) {
collapsePane.addPropertyChangeListener("collapsed", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) {
collapsePane.addPropertyChangeListener("collapsed", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) {
collapsePane.addPropertyChangeListener("collapsed", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) {
!prefs.getBoolean(PREF_JOG_CONTROLS_EXPANDED, PREF_JOG_CONTROLS_EXPANDED_DEF)); collapsePane.addPropertyChangeListener("collapsed", e -> { //$NON-NLS-1$ prefs.putBoolean(PREF_JOG_CONTROLS_EXPANDED, !collapsePane.isCollapsed()); });
private void createComponents() { createSubComponents(); showFavoritesButton = new JButton(showFavoritesAction); minimizeButton = new MinimizeButton(); collapsiblePane = new JXCollapsiblePane(JXCollapsiblePane.Direction.RIGHT); showButton = new JArrowButtonPanel(getPerimeterTitle(), direction); showButton.showIcons(false); header = buildHeader(); header.setVisible(collapsiblePane.isCollapsed()); collapsiblePane.addPropertyChangeListener("collapsed", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { header.setVisible((Boolean) evt.getNewValue()); } }); panel = new MyPanel(); perimetreWidgetListener = new MyPerimetreWidgetListener(); collapseWidgetActionListener = new MyCollapseWidgetActionListener(); favorisPopupMenu = new JPopupMenu(); centerComponent = buildCenter(); }