org.progeeks.util
Class DefaultMultiFocusedContext
java.lang.Object
org.progeeks.util.beans.BeanChangeSupport
org.progeeks.util.DefaultViewContext
org.progeeks.util.DefaultMultiFocusedContext
- All Implemented Interfaces:
- java.io.Serializable, StandardBean, FocusedContext, MultiFocusedContext, ViewContext
public class DefaultMultiFocusedContext
- extends DefaultViewContext
- implements MultiFocusedContext
Convenient base class for multi-focused contexts. The single focus
multi-focus behavior is such that if there are multiple objects with
focus then getFocus() returns null.
- Version:
- $Revision: 1.8 $
- Author:
- Paul Speed
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
getFocus()
Returns the object that is the current focus of this
context. |
java.util.List |
getFocusedObjects()
Returns the list of objects that are the current focus of this
context. |
void |
setFocus(java.lang.Object obj)
Sets the specified object as the current focus object
for this context. |
void |
setFocusedObjects(java.util.List focusedObjects)
Sets the specified list as the current focused object list
for this context. |
Methods inherited from class org.progeeks.util.DefaultViewContext |
findContext, getBooleanProperty, getDoubleProperty, getIntProperty, getObjectProperty, getObjectProperty, getParentContext, getRootContext, getStringProperty, setBooleanProperty, setDoubleProperty, setIntProperty, setObjectProperty, setParentContext, setStringProperty |
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport |
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMultiFocusedContext
public DefaultMultiFocusedContext()
- Creates a default multi-focused context with null as a parent.
DefaultMultiFocusedContext
public DefaultMultiFocusedContext(ViewContext parent)
- Creates a default multi-focused context with the specified parent.
setFocus
public void setFocus(java.lang.Object obj)
- Sets the specified object as the current focus object
for this context.
- Specified by:
setFocus
in interface FocusedContext
getFocus
public java.lang.Object getFocus()
- Returns the object that is the current focus of this
context.
- Specified by:
getFocus
in interface FocusedContext
setFocusedObjects
public void setFocusedObjects(java.util.List focusedObjects)
- Sets the specified list as the current focused object list
for this context. Most implementations will clear and replace
the items in their own internal data structures.
- Specified by:
setFocusedObjects
in interface MultiFocusedContext
getFocusedObjects
public java.util.List getFocusedObjects()
- Returns the list of objects that are the current focus of this
context. This is almost always an ObservableList but need not
be.
- Specified by:
getFocusedObjects
in interface MultiFocusedContext
Copyright © 2002-2003 Paul Speed. All Rights Reserved.