public class ShellContext extends AbstractUIContext implements UIValidationContext, UIContext, UIBuilder
| Constructor and Description |
|---|
ShellContext(ForgeShell aeshell) |
| Modifier and Type | Method and Description |
|---|---|
UIBuilder |
add(InputComponent<?,?> input) |
void |
addValidationError(InputComponent<?,?> input,
String errorMessage) |
InputComponent<?,?> |
findInput(String name) |
Object |
getAttribute(Object key) |
org.jboss.aesh.console.ConsoleOutput |
getConsoleOutput() |
<T> UISelection<T> |
getCurrentSelection() |
UISelection<Object> |
getInitialSelection() |
List<InputComponent<?,Object>> |
getInputs() |
org.jboss.aesh.cl.CommandLineParser |
getParser() |
ForgeShell |
getShell() |
UIContext |
getUIContext() |
boolean |
isStandalone() |
Object |
removeAttribute(Object key) |
void |
setAttribute(Object key,
Object value) |
void |
setConsoleOutput(org.jboss.aesh.console.ConsoleOutput output) |
void |
setParser(org.jboss.aesh.cl.CommandLineParser parser) |
void |
setStandalone(boolean standalone) |
getSelection, setSelectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelection, setSelectionpublic ShellContext(ForgeShell aeshell)
public boolean isStandalone()
public void setStandalone(boolean standalone)
public ForgeShell getShell()
public void setParser(org.jboss.aesh.cl.CommandLineParser parser)
public org.jboss.aesh.cl.CommandLineParser getParser()
public void setConsoleOutput(org.jboss.aesh.console.ConsoleOutput output)
public org.jboss.aesh.console.ConsoleOutput getConsoleOutput()
public UIBuilder add(InputComponent<?,?> input)
public List<InputComponent<?,Object>> getInputs()
public InputComponent<?,?> findInput(String name)
public void addValidationError(InputComponent<?,?> input, String errorMessage)
addValidationError in interface UIValidationContextpublic UIContext getUIContext()
getUIContext in interface UIContextProviderpublic <T> UISelection<T> getCurrentSelection()
public UISelection<Object> getInitialSelection()
getInitialSelection in interface UIContextpublic Object getAttribute(Object key)
getAttribute in interface UIContextgetAttribute in class AbstractUIContextpublic Object removeAttribute(Object key)
removeAttribute in interface UIContextremoveAttribute in class AbstractUIContextpublic void setAttribute(Object key, Object value)
setAttribute in interface UIContextsetAttribute in class AbstractUIContextCopyright © 2013 JBoss by Red Hat. All Rights Reserved.