Added and fixed existing Javadoc, configured Javadoc validation
This commit is contained in:
@ -66,6 +66,13 @@ public class ChatWindow extends JFrame {
|
||||
|
||||
private static final Logger logger = EnvoyLog.getLogger(ChatWindow.class.getSimpleName());
|
||||
|
||||
/**
|
||||
* Initializes a {@link JFrame} with UI elements used to send and read messages
|
||||
* to different users.
|
||||
*
|
||||
* @param client the {@link Client} used to send and receive messages
|
||||
* @param localDB the {@link LocalDB} used to manage stored messages and users
|
||||
*/
|
||||
public ChatWindow(Client client, LocalDB localDB) {
|
||||
this.client = client;
|
||||
this.localDB = localDB;
|
||||
@ -112,9 +119,8 @@ public class ChatWindow extends JFrame {
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ENTER
|
||||
&& ((Settings.getInstance().isEnterToSend() && e.getModifiersEx() == 0) || (e.getModifiersEx() == KeyEvent.CTRL_DOWN_MASK))) {
|
||||
&& ((Settings.getInstance().isEnterToSend() && e.getModifiersEx() == 0) || (e.getModifiersEx() == KeyEvent.CTRL_DOWN_MASK)))
|
||||
postMessage(messageList);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -219,8 +225,8 @@ public class ChatWindow extends JFrame {
|
||||
|
||||
/**
|
||||
* Used to immediately reload the ChatWindow when settings were changed.
|
||||
*
|
||||
* @param theme the theme to change colors into
|
||||
*
|
||||
* @param theme the theme to change colors into
|
||||
* @since Envoy v0.1-alpha
|
||||
*/
|
||||
private void changeChatWindowColors(Theme theme) {
|
||||
|
Reference in New Issue
Block a user