org.oddjob.monitor.model
Class DetailModel

java.lang.Object
  extended by org.oddjob.monitor.model.DetailModel
All Implemented Interfaces:
PropertyChangeNotifier

public class DetailModel
extends Object
implements PropertyChangeNotifier

Model for controlling the detail views.

Author:
rob

Field Summary
static int CONSOLE_TAB
           
static int LOG_TAB
           
static int PROPERTIES_TAB
           
static String SELECTED_CONTEXT_PROPERTY
           
static int STATE_TAB
           
static String TAB_SELECTED_PROPERTY
           
 
Constructor Summary
DetailModel()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add a Listener.
 LogModel getConsoleModel()
          Get the model for the Console panel.
 LogModel getLogModel()
          Get the model for the Log panel.
 PropertyModel getPropertyModel()
          Get the model for the Property panel.
 Object getSelectedJob()
          Get the selected job.
 Observable getStateModel()
          Get the state model.
 int getTabSelected()
          Get the selected detail tab.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Remove a Listener.
 void setSelectedContext(ExplorerContext newContext)
           
 void setTabSelected(int tabSelected)
          Set currently selected tab.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTED_CONTEXT_PROPERTY

public static final String SELECTED_CONTEXT_PROPERTY
See Also:
Constant Field Values

TAB_SELECTED_PROPERTY

public static final String TAB_SELECTED_PROPERTY
See Also:
Constant Field Values

STATE_TAB

public static final int STATE_TAB
See Also:
Constant Field Values

CONSOLE_TAB

public static final int CONSOLE_TAB
See Also:
Constant Field Values

LOG_TAB

public static final int LOG_TAB
See Also:
Constant Field Values

PROPERTIES_TAB

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

DetailModel

public DetailModel()
Method Detail

getConsoleModel

public LogModel getConsoleModel()
Get the model for the Console panel.

Returns:
The LogModel for the console.

getLogModel

public LogModel getLogModel()
Get the model for the Log panel.

Returns:
The LogModel for the log;

getPropertyModel

public PropertyModel getPropertyModel()
Get the model for the Property panel.

Returns:
The PropertyModel.

setTabSelected

public void setTabSelected(int tabSelected)
Set currently selected tab.

Parameters:
tabSelected - The tab number.

getTabSelected

public int getTabSelected()
Get the selected detail tab.

Returns:
The selected tab.

setSelectedContext

public void setSelectedContext(ExplorerContext newContext)

getSelectedJob

public Object getSelectedJob()
Get the selected job.

Returns:
The selected job or null if none is.

getStateModel

public Observable getStateModel()
Get the state model.

Returns:
The StateModel.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: PropertyChangeNotifier
Add a Listener. No validation is done for if the property name is not one for which the bean provides notifications.

Specified by:
addPropertyChangeListener in interface PropertyChangeNotifier
Parameters:
listener - The listener.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: PropertyChangeNotifier
Remove a Listener.

Specified by:
removePropertyChangeListener in interface PropertyChangeNotifier
Parameters:
listener - The listener.