|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicTextUI.UpdateHandler
Handles updates from various places. If the model is changed, this class unregisters as a listener to the old model and registers with the new model. If the document model changes, the change is forwarded to the root view. If the focus accelerator changes, a new keystroke is registered to request focus.
| Field Summary | |
private Hashtable |
constraints
The "layout constraints" for the LayoutManager2 implementation. |
private boolean |
i18nView
|
| Constructor Summary | |
(package private) |
BasicTextUI.UpdateHandler()
|
| Method Summary | |
void |
addLayoutComponent(Component comp,
Object constraint)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
(package private) Shape |
calculateViewPosition(Shape alloc,
View v)
Find the Shape representing the given view. |
void |
changedUpdate(DocumentEvent e)
The change notification. |
float |
getLayoutAlignmentX(Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container target)
Returns the alignment along the y axis. |
void |
insertUpdate(DocumentEvent e)
The insert notification. |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(Container parent)
Lays out the container in the specified panel. |
Dimension |
maximumLayoutSize(Container target)
Returns the maximum size of this component. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
removeUpdate(DocumentEvent e)
The remove notification. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Hashtable constraints
private boolean i18nView
| Constructor Detail |
BasicTextUI.UpdateHandler()
| Method Detail |
public final void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic final void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenere - The change notification from the currently associated
document.DocumentListener.insertUpdate(javax.swing.event.DocumentEvent)public final void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenere - The change notification from the currently associated
document.DocumentListener.removeUpdate(javax.swing.event.DocumentEvent)public final void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenere - The change notification from the currently associated
document.DocumentListener#changeUpdate
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagername - the component namecomp - the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the component to be laid outminimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the component to be laid outpreferredLayoutSize(java.awt.Container)public void layoutContainer(Container parent)
A read-lock is acquired on the document to prevent the view tree from being modified while the layout process is active.
layoutContainer in interface LayoutManagerparent - the component which needs to be laid out
Shape calculateViewPosition(Shape alloc,
View v)
public void addLayoutComponent(Component comp,
Object constraint)
addLayoutComponent in interface LayoutManager2comp - the component to be addedconstraint - where/how the component is added to the layout.public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2Component.getMinimumSize(),
Component.getPreferredSize(),
LayoutManagerpublic float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||