Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput Class Reference

Inherits Composite.

List of all members.

Public Member Functions

 ChatInput (Composite parent, int style)
void setBackground (Color color)
void addKeyListener (KeyListener listener)
void setText (String string)
String getText ()
boolean setFocus ()
void setEnabled (boolean enabled)

Static Public Attributes

static final String HINT_TEXT = Messages.ChatInput_hint_text
static final Color HINT_COLOR
static final Color TEXT_COLOR

Protected Member Functions

void showHint ()
void hideHint ()

Protected Attributes

StyledText text
boolean isHintShown

Detailed Description

This control displays an input field for text input

Author:
bkahlert

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.ChatInput ( Composite  parent,
int  style 
)

Member Function Documentation

void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.addKeyListener ( KeyListener  listener)
String de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.getText ( )

Return entered text in the widget

Returns:
the entered text
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.hideHint ( ) [protected]
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.setBackground ( Color  color)
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.setEnabled ( boolean  enabled)
boolean de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.setFocus ( )
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.setText ( String  string)

Sets the widgets text

Parameters:
stringthe new text
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.ChatInput.showHint ( ) [protected]

Member Data Documentation

Initial value:
 Display.getDefault().getSystemColor(
        SWT.COLOR_TITLE_INACTIVE_FOREGROUND)

When no message is entered, use this color to display the hint

When no message is entered, display this hint

Initial value:
 Display.getDefault().getSystemColor(
        SWT.COLOR_WIDGET_FOREGROUND)

Color no of entered message

 All Classes Namespaces Files Functions Variables Enumerations