javax.swing.JPanel.addImpl()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(198)

本文整理了Java中javax.swing.JPanel.addImpl()方法的一些代码示例,展示了JPanel.addImpl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.addImpl()方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:addImpl

JPanel.addImpl介绍

暂无

代码示例

代码示例来源:origin: com.jidesoft/jide-oss

@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);
}

代码示例来源:origin: org.jclarion/clarion-runtime

@Override
  protected void addImpl(Component comp, Object constraints, int index) 
  {
    int offset=0;
    super.addImpl(comp,constraints,offset);
  }
}

代码示例来源:origin: bcdev/beam

@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");
  }
}

代码示例来源:origin: com.numdata/numdata-swing

/**
 * 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 );
  }
}

代码示例来源:origin: com.synaptix/SynaptixSwing

@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);
}

代码示例来源:origin: net.java.abeille/abeille

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);
}

代码示例来源:origin: org.gosu-lang.gosu/gosu-lab

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 );
}

代码示例来源:origin: com.l2fprod.common/l2fprod-common-shared

/**
 * 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);
}

代码示例来源:origin: org.gosu-lang.gosu/gosu-editor

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 );
}

代码示例来源:origin: com.numdata/numdata-swing

@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 );
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * 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());
   }
  });
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

collapsePane.setOpaque(false);
super.setLayout(new BorderLayout(0, 0));
super.addImpl(collapsePane, BorderLayout.CENTER, -1);

代码示例来源:origin: org.swinglabs.swingx/swingx-core

collapsePane.setOpaque(false);
super.setLayout(new BorderLayout(0, 0));
super.addImpl(collapsePane, BorderLayout.CENTER, -1);

代码示例来源:origin: org.swinglabs.swingx/swingx-all

collapsePane.setOpaque(false);
super.setLayout(new BorderLayout(0, 0));
super.addImpl(collapsePane, BorderLayout.CENTER, -1);

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

collapsePane.setOpaque(false);
super.setLayout(new BorderLayout(0, 0));
super.addImpl(collapsePane, BorderLayout.CENTER, -1);

代码示例来源:origin: org.netbeans.api/org-openide-explorer

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);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

super.addImpl (comp, constraints, idx);
    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);

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

super.addImpl (comp, constraints, idx);
    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);

相关文章

JPanel类方法