Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: ide/VerilogTextUI.java


1   /* **********************************
2    File:VerilogTextUI.java
3    Author: Alec(alecu@kermit.cs.pub.ro)
4    Creted on Sun Jul  4 04:15:31 EDT 1999
5    Comments:  Part of the vIDE Project
6               Copyright 1999 the vIDE Team.
7   **********************************/
8   
9   package ide;
10  
11  import javax.swing.plaf.basic.*;
12  import javax.swing.*;
13  import javax.swing.text.*;
14  
15  /**
16   * A simple UI whose sole purpose is to fetch the right View as
17   * a ViewFactory implemetation
18   */
19  
20  class VerilogTextUI extends BasicTextAreaUI{
21    
22    public View create(Element elem) {
23      VerilogPlainView view = new VerilogPlainView(elem, (VerilogTextArea) getComponent());
24      return view;
25      /* //Sun's implementation :
26      JTextComponent c = getComponent();
27      
28      if (c instanceof JTextArea) {
29        JTextArea area = (JTextArea) c;
30        View v;
31        if (area.getLineWrap()) {
32          v = new WrappedPlainView(elem, area.getWrapStyleWord());
33        } else {
34          v = new PlainView(elem);
35        }
36        return v;
37      }
38      return null;
39      */
40    }             
41  }
42  
43  
44  
45