public class KahinaWindowManager extends java.lang.Object implements KahinaListener
Modifier and Type | Field and Description |
---|---|
protected KahinaInstance<?,?,?,?> |
kahina |
KahinaMainWindow |
mainWindow |
Constructor and Description |
---|
KahinaWindowManager(KahinaInstance<?,?,?,?> kahina)
Create a simple window manager..
|
Modifier and Type | Method and Description |
---|---|
protected KahinaMainWindow |
createMainWindow(KahinaWindowManager kahinaWindowManager) |
protected KahinaMainWindow |
createMainWindow(KahinaWindowManager kahinaWindowManager,
int winID) |
void |
createWindows()
Builds the windows according to the perspective.
|
void |
displayWindows() |
void |
disposeAllWindows() |
KahinaArrangement |
getArrangement() |
KahinaInstance<?,?,?,?> |
getKahina() |
KahinaPerspective |
getPerspective()
Gets the current perspective, can be manipulated and reapplied.
|
KahinaWindow |
getWindowByID(int winID) |
KahinaWindow |
integrateInDefaultWindow(KahinaView<?> view) |
KahinaWindow |
integrateInHorizontallySplitWindow(int window1ID,
int window2ID,
java.lang.String newTitle) |
KahinaWindow |
integrateInVerticallySplitWindow(int window1ID,
int window2ID,
java.lang.String newTitle) |
boolean |
isTopLevelWindow(KahinaWindow w) |
void |
processEvent(KahinaEvent e) |
void |
registerWindow(KahinaWindow window) |
void |
setAndApplyPerspective(KahinaPerspective psp)
Discards the current perspective and rebuilds the GUI according to a
newly provided one.
|
void |
setPerspective(KahinaPerspective psp) |
protected final KahinaInstance<?,?,?,?> kahina
public KahinaMainWindow mainWindow
public KahinaWindowManager(KahinaInstance<?,?,?,?> kahina)
kahina
- - the KahinaInstance bundling the other parts of the systempublic void createWindows()
public void setAndApplyPerspective(KahinaPerspective psp)
psp
- the perspective to be appliedpublic KahinaPerspective getPerspective()
public void registerWindow(KahinaWindow window)
public KahinaWindow getWindowByID(int winID)
protected KahinaMainWindow createMainWindow(KahinaWindowManager kahinaWindowManager)
protected KahinaMainWindow createMainWindow(KahinaWindowManager kahinaWindowManager, int winID)
public void disposeAllWindows()
public boolean isTopLevelWindow(KahinaWindow w)
public KahinaWindow integrateInDefaultWindow(KahinaView<?> view)
public KahinaWindow integrateInVerticallySplitWindow(int window1ID, int window2ID, java.lang.String newTitle)
public KahinaWindow integrateInHorizontallySplitWindow(int window1ID, int window2ID, java.lang.String newTitle)
public void displayWindows()
public void processEvent(KahinaEvent e)
processEvent
in interface KahinaListener
public KahinaArrangement getArrangement()
public void setPerspective(KahinaPerspective psp)
public KahinaInstance<?,?,?,?> getKahina()