|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSashForm
com.ibm.lpex.core.LpexMultiWindow
public class 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.
Constructor Summary | |
---|---|
LpexMultiWindow(Composite parent,
int style)
Constructs a new multiwindow. |
Method Summary | |
---|---|
void |
addActiveWindowListener(LpexActiveWindowListener activeWindowListener)
Adds an active-window listener to this multi-window. |
void |
closeWindow(LpexWindow lpexWindow)
Convenience method to close the specified window and dispose of its associates view, if any. |
LpexWindow |
createLpexWindow(int style)
Creates a new LpexWindow. |
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 |
getWindow(int x,
int y)
Returns the window which contains the point specified, if any. |
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. |
void |
removeActiveWindowListener(LpexActiveWindowListener activeWindowListener)
Removes an active-window listener from this multi-window. |
boolean |
setFocus()
Gives this multiwindow the keyboard input focus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 createdpublic LpexWindow createLpexWindow(int style)
Called by newWindow()
, which will also associate this window
with the specified document view.
public void addActiveWindowListener(LpexActiveWindowListener activeWindowListener)
removeActiveWindowListener(com.ibm.lpex.core.LpexActiveWindowListener)
,
setFocus()
public void removeActiveWindowListener(LpexActiveWindowListener activeWindowListener)
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 windowpublic LpexWindow getWindow(int x, int y)
x
- x coordinate of a point inside this multiwindowy
- y coordinate of a point inside this multiwindow
null
if outside point or no windows are currently managedpublic LpexWindow[] getWindows()
public int getMaxWindows()
public void closeWindow(LpexWindow lpexWindow)
lpexWindow
- the window to close and dispose
|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |