Search in sources :

Example 6 with TextSpan

use of org.apache.pivot.wtk.text.TextSpan in project pivot by apache.

the class TextPaneSkinSpanView method attach.

@Override
protected void attach() {
    super.attach();
    TextSpan span = (TextSpan) getNode();
    // that child is a TextNode
    if (span.getLength() > 1) {
        throw new IllegalStateException();
    }
}
Also used : TextSpan(org.apache.pivot.wtk.text.TextSpan)

Aggregations

TextSpan (org.apache.pivot.wtk.text.TextSpan)6 TextNode (org.apache.pivot.wtk.text.TextNode)4 Element (org.apache.pivot.wtk.text.Element)3 Node (org.apache.pivot.wtk.text.Node)3 Color (java.awt.Color)1 Font (java.awt.Font)1 BufferedReader (java.io.BufferedReader)1 File (java.io.File)1 FileReader (java.io.FileReader)1 FileWriter (java.io.FileWriter)1 IOException (java.io.IOException)1 BXMLSerializer (org.apache.pivot.beans.BXMLSerializer)1 ArrayList (org.apache.pivot.collections.ArrayList)1 ApplicationContext (org.apache.pivot.wtk.ApplicationContext)1 Button (org.apache.pivot.wtk.Button)1 ButtonPressListener (org.apache.pivot.wtk.ButtonPressListener)1 ColorChooserButton (org.apache.pivot.wtk.ColorChooserButton)1 ColorChooserButtonSelectionListener (org.apache.pivot.wtk.ColorChooserButtonSelectionListener)1 DesktopApplicationContext (org.apache.pivot.wtk.DesktopApplicationContext)1 FileBrowserSheet (org.apache.pivot.wtk.FileBrowserSheet)1