org.kahina.core.gui
Class KahinaGUI

java.lang.Object
  extended by org.kahina.core.gui.KahinaGUI
All Implemented Interfaces:
KahinaListener
Direct Known Subclasses:
LogicProgrammingGUI, TulipaGUI

public class KahinaGUI
extends Object
implements KahinaListener


Field Summary
protected  KahinaInstance<?,?,?> kahina
           
protected  Set<KahinaView<?>> livingViews
           
protected  KahinaTextView messageConsoleView
           
protected  Map<String,KahinaView<? extends KahinaObject>> varNameToView
           
protected  List<KahinaView<?>> views
           
protected  KahinaWindowManager windowManager
           
 
Constructor Summary
KahinaGUI(Class<? extends KahinaStep> stepType, KahinaInstance<?,?,?> kahina, KahinaController control)
           
 
Method Summary
 void addControlButton(String windowTitle, String iconFilePath, String command, String toolTipText, int mnemonic)
           
 ProgressMonitorWrapper createProgressMonitorWrapper(String message, String note, int min, int max)
           
protected  KahinaWindowManager createWindowManager(KahinaGUI kahinaGUI, KahinaController control)
           
 void displayMainViews()
           
 void displayStepContent(int stepID)
           
protected  void fillFieldToView(Class<? extends KahinaStep> stepType, KahinaController control)
          overwrite this to specify a non-standard mapping from step properties to views
 KahinaInstance<?,?,?> getKahinaInstance()
           
 void integrateWindows(int integrationType, int window1ID, int window2ID, String newTitle, KahinaController control)
           
 void prepare(KahinaController control)
           
protected  void processEvent(KahinaDialogEvent e)
           
 void processEvent(KahinaEvent e)
           
 void show()
           
 int showConfirmDialog(Object message, String title, int optionType)
           
 void showMessageDialog(Object message, String title, int messageType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kahina

protected KahinaInstance<?,?,?> kahina

messageConsoleView

protected KahinaTextView messageConsoleView

views

protected List<KahinaView<?>> views

windowManager

protected KahinaWindowManager windowManager

livingViews

protected Set<KahinaView<?>> livingViews

varNameToView

protected Map<String,KahinaView<? extends KahinaObject>> varNameToView
Constructor Detail

KahinaGUI

public KahinaGUI(Class<? extends KahinaStep> stepType,
                 KahinaInstance<?,?,?> kahina,
                 KahinaController control)
Method Detail

fillFieldToView

protected void fillFieldToView(Class<? extends KahinaStep> stepType,
                               KahinaController control)
overwrite this to specify a non-standard mapping from step properties to views

Parameters:
stepType -

getKahinaInstance

public KahinaInstance<?,?,?> getKahinaInstance()

addControlButton

public void addControlButton(String windowTitle,
                             String iconFilePath,
                             String command,
                             String toolTipText,
                             int mnemonic)

integrateWindows

public void integrateWindows(int integrationType,
                             int window1ID,
                             int window2ID,
                             String newTitle,
                             KahinaController control)

prepare

public void prepare(KahinaController control)

createWindowManager

protected KahinaWindowManager createWindowManager(KahinaGUI kahinaGUI,
                                                  KahinaController control)

show

public final void show()

displayMainViews

public void displayMainViews()

displayStepContent

public void displayStepContent(int stepID)

processEvent

public void processEvent(KahinaEvent e)
Specified by:
processEvent in interface KahinaListener

processEvent

protected void processEvent(KahinaDialogEvent e)

createProgressMonitorWrapper

public ProgressMonitorWrapper createProgressMonitorWrapper(String message,
                                                           String note,
                                                           int min,
                                                           int max)

showConfirmDialog

public int showConfirmDialog(Object message,
                             String title,
                             int optionType)

showMessageDialog

public void showMessageDialog(Object message,
                              String title,
                              int messageType)