Forge - UI API 2.0.0.Alpha3

org.jboss.forge.ui.context
Class AbstractUIContext

java.lang.Object
  extended by org.jboss.forge.ui.context.AbstractUIContext
All Implemented Interfaces:
UIContext

public class AbstractUIContext
extends Object
implements UIContext

A default implementation of UIContext.

Author:
Lincoln Baxter, III

Constructor Summary
AbstractUIContext()
           
 
Method Summary
 Object getAttribute(Object key)
          Get an Object from the UIContext attribute map.
<T> UISelection<T>
getInitialSelection()
          Get the user's initial selection.
 Object removeAttribute(Object key)
          Remove an Object from the UIContext attribute map.
 void setAttribute(Object key, Object value)
          Set an Object key in the UIContext attribute map to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUIContext

public AbstractUIContext()
Method Detail

getInitialSelection

public <T> UISelection<T> getInitialSelection()
Description copied from interface: UIContext
Get the user's initial selection.

Specified by:
getInitialSelection in interface UIContext

getAttribute

public Object getAttribute(Object key)
Description copied from interface: UIContext
Get an Object from the UIContext attribute map.

Specified by:
getAttribute in interface UIContext
Returns:
null if no value was set.

removeAttribute

public Object removeAttribute(Object key)
Description copied from interface: UIContext
Remove an Object from the UIContext attribute map.

Specified by:
removeAttribute in interface UIContext
Returns:
null if no value was set.

setAttribute

public void setAttribute(Object key,
                         Object value)
Description copied from interface: UIContext
Set an Object key in the UIContext attribute map to the given value.

Specified by:
setAttribute in interface UIContext

Forge - UI API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.