Package org.dyno.visual.swing.widgets

Source Code of org.dyno.visual.swing.widgets.JEditorPaneAdapter

/************************************************************************************
* Copyright (c) 2008 William Chen.                                                 *
*                                                                                  *
* All rights reserved. This program and the accompanying materials are made        *
* available under the terms of the Eclipse Public License v1.0 which accompanies   *
* this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html *
*                                                                                  *
* Use is subject to the terms of Eclipse Public License v1.0.                      *
*                                                                                  *
* Contributors:                                                                    *
*     William Chen - initial API and implementation.                               *
************************************************************************************/

package org.dyno.visual.swing.widgets;

import java.awt.Component;

import javax.swing.JEditorPane;
import javax.swing.text.JTextComponent;

@SuppressWarnings("unchecked")
public class JEditorPaneAdapter extends J2DTextComponentAdapter {
  public JEditorPaneAdapter() {
    super(null);
  }

  @Override
  protected JTextComponent createTextComponent() {
    return new JEditorPane();
  }

  @Override
  protected Component newWidget() {
    return new JEditorPane();
  }

  @Override
  public Class getWidgetClass() {
    return JEditorPane.class;
  }

}

TOP

Related Classes of org.dyno.visual.swing.widgets.JEditorPaneAdapter

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.