public class UIContextImpl extends AbstractUIContext
Constructor and Description |
---|
UIContextImpl(boolean gui,
UISelection<?> selection) |
UIContextImpl(UIProvider provider,
Iterable<UIContextListener> listeners,
UISelection<Resource<?>> initialSelection) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T> UISelection<T> |
getInitialSelection()
Get the user's
UISelection at the time this command was initialized/selected. |
UIProvider |
getProvider()
Returns the
UIProvider that created this UIContext object. |
void |
init() |
<T> void |
setInitialSelection(T... selection) |
addCommandExecutionListener, clearListeners, getAttributeMap, getListeners, getSelection, setSelection
public UIContextImpl(boolean gui, UISelection<?> selection)
public UIContextImpl(UIProvider provider, Iterable<UIContextListener> listeners, UISelection<Resource<?>> initialSelection)
public <T> void setInitialSelection(T... selection)
public <T> UISelection<T> getInitialSelection()
UIContext
UISelection
at the time this command was initialized/selected. (Never null
.)public void init()
public void close()
close
in interface AutoCloseable
close
in class AbstractUIContext
public UIProvider getProvider()
UIContext
getProvider
in interface UIContext
getProvider
in class AbstractUIContext
Copyright © 2014 JBoss by Red Hat. All rights reserved.