net.infonode.docking
public class View extends DockingWindow
A view is a docking window containing a component.
A view can also contain a title bar that can be shown on either side of the view component. The title bar is made visible by setting the visible property in the ViewTitleBarProperties in the ViewProperties for this view. The title bar automatically inherits the view's title and icon but it's possible to specify a specific title and icon for the title bar in the ViewTitleBarProperties in the ViewProperties for this view.
Version: $Revision: 1.66 $
See Also: ViewProperties ViewTitleBarProperties
Constructor Summary | |
---|---|
View(String title, Icon icon, Component component)
Constructor.
|
Method Summary | |
---|---|
protected DropAction | acceptInteriorDrop(Point p, DockingWindow window) |
protected PropertyMap | createPropertyObject() |
protected DropAction | doAcceptDrop(Point p, DockingWindow window) |
protected void | doRemoveWindow(DockingWindow window) |
protected void | doReplace(DockingWindow oldWindow, DockingWindow newWindow) |
DockingWindow | getChildWindow(int index) |
int | getChildWindowCount() |
Component | getComponent()
Gets the component inside the view.
|
List | getCustomTabComponents() Returns a list containing the custom window tab components. |
List | getCustomTitleBarComponents() Returns a list containing the custom view title bar components. |
Icon | getIcon() |
protected PropertyMap | getPropertyObject() |
ViewProperties | getViewProperties()
Returns the property values for this view.
|
boolean | isFocusCycleRoot() |
protected boolean | needsTitleWindow() |
void | restoreFocus()
Restores focus to the last focused child component or, if no child component has had focus,
the first focusable component inside the view.
|
protected void | rootChanged(RootWindow oldRoot, RootWindow newRoot) |
void | setComponent(Component component)
Sets the component inside the view.
|
protected void | setFocused(boolean focused) |
String | toString() |
protected void | update() |
protected void | updateButtonVisibility() |
protected void | write(ObjectOutputStream out, WriteContext context) |
protected void | write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) |
Parameters: title the title of the view icon the icon for the view component the component to place inside the view
Returns: the component inside the view
Since: IDW 1.1.0
Returns a list containing the custom window tab components. Changes to the list will be propagated to the tab.
The custom tab components will be shown after the window title when the window tab is highlighted. The components are shown in the same order as they appear in the list. The custom tab components container layout is rotated with the tab direction.
Returns: a list containing the custom tab components, list elements are of type {@link JComponent}
Since: IDW 1.3.0
Returns a list containing the custom view title bar components. Changes to the list will be propagated to the title bar.
The custom title bar components will be shown after the view title in the title bar but before the close, minimize and restore buttons. The components are shown in the same order as they appear in the list. The custom title bar components container layout is rotated with the title bar direction.
Note: The components are only shon if the title bar is visible, see {@link ViewTitleBarProperties}.
Returns: a list containing the custom title bar components, list elements are of type {@link JComponent}
Since: IDW 1.4.0
Returns: the property values for this view
Since: IDW 1.1.0
Parameters: component the component to place inside the view
Since: IDW 1.1.0