Chat, Controller, NiftyControl, KeyInputHandler@Deprecated public class ChatControl extends AbstractController implements Chat, KeyInputHandler
| Constructor | Description |
|---|---|
ChatControl() |
Deprecated.
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPlayer(java.lang.String playerName,
NiftyImage playerIcon) |
Deprecated.
This method is called when a new player enters the room.
|
void |
addPlayer(java.lang.String playerName,
NiftyImage playerIcon,
java.lang.String style) |
Deprecated.
This method is called when a new player enters the room.
|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Parameters properties) |
Deprecated.
|
java.util.List<ChatEntryModelClass> |
getLines() |
Deprecated.
This method returns all the chatlines in the chat.
|
java.util.List<ChatEntryModelClass> |
getPlayers() |
Deprecated.
This method returns the current list of players in the chat.
|
boolean |
inputEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
boolean |
keyEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
void |
onFocus(boolean arg0) |
Deprecated.
|
void |
onStartScreen() |
Deprecated.
|
void |
receivedChatLine(java.lang.String text,
NiftyImage icon) |
Deprecated.
This method is called when a chat line is received which should be displayed in
the chat control.
|
void |
receivedChatLine(java.lang.String text,
NiftyImage icon,
java.lang.String style) |
Deprecated.
This method is called when a chat line is received which should be displayed in
the chat control.
|
void |
removePlayer(java.lang.String playerName) |
Deprecated.
This method is called when a player leaves the rome and needs to be
removed from the list.
|
void |
sendText() |
Deprecated.
This method is called when the player either presses the send button or
the Return key.
|
void |
update() |
Deprecated.
Updates the lists to reflect any changes made to them,
outside of the addPlayer, removePlayer and
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, layoutCallback, onEndScreen, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic final void bind(@Nonnull
Nifty niftyParam,
@Nonnull
Screen screenParam,
@Nonnull
Element newElement,
@Nonnull
Parameters properties)
bind in interface Controllerpublic void onFocus(boolean arg0)
onFocus in interface ControlleronFocus in class AbstractControllerpublic final void onStartScreen()
onStartScreen in interface Controllerpublic final void receivedChatLine(@Nonnull
java.lang.String text,
@Nullable
NiftyImage icon)
ChatreceivedChatLine in interface Chattext - The text to display.icon - Optionally, an icon can be supplied which is then displayed at
the start of the chat line.public void receivedChatLine(@Nonnull
java.lang.String text,
@Nullable
NiftyImage icon,
@Nullable
java.lang.String style)
ChatreceivedChatLine in interface Chattext - The text to display.icon - Optionally, an icon can be supplied which is then displayed at
the start of the chat line.style - The custom style for this particular chatline.public final void addPlayer(@Nonnull
java.lang.String playerName,
@Nullable
NiftyImage playerIcon)
Chatpublic void addPlayer(@Nonnull
java.lang.String playerName,
@Nullable
NiftyImage playerIcon,
@Nullable
java.lang.String style)
Chatpublic final void removePlayer(@Nonnull
java.lang.String playerName)
ChatremovePlayer in interface ChatplayerName - The player name to remove.@Nonnull public java.util.List<ChatEntryModelClass> getPlayers()
ChatgetPlayers in interface Chat@Nonnull public java.util.List<ChatEntryModelClass> getLines()
Chatpublic void update()
Chatpublic final void sendText()
public boolean keyEvent(@Nonnull
NiftyInputEvent inputEvent)
keyEvent in interface KeyInputHandlerpublic boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface ControllerCopyright © 2018. All rights reserved.