Save This Page
Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
class: HiddenTagView [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.ComponentView
         javax.swing.text.html.EditableView
            javax.swing.text.html.HiddenTagView

All Implemented Interfaces:
    DocumentListener, SwingConstants

Direct Known Subclasses:
    CommentView

HiddenTagView subclasses EditableView to contain a JTextField showing the element name. When the textfield is edited the element name is reset. As this inherits from EditableView if the JTextComponent is not editable, the textfield will not be visible.
Nested Class Summary:
static class  HiddenTagView.StartTagBorder   
static class  HiddenTagView.EndTagBorder   
Field Summary
 float yAlign    Alignment along the y axis, based on the font of the textfield. 
 boolean isSettingAttributes    Set to true when setting attributes. 
static final  int circleR     
static final  int circleD     
static final  int tagSize     
static final  int padding     
static final  Color UnknownTagBorderColor     
static final  Border StartBorder     
static final  Border EndBorder     
Fields inherited from javax.swing.text.View:
BadBreakWeight,  GoodBreakWeight,  ExcellentBreakWeight,  ForcedBreakWeight,  X_AXIS,  Y_AXIS,  sharedBiasReturn
Constructor:
 HiddenTagView(Element e) 
Method from javax.swing.text.html.HiddenTagView Summary:
_setTextFromModel,   _updateModelFromText,   changedUpdate,   changedUpdate,   createComponent,   getAlignment,   getMaximumSpan,   getMinimumSpan,   getPreferredSpan,   getRepresentedText,   getTextComponent,   insertUpdate,   isEndTag,   removeUpdate,   resetBorder,   setTextFromModel,   updateModelFromText,   updateYAlign
Methods from javax.swing.text.html.EditableView:
getMaximumSpan,   getMinimumSpan,   getPreferredSpan,   isVisible,   paint,   setParent
Methods from javax.swing.text.ComponentView:
createComponent,   getAlignment,   getComponent,   getMaximumSpan,   getMinimumSpan,   getPreferredSpan,   modelToView,   paint,   setComponentParent,   setParent,   viewToModel
Methods from javax.swing.text.View:
append,   breakView,   changedUpdate,   createFragment,   forwardUpdate,   forwardUpdateToView,   getAlignment,   getAttributes,   getBreakWeight,   getChildAllocation,   getContainer,   getDocument,   getElement,   getEndOffset,   getGraphics,   getMaximumSpan,   getMinimumSpan,   getNextVisualPositionFrom,   getParent,   getPreferredSpan,   getResizeWeight,   getStartOffset,   getToolTipText,   getView,   getViewCount,   getViewFactory,   getViewIndex,   getViewIndex,   insert,   insertUpdate,   isVisible,   modelToView,   modelToView,   modelToView,   paint,   preferenceChanged,   remove,   removeAll,   removeUpdate,   replace,   setParent,   setSize,   updateChildren,   updateLayout,   viewToModel,   viewToModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.HiddenTagView Detail:
  void _setTextFromModel() 
    This resets the text on the text component we created to match that of the AttributeSet for the Element we represent.
  void _updateModelFromText() 
    This copies the text from the text component we've created to the Element's AttributeSet we represent.
 public  void changedUpdate(DocumentEvent e) 
 public  void changedUpdate(DocumentEvent e,
    Shape a,
    ViewFactory f) 
 protected Component createComponent() 
 public float getAlignment(int axis) 
 public float getMaximumSpan(int axis) 
 public float getMinimumSpan(int axis) 
 public float getPreferredSpan(int axis) 
 String getRepresentedText() 
 JTextComponent getTextComponent() 
 public  void insertUpdate(DocumentEvent e) 
 boolean isEndTag() 
 public  void removeUpdate(DocumentEvent e) 
  void resetBorder() 
  void setTextFromModel() 
    This resets the text on the text component we created to match that of the AttributeSet for the Element we represent.

    If this is invoked on the event dispatching thread, this directly invokes _setTextFromModel, otherwise SwingUtilities.invokeLater is used to schedule execution of _setTextFromModel.

  void updateModelFromText() 
    This copies the text from the text component we've created to the Element's AttributeSet we represent.

    If this is invoked on the event dispatching thread, this directly invokes _updateModelFromText, otherwise SwingUtilities.invokeLater is used to schedule execution of _updateModelFromText.

  void updateYAlign(Font font)