|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.infonode.gui.panel.BaseContainer
net.infonode.gui.panel.BasePanel
net.infonode.docking.DockingWindow
net.infonode.docking.View
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.
ViewProperties
,
ViewTitleBarProperties
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
View(String title,
Icon icon,
Component component)
Constructor. |
Method Summary | |
DockingWindow |
getChildWindow(int index)
Returns the child window with index index. |
int |
getChildWindowCount()
Returns the number of child windows. |
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()
Returns the icon for this window. |
ViewProperties |
getViewProperties()
Returns the property values for this view. |
boolean |
isFocusCycleRoot()
|
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. |
void |
setComponent(Component component)
Sets the component inside the view. |
String |
toString()
|
Methods inherited from class net.infonode.gui.panel.BaseContainer |
setBackground, setFont, setForeground, setOpaque, setUI |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, updateUI |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public View(String title, Icon icon, Component component)
title
- the title of the viewicon
- the icon for the viewcomponent
- the component to place inside the viewMethod Detail |
public List getCustomTabComponents()
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.
JComponent
public List getCustomTitleBarComponents()
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 ViewTitleBarProperties
.
JComponent
public Component getComponent()
public void setComponent(Component component)
component
- the component to place inside the viewpublic ViewProperties getViewProperties()
public DockingWindow getChildWindow(int index)
DockingWindow
getChildWindow
in class DockingWindow
index
- the child window index
public int getChildWindowCount()
DockingWindow
getChildWindowCount
in class DockingWindow
public boolean isFocusCycleRoot()
public void restoreFocus()
restoreFocus
in class DockingWindow
public Icon getIcon()
DockingWindow
getIcon
in class DockingWindow
public String toString()
toString
in class DockingWindow
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |