|
SWT LPEX v3.0.5 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.custom.SashForm
com.ibm.lpex.core.LpexMultiWindow
The split-window parent of one or more LpexWindows. The windows may be stacked side by side (vertical split orientation, the borders between multiple editing views running vertically), or top to bottom (horizontal split orientation, the borders between multiple views running horizontally). The first window is the leftmost or top window.
See also the splitWindow and splitWindow.orientation editor parameters.
Field Summary | |
---|---|
protected int |
MAX_WINDOWS
Deprecated. Use getMaxWindows(). |
Fields inherited from class org.eclipse.swt.custom.SashForm |
---|
SASH_WIDTH |
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
LpexMultiWindow(Composite parent,
int style)
Constructs a new multiwindow. |
Method Summary | |
---|---|
protected void |
activeWindowChanged(LpexWindow lpexWindow)
Notification for a change in the active window. |
void |
closeWindow(LpexWindow lpexWindow)
Convenience method to close the specified window and dispose of its associated view, if any. |
LpexView |
getActiveView()
Convenience method to return the active document view. |
LpexWindow |
getFirstWindow()
Returns the first window. |
int |
getMaxWindows()
Returns the maximum number of split windows that can be created. |
LpexWindow |
getWindow()
Returns the window that has the input focus, if any, otherwise the first window. |
LpexWindow[] |
getWindows()
Returns an array of the windows currently managed by this multiwindow. |
LpexWindow |
newWindow(LpexView lpexView,
int style)
Creates a new window for the given document view. |
boolean |
setFocus()
Gives this multiwindow the keyboard input focus. |
Methods inherited from class org.eclipse.swt.custom.SashForm |
---|
computeSize, getMaximizedControl, getOrientation, getWeights, layout, setBackground, setForeground, setLayout, setMaximizedControl, setOrientation, setWeights |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
checkSubclass, getChildren, getLayout, getTabList, layout, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int MAX_WINDOWS
Constructor Detail |
public LpexMultiWindow(Composite parent, int style)
parent
- parent Compositestyle
- SWT style flags for the multiwindow CompositeMethod Detail |
public LpexWindow newWindow(LpexView lpexView, int style)
A new LpexWindow may not be created in certain circumstances.
For example, you cannot create more than a preset number
getMaxWindows()
of split windows to be managed by one multiwindow.
In such a case null
will be returned.
lpexView
- the document view to associate with the new windowstyle
- SWT style flags for the LpexWindow Composite
null
if a new LpexWindow could not be createdprotected void activeWindowChanged(LpexWindow lpexWindow)
Note: This hook may be replaced with a full-fledged listener in a future release.
lpexWindow
- the new active window, or null
if nonesetFocus()
public boolean setFocus()
public LpexWindow getFirstWindow()
null
if no windows are currently managedpublic LpexWindow getWindow()
null
if no windows are currently managedpublic LpexView getActiveView()
null
if no view is associated with any valid active windowactiveWindowChanged(com.ibm.lpex.core.LpexWindow)
public LpexWindow[] getWindows()
public int getMaxWindows()
public void closeWindow(LpexWindow lpexWindow)
lpexWindow
- the window to close and dispose
|
SWT LPEX v3.0.5 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |