javax.swing.text
Interface ViewFactory

All Known Implementing Classes:
BasicEditorPaneUI sample code for javax.swing.plaf.basic.BasicEditorPaneUI definition code for javax.swing.plaf.basic.BasicEditorPaneUI , BasicFormattedTextFieldUI sample code for javax.swing.plaf.basic.BasicFormattedTextFieldUI definition code for javax.swing.plaf.basic.BasicFormattedTextFieldUI , BasicPasswordFieldUI sample code for javax.swing.plaf.basic.BasicPasswordFieldUI definition code for javax.swing.plaf.basic.BasicPasswordFieldUI , BasicTextAreaUI sample code for javax.swing.plaf.basic.BasicTextAreaUI definition code for javax.swing.plaf.basic.BasicTextAreaUI , BasicTextFieldUI sample code for javax.swing.plaf.basic.BasicTextFieldUI definition code for javax.swing.plaf.basic.BasicTextFieldUI , BasicTextPaneUI sample code for javax.swing.plaf.basic.BasicTextPaneUI definition code for javax.swing.plaf.basic.BasicTextPaneUI , BasicTextUI sample code for javax.swing.plaf.basic.BasicTextUI definition code for javax.swing.plaf.basic.BasicTextUI , DefaultTextUI sample code for javax.swing.text.DefaultTextUI definition code for javax.swing.text.DefaultTextUI , HTMLEditorKit.HTMLFactory sample code for javax.swing.text.html.HTMLEditorKit.HTMLFactory definition code for javax.swing.text.html.HTMLEditorKit.HTMLFactory , MetalTextFieldUI sample code for javax.swing.plaf.metal.MetalTextFieldUI definition code for javax.swing.plaf.metal.MetalTextFieldUI

public interface ViewFactory

A factory to create a view of some portion of document subject. This is intended to enable customization of how views get mapped over a document model.


Method Summary
 View sample code for javax.swing.text.View definition code for javax.swing.text.View create sample code for javax.swing.text.ViewFactory.create(javax.swing.text.Element) definition code for javax.swing.text.ViewFactory.create(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Creates a view from the given structural element of a document.
 

Method Detail

create sample code for javax.swing.text.ViewFactory.create(javax.swing.text.Element) definition code for javax.swing.text.ViewFactory.create(javax.swing.text.Element)

View sample code for javax.swing.text.View definition code for javax.swing.text.View  create(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
Creates a view from the given structural element of a document.

Parameters:
elem - the piece of the document to build a view of
Returns:
the view
See Also:
View sample code for javax.swing.text.View definition code for javax.swing.text.View