Java Swing - O Reilly Used to update several (Web hosting control panel)
Java Swing - O Reilly Used to update several cached values based on the view’s current attributes (which it gets from getAttributes()). protected void setUnderline(boolean u) Used by setPropertiesFromAttributes() to indicate whether or not the text displayed by this view is underlined. 23.2.10 The ComponentView Class This class can be used to embed AWT Components into the view hierarchy. As we saw in a previous chapter, a single Element in a Document can be used to represent a Component. A single ComponentView object is responsible for rendering such an Element. 23.2.10.1 Properties The ComponentView class modifies the implementation of the View properties shown in Table 23.8. See the description of View properties for details on these properties. In ComponentView, the alignment property is taken from the Component’s response to getAlignmentX() and getAlignmentY() calls. Similarly, preferredSpan is determined based on the preferredSize of the Component. The implementation of setParent() actually causes the Component to be added (or removed if the parent is set to null) as a child of the view’s Container. The element property must be specified in the constructor. Table 23.8, ComponentView Properties Property Data Type get is set bound Default Value alignment (indexed)* float From Componentelement* Element From constructor parent* View null preferredSpan (indexed)* float From preferredSizeof Component See also properties from the View class (Table 23.2). 23.2.10.2 Constructor public ComponentView(Element elem) Creates a View for the given Element. It expects to get a valid Component from the given element’s attribute set. The component is initially invisible. 23.2.10.3 Methods ComponentView implements the three abstract methods defined in View, as well as setSize(), which had an empty implementation in View. public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException Returns a Rectangle with width=0 located at the given Shape’s location with the shape’s height. If the given position is not covered by this View, null is returned. The b parameter is currently ignored. public void paint(Graphics g, Shape a) - 770
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.