|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Pager
public class Pager
Class implementing a pager.
| Constructor Summary | |
|---|---|
Pager(BasicTerminalIO io)
Constructor method |
|
Pager(BasicTerminalIO io,
java.lang.String prompt,
char stopKey)
Constructor method for a pager with a prompt set and a default stop key. |
|
| Method Summary | |
|---|---|
void |
page(java.io.InputStream in)
Method that pages text read from an InputStream. |
void |
page(java.lang.String str)
Method that pages the String to the client terminal, being aware of its geometry, and its geometry changes. |
void |
setPrompt(java.lang.String prompt)
Mutator method for the pagers prompt. |
void |
setShowPosition(boolean b)
Method to make the pager add pager postion to the prompt. |
void |
setStopKey(char key)
Mutator method for the pagers stop key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pager(BasicTerminalIO io)
public Pager(BasicTerminalIO io,
java.lang.String prompt,
char stopKey)
prompt - String that represents the paging prompt.stopKey - String that represents the stop key.| Method Detail |
|---|
public void setStopKey(char key)
key - char that represents the new stop key.public void setPrompt(java.lang.String prompt)
prompt - String that represents the new promptkey.public void setShowPosition(boolean b)
public void page(java.lang.String str)
throws java.io.IOException
str - String to be paged.
java.io.IOException
public void page(java.io.InputStream in)
throws java.io.IOException
in - InputStream representing a source for paging.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||