Package org.crsh.text

Examples of org.crsh.text.ScreenContext


    // but also because it optimises the chunks
    // which provides better perormances on the client
    final ScreenBuffer buffer = new ScreenBuffer(processContext);

    //
    final ScreenContextConsumer adapter = new ScreenContextConsumer(new ScreenContext() {
      public int getWidth() {
        return processContext.getWidth();
      }

      public int getHeight() {
View Full Code Here


    this.status = FLUSHED;
  }

  public RenderPrintWriter getWriter() {
    if (writer == null) {
      writer = new RenderPrintWriter(new ScreenContext() {
        public int getWidth() {
          return InvocationContextImpl.this.getWidth();
        }
        public int getHeight() {
          return InvocationContextImpl.this.getHeight();
View Full Code Here

        throw new UndeclaredThrowableException(cause);
      }
    }

    //
    ScreenContext screenContext = command.getScreenContext();
    ScreenContextConsumer adapter = screenContext != null ? new ScreenContextConsumer(screenContext) : null;

    //
    this.screenContext = screenContext;
    this.adapter = adapter;
View Full Code Here

  public List<String> render(final LineReader renderer, final int width) {
    ArrayList<String> result = new ArrayList<String>();
    while (renderer.hasLine()) {
      final ScreenBuffer buffer = new ScreenBuffer();
      renderer.renderLine(new RenderAppendable(new ScreenContext() {
        public int getWidth() {
          return width;
        }
        public int getHeight() {
          return 40;
View Full Code Here

TOP

Related Classes of org.crsh.text.ScreenContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.