@Override protected void addImpl(Component comp, Object constraints, int index) { // TODO: if index is not 0, it could be a problem if (constraints == null) { constraints = AFFIRMATIVE_BUTTON; } super.addImpl(comp, constraints, index); }
@Override protected void addImpl(Component comp, Object constraints, int index) { int offset=0; super.addImpl(comp,constraints,offset); } }
@Override protected void addImpl(Component comp, Object constraints, int index) { if (comp == tabbedPane || comp == desktopPane) { super.addImpl(comp, constraints, index); } else { throw new IllegalStateException("use addFrame method to add internal frames"); } }
/** * Add page to this panel. * * @param page Page to add to this panel. */ public final void addPage( final CardPage page ) { //if ( !(page instanceof Component) ) //throw new RuntimeException( "wizard page must be a component" ); if ( page != null ) { ( (Component)page ).setVisible( false ); super.addImpl( (Component)page, String.valueOf( _pages.size() ), -1 ); _pages.add( page ); } }
@SuppressWarnings("unchecked") protected void addImpl(Component comp, Object constraints, int index) { JSelectedPanel s = new JSelectedPanel(comp); map1.put((E) comp, s); map2.put(s, (E) comp); // Utils.addAllMouseListener(s, mouseListener); super.addImpl(s, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); m_mod_stamp = System.currentTimeMillis(); updateParentModicationStamps(GridView.this.getParent(), m_mod_stamp); }
protected void addImpl( Component comp, Object constraints, int iIndex ) { if( !(comp instanceof JComponent) ) { throw new IllegalArgumentException( "Not a JComponent" ); } if( comp != _moreTab ) { ITab tab = tabFromComponent( comp ); if( tab == null ) { throw new IllegalArgumentException( "Not an ITab" ); } } super.addImpl( comp, constraints, iIndex ); }
/** * Sets the content pane of this JCollapsiblePane. Components must be added * to this content pane, not to the JCollapsiblePane. * * @param contentPanel * @throws IllegalArgumentException * if contentPanel is null */ public void setContentPane(Container contentPanel) { if (contentPanel == null) { throw new IllegalArgumentException("Content pane can't be null"); } if (wrapper != null) { super.remove(wrapper); } wrapper = new WrapperContainer(contentPanel); super.addImpl(wrapper, BorderLayout.CENTER, -1); }
protected void addImpl( Component comp, Object constraints, int iIndex ) { if( !(comp instanceof JComponent) ) { throw new IllegalArgumentException( "Not a JComponent" ); } if( comp != _moreTab ) { ITab tab = tabFromComponent( comp ); if( tab == null ) { throw new IllegalArgumentException( "Not an ITab" ); } } super.addImpl( comp, constraints, iIndex ); }
@Override protected void addImpl( final Component component, final Object constraints, final int index ) { if ( component instanceof AbstractButton ) { final AbstractButton button = (AbstractButton)component; button.setSelected( true ); _buttonGroup.add( button ); if ( _itemListener != null ) { button.addItemListener( _itemListener ); } } super.addImpl( component, ( constraints == null ) ? _constraints : constraints, index ); }
/** * 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.setOpaque(false); super.setLayout(new BorderLayout(0, 0)); super.addImpl(collapsePane, BorderLayout.CENTER, -1);
collapsePane.setOpaque(false); super.setLayout(new BorderLayout(0, 0)); super.addImpl(collapsePane, BorderLayout.CENTER, -1);
collapsePane.setOpaque(false); super.setLayout(new BorderLayout(0, 0)); super.addImpl(collapsePane, BorderLayout.CENTER, -1);
collapsePane.setOpaque(false); super.setLayout(new BorderLayout(0, 0)); super.addImpl(collapsePane, BorderLayout.CENTER, -1);
super.addImpl(comp, constraints, idx); } else if (comp instanceof JScrollPane) { JSplitPane split = findSplitPane(); setTabbedContainerInnerComponent(tc, (JComponent) comp); } else { super.addImpl(comp, constraints, idx); setTabbedContainerInnerComponent(tc, (JComponent) comp); } else { super.addImpl(comp, constraints, idx); super.addImpl(comp, constraints, idx);