Forge - Aesh Addon Impl 2.0.0.Alpha3

org.jboss.forge.aesh
Class ShellContext

java.lang.Object
  extended by org.jboss.forge.ui.context.AbstractUIContext
      extended by org.jboss.forge.aesh.ShellContext
All Implemented Interfaces:
UIBuilder, UIContext, UIContextProvider, UIValidationContext

public class ShellContext
extends AbstractUIContext
implements UIValidationContext, UIContext, UIBuilder

Author:
Ståle W. Pedersen

Constructor Summary
ShellContext(ForgeShell aeshell)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellContext

public ShellContext(ForgeShell aeshell)
Method Detail

isStandalone

public boolean isStandalone()

setStandalone

public void setStandalone(boolean standalone)

getShell

public ForgeShell getShell()

setParser

public void setParser(org.jboss.aesh.cl.CommandLineParser parser)

getParser

public org.jboss.aesh.cl.CommandLineParser getParser()

setConsoleOutput

public void setConsoleOutput(org.jboss.aesh.console.ConsoleOutput output)

getConsoleOutput

public org.jboss.aesh.console.ConsoleOutput getConsoleOutput()

add

public UIBuilder add(InputComponent<?,?> input)
Specified by:
add in interface UIBuilder

getInputs

public List<InputComponent<?,Object>> getInputs()

findInput

public InputComponent<?,?> findInput(String name)

addValidationError

public void addValidationError(InputComponent<?,?> input,
                               String errorMessage)
Specified by:
addValidationError in interface UIValidationContext

getUIContext

public UIContext getUIContext()
Specified by:
getUIContext in interface UIContextProvider

getCurrentSelection

public <T> UISelection<T> getCurrentSelection()

getInitialSelection

public UISelection<Object> getInitialSelection()
Specified by:
getInitialSelection in interface UIContext
Overrides:
getInitialSelection in class AbstractUIContext

getAttribute

public Object getAttribute(Object key)
Specified by:
getAttribute in interface UIContext
Overrides:
getAttribute in class AbstractUIContext

removeAttribute

public Object removeAttribute(Object key)
Specified by:
removeAttribute in interface UIContext
Overrides:
removeAttribute in class AbstractUIContext

setAttribute

public void setAttribute(Object key,
                         Object value)
Specified by:
setAttribute in interface UIContext
Overrides:
setAttribute in class AbstractUIContext

Forge - Aesh Addon Impl 2.0.0.Alpha3

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