Package org.dyno.visual.swing.plugin.spi

Source Code of org.dyno.visual.swing.plugin.spi.RootPaneContainerAdapter

package org.dyno.visual.swing.plugin.spi;

import java.awt.BorderLayout;
import java.awt.Component;

import javax.swing.RootPaneContainer;


public abstract class RootPaneContainerAdapter extends CompositeAdapter {

  public RootPaneContainerAdapter(String name) {
    super(name);
  }
  @Override
  public Component getContentArea(){
    RootPaneContainer rootPaneContainer = (RootPaneContainer) getWidget();
    return rootPaneContainer.getRootPane();
  }

  public abstract WidgetAdapter getContentAdapter();
 
  public Component getContentPane(){
    return ((RootPaneContainer)getWidget()).getContentPane();
  }

  @Override
  public Class<?> getDefaultLayout() {
    return BorderLayout.class;
 
}
TOP

Related Classes of org.dyno.visual.swing.plugin.spi.RootPaneContainerAdapter

TOP
Copyright © 2018 www.massapi.com. 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.