com.jaxfront.swing.ui.visualizers
Class UIController

java.lang.Object
  extended by com.jaxfront.swing.ui.visualizers.UIController
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener, javax.swing.event.ChangeListener

public class UIController
extends java.lang.Object
implements java.awt.event.FocusListener, javax.swing.event.ChangeListener

Central controller observes all model changes and defined rules coming from the XUI.

Version:
1.4.1

Field Summary
static UIController _singleton
           
 
Method Summary
 void addTabChangeListener(TabChangeListener newListener)
          Register a new listener for receiving Tab Changed events.
 void focusGained(java.awt.event.FocusEvent e)
          Invoked when a component gains the keyboard focus.
 void focusLost(java.awt.event.FocusEvent e)
          Invoked when a component (com.jaxfront.swing.ui.visualizers.Visualizer) looses the keyboard focus and invokes a model update.
static UIController getInstance()
          Singleton implementation.
 void removeTabChangeListener(TabChangeListener newListener)
          Removes a TabChangeListener.
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_singleton

public static UIController _singleton
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Invoked when a component gains the keyboard focus.

Specified by:
focusGained in interface java.awt.event.FocusListener
See Also:
FocusListener.focusGained(FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Invoked when a component (com.jaxfront.swing.ui.visualizers.Visualizer) looses the keyboard focus and invokes a model update.

Specified by:
focusLost in interface java.awt.event.FocusListener
See Also:
FocusListener.focusLost(FocusEvent)

getInstance

public static UIController getInstance()
Singleton implementation. Returns the single instance of UIController.

Returns:
UIController a single instance

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
See Also:
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)

addTabChangeListener

public void addTabChangeListener(TabChangeListener newListener)
Register a new listener for receiving Tab Changed events.

Parameters:
newListener - a new listener

removeTabChangeListener

public void removeTabChangeListener(TabChangeListener newListener)
Removes a TabChangeListener.

Parameters:
newListener - TabChangeListener