allowsAutoFocus() When a layout part closes, focus will return to a previously active part.
This method determines whether this part should be considered for activation
when another part closes.
deferUpdates(boolean shouldDefer) deferUpdates(true) disables widget updates until a corresponding call to
deferUpdates(false).
public void
describeLayout(StringBuffer buf) Writes a description of the layout to the given string buffer.
This is used for drag-drop test suites to determine if two layouts are the
same.
When a layout part closes, focus will return to a previously active part.
This method determines whether this part should be considered for activation
when another part closes. If a group of parts are all closing at the same time,
they will all return false from this method while closing to ensure that the
parent does not activate a part that is in the process of closing. Parts will
also return false from this method if they are minimized, closed fast views,
obscured by zoom, etc.
true iff the parts in this container may be given focus when the activepart is closed
final public void deferUpdates(boolean shouldDefer)(Code)
deferUpdates(true) disables widget updates until a corresponding call to
deferUpdates(false). Exactly what gets deferred is the decision
of each LayoutPart, however the part may only defer operations in a manner
that does not affect the final result.
That is, the state of the receiver after the final call to deferUpdates(false)
must be exactly the same as it would have been if nothing had been deferred.
Parameters: shouldDefer - true iff events should be deferred
Writes a description of the layout to the given string buffer.
This is used for drag-drop test suites to determine if two layouts are the
same. Like a hash code, the description should compare as equal iff the
layouts are the same. However, it should be user-readable in order to
help debug failed tests. Although these are english readable strings,
they do not need to be translated.
Parameters: buf -
In general, this is non-null if the object has been added to a container and the
container's widgetry exists. The exception to this rule is PartPlaceholders
created when restoring a ViewStack using restoreState, which point to the
ViewStack even if its widgetry doesn't exist yet. Returns null in the remaining
cases.
TODO: change the semantics of this method to always point to the parent container,
regardless of whether its widgetry exists. Locate and refactor code that is currently
depending on the special cases.
Returns true if this part was set visible. This returns whatever was last passed into
setVisible, but does not necessarily indicate that the part can be seen (ie: one of its
ancestors may be invisible)
Immediately processes all UI events which were deferred due to a call to
deferUpdates(true). This is called when the last call is made to
deferUpdates(false). Subclasses should overload this method if they
defer some or all UI processing during deferUpdates.
Subclasses can call this method to determine whether UI updates should
be deferred. Returns true iff there have been any calls to deferUpdates(true)
without a corresponding call to deferUpdates(false). Any operation which is
deferred based on the result of this method should be performed later within
handleDeferredEvents().
true iff updates should be deferred.
This is called when deferUpdates(true) causes UI events for this
part to be deferred. Subclasses can overload to initialize any data
structures that they will use to collect deferred events.