LIVE-1200 Do not allow changing of nicknames.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4980 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-08-21 23:03:12 +00:00
committed by derek
parent 8c2e49a168
commit c11b077ac7
6 changed files with 28 additions and 10 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -81,6 +81,15 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../lib/merge/backport-util-concurrent.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
@ -108,6 +117,15 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../lib/merge/jtoaster-1.0.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
@ -198,15 +216,6 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../lib/merge/jtoaster.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntryProperties />
</component>
<component name="VcsManagerConfiguration">

Binary file not shown.

View File

@ -77,6 +77,8 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
private PacketListener listener = null;
private boolean allowNicknameChange = true;
/**
* Creates a new RoomInfo instance using the specified ChatRoom. The RoomInfo
* component is responsible for monitoring all activity in the ChatRoom.
@ -522,7 +524,10 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
changeNicknameAction.putValue(Action.NAME, "Change Nickname");
changeNicknameAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE));
popup.add(changeNicknameAction);
if (allowNicknameChange) {
popup.add(changeNicknameAction);
}
}
Action chatAction = new AbstractAction() {
@ -683,6 +688,10 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
popup.show(list, evt.getX(), evt.getY());
}
public void setNicknameChangeAllowed(boolean allowed) {
allowNicknameChange = allowed;
}
}