/** * Constructs a new JXCollapsiblePane with a {@link JXPanel} as content pane and the specified * direction. * * @param direction * the direction to collapse the container */ public JXCollapsiblePane(Direction direction) { super.setLayout(new BorderLayout()); this.direction = direction; animator = new AnimationListener(); setAnimationParams(new AnimationParams(30, 8, 0.01f, 1.0f)); setContentPane(createContentPane()); setDirection(direction); // add an action to automatically toggle the state of the pane getActionMap().put(TOGGLE_ACTION, new ToggleAction()); }
/** * Constructs a new JXCollapsiblePane with a {@link JXPanel} as content pane and the specified * direction. * * @param direction * the direction to collapse the container */ public JXCollapsiblePane(Direction direction) { super.setLayout(new BorderLayout()); this.direction = direction; animator = new AnimationListener(); setAnimationParams(new AnimationParams(30, 8, 0.01f, 1.0f)); setContentPane(createContentPane()); setDirection(direction); // add an action to automatically toggle the state of the pane getActionMap().put(TOGGLE_ACTION, new ToggleAction()); }
/** * Constructs a new JXCollapsiblePane with a {@link JXPanel} as content pane and the specified * direction. * * @param direction * the direction to collapse the container */ public JXCollapsiblePane(Direction direction) { super.setLayout(new BorderLayout()); this.direction = direction; animator = new AnimationListener(); setAnimationParams(new AnimationParams(30, 8, 0.01f, 1.0f)); setContentPane(createContentPane()); setDirection(direction); // add an action to automatically toggle the state of the pane getActionMap().put(TOGGLE_ACTION, new ToggleAction()); }
/** * Constructs a new JXCollapsiblePane with a {@link JXPanel} as content pane and the specified * direction. * * @param direction * the direction to collapse the container */ public JXCollapsiblePane(Direction direction) { super.setLayout(new BorderLayout()); this.direction = direction; animator = new AnimationListener(); setAnimationParams(new AnimationParams(30, 8, 0.01f, 1.0f)); setContentPane(createContentPane()); setDirection(direction); // add an action to automatically toggle the state of the pane getActionMap().put(TOGGLE_ACTION, new ToggleAction()); }