this._selectedObjects = this._parent._map.getObjectsOnPosition(mapX, mapY);
for(BaseObject object : this._selectedObjects){
switch(object.getType()){
case CONTAINER:
case DOOR:
Lockable lockable = (Lockable)object;
if(lockable.isClosed()){
// it can be opened, locked, or unlocked:
if(lockable.isLocked()){
// it can be only unlocked:
this._lockButton.setText(STR_UNLOCK + " (" + Player.PENALTY_OBJECT_LOCKED + ")");
this._buttons.add(this._lockButton);
}else{
// it can be locked, or opened: