|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ericsson.tic.vi.ConsolePanel
public class ConsolePanel
This console panel can be used both for feedback and for issuing commands directly thru the command line interface. This functionality is supplied "as is".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private JScrollPane |
scrollPane
A scrollpane. |
private Style |
style
Used for font styles. |
JTextField |
textField
The textfield to which it is possible to write messages. |
private JTextPane |
textPane
A text pane. |
int |
wid
The window id this console belongs to. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ConsolePanel(int wid)
Creates a Console. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Called when the user enters a command and hits enter. |
void |
chat(String message)
Print in the chat channel. |
void |
d(String message)
Print in the debug channel. |
void |
dbrec(String message)
Print in the dbrec channel. |
void |
def(String message)
Print in the default channel. |
void |
help(String message)
Print help text |
void |
helpTitle(String message)
Print help Title |
private void |
println(String message,
boolean italic,
boolean bold,
Color foreground,
Color background)
Print a message on the textfield. |
void |
udpsent(String message)
Print in the dbrec channel. |
void |
user(String message)
Print in the user channel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private JScrollPane scrollPane
private JTextPane textPane
private Style style
public JTextField textField
public int wid
| Constructor Detail |
|---|
public ConsolePanel(int wid)
wid - The window id this console belongs to.| Method Detail |
|---|
private void println(String message,
boolean italic,
boolean bold,
Color foreground,
Color background)
message - The message to be written to the console.italic - If true the outputt will be with italic text.bold - If true the message will be outputted with bold text.foreground - Color of the text itself.background - Color of the background.public void dbrec(String message)
dbsent, dbrec database queries and responses
message - The message to be written to the console.public void udpsent(String message)
udpsent, udprec mesages sent and recieved over udpsockets
message - The message to be written to the console.public void d(String message)
d debug (channel used for development)
message - The message to be written to the console.public void chat(String message)
chat chat messages from other ynodes :)
message - The message to be written to the console.public void user(String message)
user accepted user input from the command line
message - The message to be written to the console.public void def(String message)
def default or generic output, everything else.
message - The message to be written to the console.public void helpTitle(String message)
message - The message to be written to the console.public void help(String message)
message - The message to be written to the console.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The ActionEvent which triggered this event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||