org.pentaho.di.ui.repository.repositoryexplorer.controllers
Class MainController

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.impl.AbstractXulEventHandler
          extended by org.pentaho.di.ui.repository.repositoryexplorer.controllers.MainController
All Implemented Interfaces:
org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.util.DialogController<Object>, org.pentaho.ui.xul.XulEventSource

public class MainController
extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
implements org.pentaho.ui.xul.util.DialogController<Object>

This is the main XulEventHandler for the dialog. It sets up the main bindings for the user interface and responds to some of the main UI events such as closing and accepting the dialog.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.pentaho.ui.xul.util.DialogController
org.pentaho.ui.xul.util.DialogController.DialogListener<T>
 
Field Summary
static int CANCELLED
           
static int OK
           
 
Constructor Summary
MainController()
           
 
Method Summary
 void addDialogListener(org.pentaho.ui.xul.util.DialogController.DialogListener<Object> listener)
           
 void closeDialog()
           
 RepositoryExplorerCallback getCallback()
           
 String getName()
           
 boolean getOkClicked()
           
 void hideDialog()
           
 void init()
           
 void removeDialogListener(org.pentaho.ui.xul.util.DialogController.DialogListener<Object> listener)
           
 void setCallback(RepositoryExplorerCallback callback)
           
 void setRepository(Repository rep)
           
 void showDialog()
           
 
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCELLED

public static final int CANCELLED
See Also:
Constant Field Values

OK

public static final int OK
See Also:
Constant Field Values
Constructor Detail

MainController

public MainController()
Method Detail

getOkClicked

public boolean getOkClicked()

init

public void init()

showDialog

public void showDialog()
Specified by:
showDialog in interface org.pentaho.ui.xul.util.DialogController<Object>

getCallback

public RepositoryExplorerCallback getCallback()

setCallback

public void setCallback(RepositoryExplorerCallback callback)

setRepository

public void setRepository(Repository rep)

getName

public String getName()
Specified by:
getName in interface org.pentaho.ui.xul.impl.XulEventHandler
Overrides:
getName in class org.pentaho.ui.xul.impl.AbstractXulEventHandler

closeDialog

public void closeDialog()

addDialogListener

public void addDialogListener(org.pentaho.ui.xul.util.DialogController.DialogListener<Object> listener)
Specified by:
addDialogListener in interface org.pentaho.ui.xul.util.DialogController<Object>

removeDialogListener

public void removeDialogListener(org.pentaho.ui.xul.util.DialogController.DialogListener<Object> listener)
Specified by:
removeDialogListener in interface org.pentaho.ui.xul.util.DialogController<Object>

hideDialog

public void hideDialog()
Specified by:
hideDialog in interface org.pentaho.ui.xul.util.DialogController<Object>