org.pentaho.di.ui.spoon
Class SpoonSlave

java.lang.Object
  extended by Composite
      extended by org.pentaho.di.ui.spoon.SpoonSlave
All Implemented Interfaces:
TabItemInterface

public class SpoonSlave
extends Composite
implements TabItemInterface

SpoonSlave handles the display of the slave server information in a Spoon tab.

Since:
12 nov 2006
Author:
Matt
See Also:
org.pentaho.di.spoon.Spoon

Field Summary
static String STRING_SLAVE_LOG_TREE_NAME
           
static long UPDATE_TIME_VIEW
           
 
Constructor Summary
SpoonSlave(Composite parent, int style, Spoon spoon, SlaveServer slaveServer)
           
 
Method Summary
 boolean applyChanges()
           
 boolean canBeClosed()
          Closes the content behind the tab, de-allocates resources.
 boolean canHandleSave()
           
 ChangedWarningInterface getChangedWarning()
           
 Object getManagedObject()
           
 EngineMetaInterface getMeta()
           
 boolean hasContentChanged()
           
 void setControlStates()
           
 int showChangedWarning()
           
 void showErrors()
           
 void showLog()
          Someone clicks on a line: show the log or error message associated with that in the text-box
 String toString()
           
 void treeItemSelected(TreeItem item)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pentaho.di.ui.spoon.TabItemInterface
setFocus
 

Field Detail

UPDATE_TIME_VIEW

public static final long UPDATE_TIME_VIEW
See Also:
Constant Field Values

STRING_SLAVE_LOG_TREE_NAME

public static final String STRING_SLAVE_LOG_TREE_NAME
See Also:
Constant Field Values
Constructor Detail

SpoonSlave

public SpoonSlave(Composite parent,
                  int style,
                  Spoon spoon,
                  SlaveServer slaveServer)
Method Detail

treeItemSelected

public void treeItemSelected(TreeItem item)

canBeClosed

public boolean canBeClosed()
Description copied from interface: TabItemInterface
Closes the content behind the tab, de-allocates resources.

Specified by:
canBeClosed in interface TabItemInterface
Returns:
true if the tab was closed, false if it was prevented by the user. (are you sure dialog)

showLog

public void showLog()
Someone clicks on a line: show the log or error message associated with that in the text-box


showErrors

public void showErrors()

toString

public String toString()

getManagedObject

public Object getManagedObject()
Specified by:
getManagedObject in interface TabItemInterface

hasContentChanged

public boolean hasContentChanged()
Specified by:
hasContentChanged in interface TabItemInterface

applyChanges

public boolean applyChanges()
Specified by:
applyChanges in interface TabItemInterface

showChangedWarning

public int showChangedWarning()
Specified by:
showChangedWarning in interface TabItemInterface

getMeta

public EngineMetaInterface getMeta()
Specified by:
getMeta in interface TabItemInterface

setControlStates

public void setControlStates()
Specified by:
setControlStates in interface TabItemInterface

canHandleSave

public boolean canHandleSave()
Specified by:
canHandleSave in interface TabItemInterface

getChangedWarning

public ChangedWarningInterface getChangedWarning()
Specified by:
getChangedWarning in interface TabItemInterface