public class CollaborationMessageInput extends Composite<MessageInput> implements HasSize, HasStyle
MessageInput
component which integrates with the
CollaborationMessageList
. The user can type a message and submit it.
The messages will be displayed in any CollaborationMessageList
that
is connected to the same topic as the list passed as the argument of this
component constructor. The text area and button will be disabled while the
connection to the topic is not active or the topic is set to
null
(see CollaborationMessageList.setTopic(String)
).Constructor and Description |
---|
CollaborationMessageInput(CollaborationMessageList list)
Creates a new collaboration message input component which submits
messages to the provided
CollaborationMessageList . |
Modifier and Type | Method and Description |
---|---|
MessageInputI18n |
getI18n()
Gets the internationalization object previously set for this component.
|
void |
setI18n(MessageInputI18n i18n)
Sets the internationalization properties for this component.
|
getChildren, getContent, getElement, initContent
addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
getElement
addAttachListener
addDetachListener
public CollaborationMessageInput(CollaborationMessageList list)
CollaborationMessageList
.list
- the list which will display the submitted messages, not nullpublic MessageInputI18n getI18n()
Note: updating the object content returned by this method will not update
the component if not set back using
MessageInput.setI18n(MessageInputI18n)
.
null
if one has not been set with
setI18n(MessageInputI18n)
public void setI18n(MessageInputI18n i18n)
Note: updating the object properties after setting the i18n will not update the component. To make the changes effective, you need to set the updated object again.
i18n
- the i18n object, not null
Copyright © 2022. All rights reserved.